From 61c14749ea78b2a0d51e01b3a80caa03a73530a2 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 29 Dec 2009 08:37:08 +0000 Subject: [PATCH] Added pngcrush, htmltidy, and xz-utils. --- app-arch/xz-utils/xz-utils-4.999.9beta.bep | 23 +++++++ .../xz-utils.OptionalPackageDescription | 7 ++ app-text/htmltidy/htmltidy-20092812.bep | 16 +++++ .../htmltidy.OptionalPackageDescription | 5 ++ .../htmltidy/patches/htmltidy-20092812.patch | 69 +++++++++++++++++++ .../pngcrush/patches/pngcrush-1.7.6.patch | 15 ++++ media-gfx/pngcrush/pngcrush-1.7.6.bep | 16 +++++ .../pngcrush.OptionalPackageDescription | 6 ++ 8 files changed, 157 insertions(+) create mode 100644 app-arch/xz-utils/xz-utils-4.999.9beta.bep create mode 100644 app-arch/xz-utils/xz-utils.OptionalPackageDescription create mode 100644 app-text/htmltidy/htmltidy-20092812.bep create mode 100644 app-text/htmltidy/htmltidy.OptionalPackageDescription create mode 100644 app-text/htmltidy/patches/htmltidy-20092812.patch create mode 100644 media-gfx/pngcrush/patches/pngcrush-1.7.6.patch create mode 100644 media-gfx/pngcrush/pngcrush-1.7.6.bep create mode 100644 media-gfx/pngcrush/pngcrush.OptionalPackageDescription diff --git a/app-arch/xz-utils/xz-utils-4.999.9beta.bep b/app-arch/xz-utils/xz-utils-4.999.9beta.bep new file mode 100644 index 000000000..5791f5009 --- /dev/null +++ b/app-arch/xz-utils/xz-utils-4.999.9beta.bep @@ -0,0 +1,23 @@ +DESCRIPTION="XZ Utils is data compression software for working with LZMA compressed files." +HOMEPAGE="http://tukaani.org/xz/" +SRC_URI="http://tukaani.org/xz/xz-4.999.9beta.tar.bz2" +CHECKSUM_MD5="cc4044fcc073b8bcf3164d1d0df82161" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="gcc4" +BUILD { + cd xz-4.999.9beta + cp -f /boot/common/bin/libtool . + libtoolize -c -f + aclocal -I m4 + autoconf + autoheader + automake -acf --foreign + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd xz-4.999.9beta + make install +} diff --git a/app-arch/xz-utils/xz-utils.OptionalPackageDescription b/app-arch/xz-utils/xz-utils.OptionalPackageDescription new file mode 100644 index 000000000..833b92e72 --- /dev/null +++ b/app-arch/xz-utils/xz-utils.OptionalPackageDescription @@ -0,0 +1,7 @@ +Package: xz-utils +Version: 4.999.9beta +Copyright: 2005-2009 Lasse Collin +License: GNU LGPL v2.1 +License: GNU GPL v2 +License: GNU GPL v3 +URL: http://tukaani.org/xz/ diff --git a/app-text/htmltidy/htmltidy-20092812.bep b/app-text/htmltidy/htmltidy-20092812.bep new file mode 100644 index 000000000..d6dbcdb36 --- /dev/null +++ b/app-text/htmltidy/htmltidy-20092812.bep @@ -0,0 +1,16 @@ +DESCRIPTION="htmltidy - Tidy the layout and correct errors in HTML and XML documents." +HOMEPAGE="http://tidy.sourceforge.net/" +SRC_URI="http://www.haiku-ports.de/packages/app-text/htmltidy/sources/htmltidy-20092812.tar.bz2" +CHECKSUM_MD5="c86b556da9e2447a03a090ea551c5a4a" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +BUILD { + cd htmltidy-20092812/build/gmake + make +} + +INSTALL { + cd htmltidy-20092812/build/gmake + make installexes installhdrs installib +} diff --git a/app-text/htmltidy/htmltidy.OptionalPackageDescription b/app-text/htmltidy/htmltidy.OptionalPackageDescription new file mode 100644 index 000000000..c539b5806 --- /dev/null +++ b/app-text/htmltidy/htmltidy.OptionalPackageDescription @@ -0,0 +1,5 @@ +Package: htmltidy +Version: 20092812 +Copyright: 1998-2008, World Wide Web Consortium +License: MIT +URL: http://tidy.sourceforge.net/ diff --git a/app-text/htmltidy/patches/htmltidy-20092812.patch b/app-text/htmltidy/patches/htmltidy-20092812.patch new file mode 100644 index 000000000..97c6f53da --- /dev/null +++ b/app-text/htmltidy/patches/htmltidy-20092812.patch @@ -0,0 +1,69 @@ +diff -ur htmltidy-20092812/build/gmake/Makefile htmltidy-20092812-haiku/build/gmake/Makefile +--- htmltidy-20092812/build/gmake/Makefile 2009-12-29 00:06:14.000000000 -0700 ++++ htmltidy-20092812-haiku/build/gmake/Makefile 2009-12-28 23:53:45.000000000 -0700 +@@ -58,8 +58,13 @@ + PROJECT=tidy + + # Installation variables. Spaces OK, only dir create and file copy operations. ++ifeq ($(shell uname), Haiku) ++runinst_prefix=/boot/common ++devinst_prefix=/boot/common ++else + runinst_prefix=/usr/local + devinst_prefix=/usr/local ++endif + + bininst = ${runinst_prefix}/bin + libinst = ${devinst_prefix}/lib +@@ -93,7 +98,10 @@ + CC= gcc + CFLAGS= -g -pedantic -Wall -I $(INCDIR) + # flags only supported with gcc 3.x ++GCC_MAJOR= $(shell $(CC) -v 2>&1 | grep " version " | cut -d' ' -f3 | cut -d'.' -f1) ++ifneq ($(GCC_MAJOR), 2) + CFLAGS += -Wunused-parameter ++endif + + OTHERCFLAGS= + OTHERCFLAGS+= -D_DEBUG=1 +diff -ur htmltidy-20092812/include/platform.h htmltidy-20092812-haiku/include/platform.h +--- htmltidy-20092812/include/platform.h 2009-12-29 00:06:14.000000000 -0700 ++++ htmltidy-20092812-haiku/include/platform.h 2009-12-28 23:34:23.000000000 -0700 +@@ -296,6 +296,15 @@ + #endif + #endif + ++/* Convenience defines for Haiku platforms */ ++ ++#if defined(__HAIKU__) ++#define HAIKU_OS ++#ifndef PLATFORM_NAME ++#define PLATFORM_NAME "Haiku" ++#endif ++#endif ++ + /* Convenience defines for Cygwin platforms */ + + #if defined(__CYGWIN__) +@@ -417,7 +426,7 @@ + #if PRESERVE_FILE_TIMES + + #ifndef HAS_FUTIME +-#if defined(CYGWIN_OS) || defined(BE_OS) || defined(OS2_OS) || defined(HPUX_OS) || defined(SOLARIS_OS) || defined(LINUX_OS) || defined(BSD_BASED_OS) || defined(MAC_OS) || defined(__MSL__) || defined(IRIX_OS) || defined(AIX_OS) || defined(__BORLANDC__) ++#if defined(CYGWIN_OS) || defined(BE_OS) || defined(HAIKU_OS) || defined(OS2_OS) || defined(HPUX_OS) || defined(SOLARIS_OS) || defined(LINUX_OS) || defined(BSD_BASED_OS) || defined(MAC_OS) || defined(__MSL__) || defined(IRIX_OS) || defined(AIX_OS) || defined(__BORLANDC__) + #define HAS_FUTIME 0 + #else + #define HAS_FUTIME 1 +@@ -513,10 +522,10 @@ + + /* hack for gnu sys/types.h file which defines uint and ulong */ + +-#if defined(BE_OS) || defined(SOLARIS_OS) || defined(BSD_BASED_OS) || defined(OSF_OS) || defined(IRIX_OS) || defined(AIX_OS) ++#if defined(BE_OS) || defined(HAIKU_OS) || defined(SOLARIS_OS) || defined(BSD_BASED_OS) || defined(OSF_OS) || defined(IRIX_OS) || defined(AIX_OS) + #include + #endif +-#if !defined(HPUX_OS) && !defined(CYGWIN_OS) && !defined(MAC_OS_X) && !defined(BE_OS) && !defined(SOLARIS_OS) && !defined(BSD_BASED_OS) && !defined(OSF_OS) && !defined(IRIX_OS) && !defined(AIX_OS) && !defined(LINUX_OS) ++#if !defined(HPUX_OS) && !defined(CYGWIN_OS) && !defined(MAC_OS_X) && !defined(BE_OS) && !defined(HAIKU_OS) && !defined(SOLARIS_OS) && !defined(BSD_BASED_OS) && !defined(OSF_OS) && !defined(IRIX_OS) && !defined(AIX_OS) && !defined(LINUX_OS) + # undef uint + typedef unsigned int uint; + #endif diff --git a/media-gfx/pngcrush/patches/pngcrush-1.7.6.patch b/media-gfx/pngcrush/patches/pngcrush-1.7.6.patch new file mode 100644 index 000000000..a8b0b5713 --- /dev/null +++ b/media-gfx/pngcrush/patches/pngcrush-1.7.6.patch @@ -0,0 +1,15 @@ +diff -ur pngcrush-1.7.6-nolib/Makefile pngcrush-1.7.6-nolib-haiku/Makefile +--- pngcrush-1.7.6-nolib/Makefile 2006-03-30 18:39:16.000000000 -0700 ++++ pngcrush-1.7.6-nolib-haiku/Makefile 2009-12-29 01:02:29.000000000 -0700 +@@ -36,7 +36,11 @@ + PNGCRUSH = pngcrush + + # LIBS = -lm ++ifeq ($(shell uname), Haiku) ++LIBS = -L/boot/system/lib -lpng -lz ++else + LIBS = -L$(PNGLIB) -lpng -lz -lm ++endif + # LIBS = -lpng -lz -lm + #LIBS = ${ZLIB}/libz.a -lm + diff --git a/media-gfx/pngcrush/pngcrush-1.7.6.bep b/media-gfx/pngcrush/pngcrush-1.7.6.bep new file mode 100644 index 000000000..b6ec190a5 --- /dev/null +++ b/media-gfx/pngcrush/pngcrush-1.7.6.bep @@ -0,0 +1,16 @@ +DESCRIPTION="Pngcrush is an optimizer for PNG (Portable Network Graphics) files." +HOMEPAGE="http://pmt.sourceforge.net/pngcrush/" +SRC_URI="http://sourceforge.net/projects/pmt/files/pngcrush/00-1.7.6/pngcrush-1.7.6-nolib.tar.bz2/download" +CHECKSUM_MD5="79fdedccf761f6391c11aa851c9fc6b2" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +BUILD { + cd pngcrush-1.7.6-nolib + make +} + +INSTALL { + cd pngcrush-1.7.6-nolib + cp -a -f pngcrush /boot/common/bin +} diff --git a/media-gfx/pngcrush/pngcrush.OptionalPackageDescription b/media-gfx/pngcrush/pngcrush.OptionalPackageDescription new file mode 100644 index 000000000..d85c70356 --- /dev/null +++ b/media-gfx/pngcrush/pngcrush.OptionalPackageDescription @@ -0,0 +1,6 @@ +Package: pngcrush +Version: 1.7.6 +Copyright: 1998-2009, Glenn Randers-Pehrson +Copyright: 2005, Greg Roelofs +License: PNG +URL: http://pmt.sourceforge.net/pngcrush/