aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2002-09-03 04:05:05 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2002-09-03 04:05:05 +0000
commit0ec617aecde982f26ac47dab58d971b8ba284c76 (patch)
tree4f64402808e4ddf74b5aa73f8b12d118fd683e3b
parent3e5ddbe2f3a831d73153241416cdcf0076c5637b (diff)
downloadports-0ec617aecde982f26ac47dab58d971b8ba284c76.tar.gz
ports-0ec617aecde982f26ac47dab58d971b8ba284c76.zip
Notes
-rw-r--r--www/php-templates/Makefile21
-rw-r--r--www/php-templates/distinfo2
-rw-r--r--www/php-templates/pkg-message2
-rw-r--r--www/php-templates/pkg-plist3
4 files changed, 17 insertions, 11 deletions
diff --git a/www/php-templates/Makefile b/www/php-templates/Makefile
index df0ee39c9360..cfa90230c465 100644
--- a/www/php-templates/Makefile
+++ b/www/php-templates/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= php-templates
-PORTVERSION= 0.2
+PORTVERSION= 1.1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -21,24 +21,31 @@ RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/www/apache13 \
${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
USE_LIBTOOL= yes
-LIBTOOLFILES= aclocal.m4
+USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/templates
-CONFIGURE_ARGS+=--enable-templates=shared \
+CONFIGURE_ARGS= --enable-templates=shared \
--with-php-config=${PREFIX}/bin/php-config
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
post-extract:
+ @${REINPLACE_CMD} -e 's/[[:cntrl:]]$$//' ${WRKSRC}/php_templates.h \
+ ${WRKSRC}/templates.c ${WRKSRC}/tmpl_lib.c
@${ECHO_MSG} "===> PHPizing for ${DISTNAME}"
@cd ${WRKSRC} && ${LOCALBASE}/bin/phpize
+post-build:
+ @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g" \
+ ${.CURDIR}/pkg-message > ${PKGMESSAGE}
+
do-install:
- @${MKDIR} ${PREFIX}/lib/php/20010901
+ @${MKDIR} ${PREFIX}/lib/php/extensions
@${INSTALL_DATA} ${WRKSRC}/modules/templates.so \
- ${PREFIX}/lib/php/20010901
+ ${PREFIX}/lib/php/extensions
post-install:
- @${SED} "s!%%LOCALBASE%%!${LOCALBASE}!g;s!%%PREFIX%%!${PREFIX}!g" \
- ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/www/php-templates/distinfo b/www/php-templates/distinfo
index 2ccffbc7e274..69d0774af940 100644
--- a/www/php-templates/distinfo
+++ b/www/php-templates/distinfo
@@ -1 +1 @@
-MD5 (php_templates-0.2.tar.gz) = 1f18df4b54e5f541afaad31f9c3225cc
+MD5 (php_templates-1.1.tar.gz) = e7c30fd006f2a63862fdc40b76757f5f
diff --git a/www/php-templates/pkg-message b/www/php-templates/pkg-message
index ccb49f5a8527..edd4bbb1b95f 100644
--- a/www/php-templates/pkg-message
+++ b/www/php-templates/pkg-message
@@ -4,6 +4,6 @@ You have installed the php-templates package.
Edit %%LOCALBASE%%/etc/php.ini and add:
-extension="%%PREFIX%%/lib/php/20010901/templates.so"
+extension="%%PREFIX%%/lib/php/extensions/templates.so"
*****************************************************************************
diff --git a/www/php-templates/pkg-plist b/www/php-templates/pkg-plist
index 3c1ccabdf8a8..c6087436d3cc 100644
--- a/www/php-templates/pkg-plist
+++ b/www/php-templates/pkg-plist
@@ -1,2 +1 @@
-lib/php/20010901/templates.so
-@unexec rmdir %D/lib/php/20010901 2>/dev/null || true
+lib/php/extensions/templates.so