DESTDIR support.

This commit is contained in:
joerg 2006-12-15 17:32:41 +00:00
parent d5be8918f1
commit 8100458428

View file

@ -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