From 4b86e2bfab114a3edb0ceea2883a66b1745f9f06 Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 4 Mar 2008 15:39:09 +0000 Subject: Mechanical changes to add DESTDIR support to packages that install their files via a custom do-install target. --- graphics/pngcheck/Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'graphics/pngcheck') 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" -- cgit v1.2.3