From 54f5a1b4c271e8b24ba3eb9acb5cc6ca9c208e56 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 18 May 2010 20:13:35 +0000 Subject: [PATCH] Update pngcrush to 1.7.11 --- .../pngcrush/patches/pngcrush-1.7.11.patch | 15 +++++++++++++++ media-gfx/pngcrush/pngcrush-1.7.11.bep | 19 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 media-gfx/pngcrush/patches/pngcrush-1.7.11.patch create mode 100644 media-gfx/pngcrush/pngcrush-1.7.11.bep diff --git a/media-gfx/pngcrush/patches/pngcrush-1.7.11.patch b/media-gfx/pngcrush/patches/pngcrush-1.7.11.patch new file mode 100644 index 000000000..7dd5b2ed3 --- /dev/null +++ b/media-gfx/pngcrush/patches/pngcrush-1.7.11.patch @@ -0,0 +1,15 @@ +diff -up pngcrush-1.7.11-nolib/Makefile.orig pngcrush-1.7.11-nolib/Makefile +--- pngcrush-1.7.11-nolib/Makefile.orig 2010-02-25 21:21:23.004980736 -0700 ++++ pngcrush-1.7.11-nolib/Makefile 2010-05-18 14:10:18.201588736 -0600 +@@ -31,7 +31,11 @@ E = + 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.11.bep b/media-gfx/pngcrush/pngcrush-1.7.11.bep new file mode 100644 index 000000000..4fc02039e --- /dev/null +++ b/media-gfx/pngcrush/pngcrush-1.7.11.bep @@ -0,0 +1,19 @@ +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" +CHECKSUM_MD5="f9f5adfd36c5b0b84e0a5115e841e38a" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +LICENSE="PNG" +COPYRIGHT="1998-2009 Glenn Randers-Pehrson + 2005 Greg Roelofs" +BUILD { + cd pngcrush-1.7.11-nolib + make +} +INSTALL { + cd pngcrush-1.7.11-nolib + mkdir -p ${DESTDIR}/boot/common/bin + cp -a -f pngcrush ${DESTDIR}/boot/common/bin +}