diff options
author | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
commit | 168a3246f0e3c46b0ef3b5dcf5d18607cff1583f (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /www/php-FastTemplate | |
parent | 63309a20a533bc79929c9bd5b3bf872561762300 (diff) | |
download | pkgsrc-168a3246f0e3c46b0ef3b5dcf5d18607cff1583f.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'www/php-FastTemplate')
-rw-r--r-- | www/php-FastTemplate/Makefile | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/www/php-FastTemplate/Makefile b/www/php-FastTemplate/Makefile index b474e6d7d76..1ee78f47963 100644 --- a/www/php-FastTemplate/Makefile +++ b/www/php-FastTemplate/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2006/06/04 16:26:56 joerg Exp $ +# $NetBSD: Makefile,v 1.12 2008/06/12 02:14:56 joerg Exp $ DISTNAME= FastTemplate-1_1_0 PKGNAME= ${PHP_PKG_PREFIX}-FastTemplate-1.1.0 @@ -12,6 +12,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.thewebmasters.net/php/FastTemplate.phtml COMMENT= PHP extension for managing templates and variable interpolation +PKG_DESTDIR_SUPPORT= user-destdir + CONFLICTS= php-FastTemplate-[0-9]* PHP_VERSIONS_ACCEPTED= 4 @@ -29,17 +31,16 @@ EGDIR= ${PREFIX}/share/examples/${PKGBASE} PLIST_SUBST+= PHP_LIB_SUBDIR=${PHP_LIB_SUBDIR:Q} PLIST_SUBST+= PKGBASE=${PKGBASE:Q} +INSTALLATION_DIRS= ${PHP_LIB_DIR} ${DOCDIR} ${EGDIR}/templates + do-install: - ${INSTALL_DATA_DIR} ${PHP_LIB_DIR} - ${INSTALL_DATA_DIR} ${DOCDIR} - ${INSTALL_DATA_DIR} ${EGDIR}/templates - ${INSTALL_DATA} ${WRKSRC}/class.FastTemplate.php3 ${PHP_LIB_DIR} - ${INSTALL_DATA} ${WRKSRC}/docs/FastTemplate.html ${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/class.FastTemplate.php3 ${DESTDIR}${PHP_LIB_DIR} + ${INSTALL_DATA} ${WRKSRC}/docs/FastTemplate.html ${DESTDIR}${DOCDIR} cd ${WRKSRC}; for file in *.phtml; do \ - dest=${EGDIR}/`${BASENAME} $${file} .phtml`.php; \ + dest=${DESTDIR}${EGDIR}/`${BASENAME} $${file} .phtml`.php; \ ${INSTALL_DATA} $${file} $${dest}; \ done - ${INSTALL_DATA} ${WRKSRC}/templates/*.tpl ${EGDIR}/templates + ${INSTALL_DATA} ${WRKSRC}/templates/*.tpl ${DESTDIR}${EGDIR}/templates .include "../../lang/php/phpversion.mk" .include "../../mk/bsd.pkg.mk" |