summaryrefslogtreecommitdiff
path: root/graphics/netpbm
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2008-09-01 09:04:19 +0000
committerdholland <dholland@pkgsrc.org>2008-09-01 09:04:19 +0000
commit967cafd9a8d2316a35265a14e736b56a162b4591 (patch)
tree89ee875e5bb3b5173f4239ecfd2b06df8e77c78a /graphics/netpbm
parentf66e8f1532d0f9f87dfb86863539bce4e9de3a19 (diff)
downloadpkgsrc-967cafd9a8d2316a35265a14e736b56a162b4591.tar.gz
Add destdir support, mostly from PR 38523 by Aleksey Cheusov.
Diffstat (limited to 'graphics/netpbm')
-rw-r--r--graphics/netpbm/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index ca68f2a12ae..931b5f05b55 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.157 2008/05/26 02:13:20 joerg Exp $
+# $NetBSD: Makefile,v 1.158 2008/09/01 09:04:19 dholland Exp $
DISTNAME= netpbm-10.34
PKGREVISION= 1
@@ -13,6 +13,7 @@ COMMENT= Toolkit for conversion of images between different formats
MAKE_JOBS_SAFE= no
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= bash:run gmake lex pax perl
USE_FEATURES= snprintf
@@ -92,12 +93,12 @@ post-install:
${FIND} * \! -type d -print | ${SORT} >${PLIST_SRC} && \
${FIND} * -type d -print | \
while read DIR; do \
- ${TEST} -d "${PREFIX}/$${DIR}" || \
+ ${TEST} -d "${DESTDIR}${PREFIX}/$${DIR}" || \
${ECHO} "@dirrm $${DIR}"; \
done >>${PLIST_SRC} && \
- pax -rwpppm . ${PREFIX}
+ pax -rwpppm . ${DESTDIR}${PREFIX}
${RM} -fr ${STAGEDIR}
- ${FIND} ${PREFIX}/share/doc/netpbm -type f -print | \
+ ${FIND} ${DESTDIR}${PREFIX}/share/doc/netpbm -type f -print | \
${XARGS} ${CHMOD} ${NONBINMODE}
.include "../../mk/bsd.pkg.mk"