summaryrefslogtreecommitdiff
path: root/devel/pear
diff options
context:
space:
mode:
Diffstat (limited to 'devel/pear')
-rw-r--r--devel/pear/Makefile3
-rw-r--r--devel/pear/bsd.pear.channel.mk10
2 files changed, 8 insertions, 5 deletions
diff --git a/devel/pear/Makefile b/devel/pear/Makefile
index 1364a6272517..33c4b07e55db 100644
--- a/devel/pear/Makefile
+++ b/devel/pear/Makefile
@@ -6,13 +6,14 @@ PORTVERSION= 1.10.5
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://mirror.bsdproject.de/
+PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
MAINTAINER= joneum@FreeBSD.org
COMMENT= PEAR framework for PHP
LICENSE= PHP301
-USES= cpe php:cli tar:bzip2
+USES= cpe php:cli,flavors tar:bzip2
CPE_VENDOR= php
NO_BUILD= yes
NO_ARCH= yes
diff --git a/devel/pear/bsd.pear.channel.mk b/devel/pear/bsd.pear.channel.mk
index 1fa97ada6620..01acf9b3c832 100644
--- a/devel/pear/bsd.pear.channel.mk
+++ b/devel/pear/bsd.pear.channel.mk
@@ -2,20 +2,22 @@
#
# Common code for PEAR channels
-PKGNAMEPREFIX?= pear-channel-
+PKGNAMEPREFIX?= ${PEAR_PKGNAMEPREFIX}channel-
MASTER_SITES?= #no master sites
DISTFILES?= #no distfiles
-BUILD_DEPENDS?= ${LOCALBASE}/bin/pear:devel/pear
-RUN_DEPENDS?= ${LOCALBASE}/bin/pear:devel/pear
+USES+= pear:env
+
+BUILD_DEPENDS?= ${LOCALBASE}/bin/pear:devel/pear@${PHP_FLAVOR}
+RUN_DEPENDS?= ${LOCALBASE}/bin/pear:devel/pear@${PHP_FLAVOR}
NO_BUILD?= yes
LPEARDIR?= share/pear
PEAR_CHANNEL_ALIAS?= ${PORTNAME}
-PEAR_CHANNEL_REG?= ${FILESDIR}/${PEAR_CHANNEL_HOST}.reg
+PEAR_CHANNEL_REG?= ${.CURDIR}/files/${PEAR_CHANNEL_HOST}.reg
PLIST_FILES= ${LPEARDIR}/.channels/.alias/${PEAR_CHANNEL_ALIAS}.txt \
${LPEARDIR}/.channels/${PEAR_CHANNEL_HOST}.reg