mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Added pngcrush, htmltidy, and xz-utils.
This commit is contained in:
23
app-arch/xz-utils/xz-utils-4.999.9beta.bep
Normal file
23
app-arch/xz-utils/xz-utils-4.999.9beta.bep
Normal file
@@ -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
|
||||
}
|
||||
7
app-arch/xz-utils/xz-utils.OptionalPackageDescription
Normal file
7
app-arch/xz-utils/xz-utils.OptionalPackageDescription
Normal file
@@ -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/
|
||||
16
app-text/htmltidy/htmltidy-20092812.bep
Normal file
16
app-text/htmltidy/htmltidy-20092812.bep
Normal file
@@ -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
|
||||
}
|
||||
5
app-text/htmltidy/htmltidy.OptionalPackageDescription
Normal file
5
app-text/htmltidy/htmltidy.OptionalPackageDescription
Normal file
@@ -0,0 +1,5 @@
|
||||
Package: htmltidy
|
||||
Version: 20092812
|
||||
Copyright: 1998-2008, World Wide Web Consortium
|
||||
License: MIT
|
||||
URL: http://tidy.sourceforge.net/
|
||||
69
app-text/htmltidy/patches/htmltidy-20092812.patch
Normal file
69
app-text/htmltidy/patches/htmltidy-20092812.patch
Normal file
@@ -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 <sys/types.h>
|
||||
#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
|
||||
15
media-gfx/pngcrush/patches/pngcrush-1.7.6.patch
Normal file
15
media-gfx/pngcrush/patches/pngcrush-1.7.6.patch
Normal file
@@ -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
|
||||
|
||||
16
media-gfx/pngcrush/pngcrush-1.7.6.bep
Normal file
16
media-gfx/pngcrush/pngcrush-1.7.6.bep
Normal file
@@ -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
|
||||
}
|
||||
6
media-gfx/pngcrush/pngcrush.OptionalPackageDescription
Normal file
6
media-gfx/pngcrush/pngcrush.OptionalPackageDescription
Normal file
@@ -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/
|
||||
Reference in New Issue
Block a user