mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
Update pngcrush to 1.7.12 and fix url in the 1.7.11.bep, also cleaned up the patch a bit.
This commit is contained in:
@@ -6,7 +6,7 @@ diff -up pngcrush-1.7.11-nolib/Makefile.orig pngcrush-1.7.11-nolib/Makefile
|
||||
|
||||
# LIBS = -lm
|
||||
+ifeq ($(shell uname), Haiku)
|
||||
+LIBS = -L/boot/system/lib -lpng -lz
|
||||
+LIBS = -lpng -lz
|
||||
+else
|
||||
LIBS = -L$(PNGLIB) -lpng -lz -lm
|
||||
+endif
|
||||
|
||||
15
media-gfx/pngcrush/patches/pngcrush-1.7.12.patch
Normal file
15
media-gfx/pngcrush/patches/pngcrush-1.7.12.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff -up pngcrush-1.7.12-nolib/Makefile.orig pngcrush-1.7.12-nolib/Makefile
|
||||
--- pngcrush-1.7.12-nolib/Makefile.orig 2010-02-25 21:21:23.004980736 -0700
|
||||
+++ pngcrush-1.7.12-nolib/Makefile 2010-05-18 14:10:18.201588736 -0600
|
||||
@@ -31,7 +31,11 @@ E =
|
||||
PNGCRUSH = pngcrush
|
||||
|
||||
# LIBS = -lm
|
||||
+ifeq ($(shell uname), Haiku)
|
||||
+LIBS = -lpng -lz
|
||||
+else
|
||||
LIBS = -L$(PNGLIB) -lpng -lz -lm
|
||||
+endif
|
||||
# LIBS = -lpng -lz -lm
|
||||
#LIBS = ${ZLIB}/libz.a -lm
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
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.11/pngcrush-1.7.11-nolib.tar.bz2/download"
|
||||
SRC_URI="http://sourceforge.net/projects/pmt/files/pngcrush/1.7.11/pngcrush-1.7.11-nolib.tar.bz2/download"
|
||||
CHECKSUM_MD5="f9f5adfd36c5b0b84e0a5115e841e38a"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
@@ -12,10 +12,10 @@ BUILD {
|
||||
}
|
||||
INSTALL {
|
||||
cd pngcrush-1.7.11-nolib
|
||||
mkdir -p ${DESTDIR}/boot/common/bin
|
||||
cp -a -f pngcrush ${DESTDIR}/boot/common/bin
|
||||
mkdir -p ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`
|
||||
cp -a -f pngcrush ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`
|
||||
}
|
||||
|
||||
LICENSE="LibPNG"
|
||||
COPYRIGHT="1998-2009 Glenn Randers-Pehrson
|
||||
2005 Greg Roelofs"
|
||||
2005 Greg Roelofs"
|
||||
|
||||
21
media-gfx/pngcrush/pngcrush-1.7.12.bep
Normal file
21
media-gfx/pngcrush/pngcrush-1.7.12.bep
Normal file
@@ -0,0 +1,21 @@
|
||||
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.12/pngcrush-1.7.12-nolib.tar.bz2/download"
|
||||
CHECKSUM_MD5="10d43bf881a591ba1e5d87e6888de722"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
|
||||
BUILD {
|
||||
cd pngcrush-1.7.12-nolib
|
||||
make
|
||||
}
|
||||
INSTALL {
|
||||
cd pngcrush-1.7.12-nolib
|
||||
mkdir -p ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`
|
||||
cp -a -f pngcrush ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`
|
||||
}
|
||||
|
||||
LICENSE="LibPNG"
|
||||
COPYRIGHT="1998-2009 Glenn Randers-Pehrson
|
||||
2005 Greg Roelofs"
|
||||
Reference in New Issue
Block a user