diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-24 05:27:41 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-02-24 05:27:41 +0000 |
commit | 37408314394e95028d8b2c39c7a046743f4a8aff (patch) | |
tree | 2b6191d95df05d3c803b2b608388da8da19d5172 /devel/pear-Date/Makefile | |
parent | e9cbac30476d2a2b80b9d5e2de2698408bade36d (diff) | |
download | ports-37408314394e95028d8b2c39c7a046743f4a8aff.tar.gz ports-37408314394e95028d8b2c39c7a046743f4a8aff.zip |
Notes
Diffstat (limited to 'devel/pear-Date/Makefile')
-rw-r--r-- | devel/pear-Date/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/devel/pear-Date/Makefile b/devel/pear-Date/Makefile index 7ddcb574e4b8..0be0463e1aa4 100644 --- a/devel/pear-Date/Makefile +++ b/devel/pear-Date/Makefile @@ -7,6 +7,7 @@ PORTNAME= Date PORTVERSION= 1.3 +PORTREVISION= 1 CATEGORIES= devel www MASTER_SITES= http://pear.php.net/get/ PKGNAMEPREFIX= pear- @@ -21,9 +22,18 @@ RUN_DEPENDS= ${BUILD_DEPENDS} NO_BUILD= yes +.include <bsd.port.pre.mk> + +.if exists(${LOCALBASE}/bin/php-config) +PHP_BASE!= ${LOCALBASE}/bin/php-config --prefix +.else +PHP_BASE!= ${LOCALBASE} +.endif +PEAR= ${LOCALBASE}/bin/pear LPHP_LIB= lib/php -PEARDIR= ${LOCALBASE}/${LPHP_LIB} +PEARDIR= ${PHP_BASE}/${LPHP_LIB} PLIST_SUB= PEARDIR=${LPHP_LIB} + MANIFEST= Date Date.php do-install: @@ -32,4 +42,8 @@ do-install: @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PEARDIR}/${FILE} .endfor -.include <bsd.port.mk> +post-install: +# Register a new package + @${PEAR} install -r -f ${WRKDIR}/package.xml + +.include <bsd.port.post.mk> |