summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoradrianp <adrianp@pkgsrc.org>2007-05-05 21:32:12 +0000
committeradrianp <adrianp@pkgsrc.org>2007-05-05 21:32:12 +0000
commit989ca1e011c7fdb48974b7b110dc0d1dd2b73dd9 (patch)
tree608795afd1ed278fbba460db543e9669d1470f16 /lang
parentb96bd1b1c35a01f40cdbff8290eadf5bdbd4985a (diff)
downloadpkgsrc-989ca1e011c7fdb48974b7b110dc0d1dd2b73dd9.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')
-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