summaryrefslogtreecommitdiff
path: root/graphics/pngcheck
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-04 15:39:09 +0000
committerjlam <jlam>2008-03-04 15:39:09 +0000
commitb5f6311af8bceb6f6ffa993ab73f802a0907c782 (patch)
tree59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/pngcheck
parent6bbd21113d6839286420c35137f9be60efb9389e (diff)
downloadpkgsrc-b5f6311af8bceb6f6ffa993ab73f802a0907c782.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'graphics/pngcheck')
-rw-r--r--graphics/pngcheck/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/graphics/pngcheck/Makefile b/graphics/pngcheck/Makefile
index 13d0b884f4c..6d42c1b3262 100644
--- a/graphics/pngcheck/Makefile
+++ b/graphics/pngcheck/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2006/12/08 18:00:20 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2008/03/04 15:39:10 jlam Exp $
#
DISTNAME= pngcheck-2.2.0
@@ -9,14 +9,17 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.libpng.org/pub/png/apps/pngcheck.html
COMMENT= Verify the integrity of PNG, JNG, and MNG files
+PKG_DESTDIR_SUPPORT= user-destdir
+INSTALLATION_DIRS= bin
+
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${LDFLAGS} ${LIBS} -DUSE_ZLIB \
-o pngcheck pngcheck.c -lz
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/pngcheck ${PREFIX}/bin
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pngcheck
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/pngcheck
+ ${INSTALL_PROGRAM} ${WRKSRC}/pngcheck ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/pngcheck
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/pngcheck
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"