diff options
author | joerg <joerg> | 2006-12-15 17:32:41 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-12-15 17:32:41 +0000 |
commit | 4504cb256e65fffe1cbc6c9ee7cc42c949d27f37 (patch) | |
tree | f2a5af8275492a0234a3a679f08652d53a74ab8a /devel | |
parent | 74a74e0d511b113b4fc7d79bcfe3fffd588ee473 (diff) | |
download | pkgsrc-4504cb256e65fffe1cbc6c9ee7cc42c949d27f37.tar.gz |
DESTDIR support.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-perl-headers/Makefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/devel/p5-perl-headers/Makefile b/devel/p5-perl-headers/Makefile index eacc015b0b8..084d4d3ecff 100644 --- a/devel/p5-perl-headers/Makefile +++ b/devel/p5-perl-headers/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.29 2006/10/04 21:35:59 wiz Exp $ +# $NetBSD: Makefile,v 1.30 2006/12/15 17:32:41 joerg Exp $ DISTNAME= p5-perl-headers PKGNAME= ${DISTNAME}-${OS_VERSION} @@ -13,6 +13,7 @@ HOMEPAGE= http://www.perl.com/language/index.html COMMENT= Perl header files PKG_INSTALLATION_TYPES= overwrite pkgviews +PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR} PERL5_PACKLIST= .packlist.h2ph @@ -43,12 +44,12 @@ do-build: > ${WRKSRC}/packlist do-install: - ${INSTALL_DATA_DIR} ${PERL5_INSTALLVENDORARCH} - cd ${WRKSRC}/h2ph/ && ${PAX} -rw . ${PERL5_INSTALLVENDORARCH} - ${INSTALL_DATA} ${WRKSRC}/packlist ${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} - ${CAT} ${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} | ${XARGS} ${CHMOD} a-w - ${CAT} ${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} - ${FIND} ${PERL5_INSTALLVENDORARCH} -type d -print \ + ${INSTALL_DATA_DIR} ${DESTDIR}${PERL5_INSTALLVENDORARCH} + cd ${WRKSRC}/h2ph/ && ${PAX} -rw . ${DESTDIR}${PERL5_INSTALLVENDORARCH} + ${INSTALL_DATA} ${WRKSRC}/packlist ${DESTDIR}${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} + ${SED} 's,^,${DESTDIR},' < ${DESTDIR}${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} | ${XARGS} ${CHMOD} a-w + ${SED} 's,^,${DESTDIR},' < ${DESTDIR}${PERL5_INSTALLVENDORARCH}/${PERL5_PACKLIST} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} + ${FIND} ${DESTDIR}${PERL5_INSTALLVENDORARCH} -type d -print \ -exec ${CHMOD} ${PKGDIRMODE} {} \; # empty do-nothing to override module.mk TEST_TARGET |