pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/netpbm Add destdir support, mostly from PR 38...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9ef706f45c26
branches:  trunk
changeset: 546434:9ef706f45c26
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Mon Sep 01 09:04:19 2008 +0000

description:
Add destdir support, mostly from PR 38523 by Aleksey Cheusov.

diffstat:

 graphics/netpbm/Makefile |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 5e8826f1fb1c -r 9ef706f45c26 graphics/netpbm/Makefile
--- a/graphics/netpbm/Makefile  Mon Sep 01 08:26:39 2008 +0000
+++ b/graphics/netpbm/Makefile  Mon Sep 01 09:04:19 2008 +0000
@@ -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 @@
 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 @@
        ${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"



Home | Main Index | Thread Index | Old Index