diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
commit | ba171a91fab519f587b027c1a2888cb6e3fce049 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /parallel/p5-Parallel-Pvm | |
parent | 3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff) | |
download | pkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'parallel/p5-Parallel-Pvm')
-rw-r--r-- | parallel/p5-Parallel-Pvm/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/parallel/p5-Parallel-Pvm/Makefile b/parallel/p5-Parallel-Pvm/Makefile index d49d8b6a309..5429c8e4662 100644 --- a/parallel/p5-Parallel-Pvm/Makefile +++ b/parallel/p5-Parallel-Pvm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2006/10/04 21:54:05 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2008/06/12 02:14:42 joerg Exp $ # DISTNAME= Parallel-Pvm-1.3.0 @@ -13,6 +13,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.csm.ornl.gov/pvm/pvm_home.html COMMENT= Perl module for PVM (Parallel Virtual Machine) +PKG_DESTDIR_SUPPORT= user-destdir + PVM_ROOT?= ${LOCALBASE}/pvm3 CONFIGURE_ENV+= PVM_ROOT=${PVM_ROOT:Q} PVM_ARCH=${PVM_ARCH:Q} MAKE_ENV+= PVM_ROOT=${PVM_ROOT:Q} PVM_ARCH=${PVM_ARCH:Q} @@ -20,6 +22,8 @@ PERL5_PACKLIST= auto/Parallel/Pvm/.packlist MESSAGE_SUBST+= PVM_ROOT=${PVM_ROOT} EXAMPLES_DIR= ${PREFIX}/share/examples/p5-Parallel-Pvm +INSTALLATION_DIRS= ${EXAMPLES_DIR} + post-build: .for f in hello.pl hello_other.pl ${SED} -e 's;@exampledir@;${EXAMPLES_DIR};g' -e 's;@perl@;${PERL5};g' \ @@ -27,9 +31,8 @@ post-build: .endfor post-install: - ${INSTALL_SCRIPT_DIR} ${EXAMPLES_DIR} - ${INSTALL_SCRIPT} ${WRKDIR}/hello.pl ${EXAMPLES_DIR} - ${INSTALL_SCRIPT} ${WRKDIR}/hello_other.pl ${EXAMPLES_DIR} + ${INSTALL_SCRIPT} ${WRKDIR}/hello.pl ${DESTDIR}${EXAMPLES_DIR} + ${INSTALL_SCRIPT} ${WRKDIR}/hello_other.pl ${DESTDIR}${EXAMPLES_DIR} .include "../../lang/perl5/module.mk" .include "../../parallel/pvm3/buildlink3.mk" |