mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
Added pngcrush, htmltidy, and xz-utils.
This commit is contained in:
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
|
||||
Reference in New Issue
Block a user