summaryrefslogtreecommitdiff
path: root/lang/php/pear.mk
diff options
context:
space:
mode:
authoradrianp <adrianp>2007-05-05 21:32:12 +0000
committeradrianp <adrianp>2007-05-05 21:32:12 +0000
commitd4f25023e988eda864b690bb9f81976741a696af (patch)
tree608795afd1ed278fbba460db543e9669d1470f16 /lang/php/pear.mk
parentf12aaa46b864a85d634748d7f55adeb94f39b48d (diff)
downloadpkgsrc-d4f25023e988eda864b690bb9f81976741a696af.tar.gz
Including pear.mk will now pull in lang/pear as a dependency
Fix the PHP call to include the default include path for PEAR
Diffstat (limited to 'lang/php/pear.mk')
-rw-r--r--lang/php/pear.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/php/pear.mk b/lang/php/pear.mk
index 1a6c36ef9c0..88a81844811 100644
--- a/lang/php/pear.mk
+++ b/lang/php/pear.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pear.mk,v 1.9 2006/06/02 18:27:56 joerg Exp $
+# $NetBSD: pear.mk,v 1.10 2007/05/05 21:32:12 adrianp Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install pear packages.
@@ -29,6 +29,8 @@ DIST_SUBDIR= pear
HOMEPAGE?= http://pear.php.net/package/${DISTNAME:C/-.*//}
+DEPENDS+= ${PHP_PKG_PREFIX}-pear-[0-9]*:../../lang/pear
+
PEAR_CMD= ${PREFIX}/bin/pear
PEAR_LIB= lib/php
@@ -41,7 +43,8 @@ PEAR_GENERATE_PLIST= \
${ECHO} "@comment The following lines are automatically generated"; \
PEAR_LIB="${PEAR_LIB}" WRKSRC="${WRKSRC}" \
PEAR_DIRRM_BASEDIR="${PEAR_DIRRM_BASEDIR}" \
- ${PREFIX}/bin/php -C -n ${PKGDIR}/../../lang/php/pear_plist.php;
+ ${PREFIX}/bin/php -d include_path=".:${PREFIX}/lib/php" \
+ -C -n ${PKGDIR}/../../lang/php/pear_plist.php;
GENERATE_PLIST+= ${PEAR_GENERATE_PLIST}
NO_BUILD= yes