summaryrefslogtreecommitdiff
path: root/www/php4-apc
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-06-12 02:14:13 +0000
committerjoerg <joerg@pkgsrc.org>2008-06-12 02:14:13 +0000
commitba171a91fab519f587b027c1a2888cb6e3fce049 (patch)
treec12b9c282e2706cb6bac87456615dfdf2b256e55 /www/php4-apc
parent3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff)
downloadpkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.tar.gz
Add DESTDIR support.
Diffstat (limited to 'www/php4-apc')
-rw-r--r--www/php4-apc/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/www/php4-apc/Makefile b/www/php4-apc/Makefile
index cfcd8ff7ca0..5370f69a4e6 100644
--- a/www/php4-apc/Makefile
+++ b/www/php4-apc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2006/06/04 16:26:56 joerg Exp $
+# $NetBSD: Makefile,v 1.26 2008/06/12 02:14:56 joerg Exp $
MODNAME= apc
PECL_VERSION= 2.0.4
@@ -7,6 +7,8 @@ COMMENT= Alternative PHP Cache for PHP4
MAINTAINER= pkgsrc-users@NetBSD.org
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS= php-apc-[0-9]*
CONFIGURE_ARGS+= --enable-${MODNAME}
@@ -16,9 +18,10 @@ PLIST_SRC+= ${.CURDIR}/PLIST.extras
PLIST_SUBST+= PKGBASE=${PKGBASE:Q}
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
+INSTALLATION_DIRS= ${DOCDIR}
+
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DESTDIR}${DOCDIR}
PHP_VERSIONS_ACCEPTED= 4