diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-04 15:39:09 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-04 15:39:09 +0000 |
commit | 0921f3f35279f745c8e5b56be3c87c7dee3e5738 (patch) | |
tree | 59c0548a0298c3f264975f618451fab4e14e6b25 /graphics/pngcheck/Makefile | |
parent | 0157fc562061bdebd896e09805aa565fff88d662 (diff) | |
download | pkgsrc-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/pngcheck/Makefile')
-rw-r--r-- | graphics/pngcheck/Makefile | 11 |
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" |