diff options
author | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
commit | 39d7fb93432416d872ed34e0025741cc93068c06 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /x11/py-Pmw | |
parent | cce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff) | |
download | pkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'x11/py-Pmw')
-rw-r--r-- | x11/py-Pmw/Makefile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/x11/py-Pmw/Makefile b/x11/py-Pmw/Makefile index a34325f522e..c66f03f280a 100644 --- a/x11/py-Pmw/Makefile +++ b/x11/py-Pmw/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2008/04/26 15:35:09 joerg Exp $ +# $NetBSD: Makefile,v 1.24 2008/06/12 02:14:57 joerg Exp $ # DISTNAME= Pmw.1.2 @@ -11,23 +11,25 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://pmw.sourceforge.net/ COMMENT= Python meta widgets +PKG_DESTDIR_SUPPORT= user-destdir + PYTHON_VERSIONS_ACCEPTED= 25 24 23 21 PLIST_SRC= ${WRKDIR}/.PLIST_SRC WRKSRC= ${WRKDIR}/Pmw -do-build: +NO_BUILD= yes do-install: (cd ${WRKDIR}; ${FIND} Pmw -type d -print | \ - ${SED} -e 's,^,${PREFIX}/${PYSITELIB}/,' | ${XARGS} -n 1 ${INSTALL_DATA_DIR}) + ${SED} -e 's,^,${DESTDIR}${PREFIX}/${PYSITELIB}/,' | ${XARGS} -n 1 ${INSTALL_DATA_DIR}) (cd ${WRKDIR}; for f in `${FIND} Pmw -type f -print`; do \ - ${INSTALL_DATA} $$f ${PREFIX}/${PYSITELIB}/$$f; done) + ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/${PYSITELIB}/$$f; done) ${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC} - (cd ${PREFIX}; ${FIND} ${PYSITELIB}/Pmw \ + (cd ${DESTDIR}${PREFIX}; ${FIND} ${PYSITELIB}/Pmw \ -type f -print >>${PLIST_SRC}) - (cd ${PREFIX}; ${FIND} -d ${PYSITELIB}/Pmw \ + (cd ${DESTDIR}${PREFIX}; ${FIND} -d ${PYSITELIB}/Pmw \ -type d -print | ${SED} -e "s/^/@dirrm /" >>${PLIST_SRC}) .include "../../lang/python/extension.mk" |