diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2002-09-03 04:05:05 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2002-09-03 04:05:05 +0000 |
commit | 0ec617aecde982f26ac47dab58d971b8ba284c76 (patch) | |
tree | 4f64402808e4ddf74b5aa73f8b12d118fd683e3b /www/php-templates/Makefile | |
parent | 3e5ddbe2f3a831d73153241416cdcf0076c5637b (diff) | |
download | ports-0ec617aecde982f26ac47dab58d971b8ba284c76.tar.gz ports-0ec617aecde982f26ac47dab58d971b8ba284c76.zip |
Notes
Diffstat (limited to 'www/php-templates/Makefile')
-rw-r--r-- | www/php-templates/Makefile | 21 |
1 files changed, 14 insertions, 7 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> |