summaryrefslogtreecommitdiff
path: root/graphics/pngcrush
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 15:39:09 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 15:39:09 +0000
commit0921f3f35279f745c8e5b56be3c87c7dee3e5738 (patch)
tree59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/pngcrush
parent0157fc562061bdebd896e09805aa565fff88d662 (diff)
downloadpkgsrc-0921f3f35279f745c8e5b56be3c87c7dee3e5738.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/pngcrush')
-rw-r--r--graphics/pngcrush/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/pngcrush/Makefile b/graphics/pngcrush/Makefile
index a75c170caeb..06b97300cd4 100644
--- a/graphics/pngcrush/Makefile
+++ b/graphics/pngcrush/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2006/07/06 20:51:25 adam Exp $
+# $NetBSD: Makefile,v 1.26 2008/03/04 15:39:10 jlam Exp $
DISTNAME= pngcrush-1.6.4-nolib
PKGNAME= pngcrush-1.6.4
@@ -10,6 +10,8 @@ MAINTAINER= rh@NetBSD.org
HOMEPAGE= http://pmt.sourceforge.net/pngcrush/index.html
COMMENT= Optimizer for PNG (Portable Network Graphics) files
+PKG_DESTDIR_SUPPORT= user-destdir
+
NO_CONFIGURE= yes
INSTALLATION_DIRS= bin
@@ -19,7 +21,7 @@ do-build:
`libpng-config --ldflags` -lz
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/pngcrush ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/pngcrush ${DESTDIR}${PREFIX}/bin
.include "../../graphics/png/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"