diff options
author | edwin <edwin@FreeBSD.org> | 2004-01-10 08:17:15 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2004-01-10 08:17:15 +0800 |
commit | f9ec78086329dd0410404630aee4ccc107981472 (patch) | |
tree | 522f631e4f8c0fc5bea0de8563a2174e7d199919 | |
parent | ac9e79521bba6ddd85ba2948c4a59f29ae1e3b21 (diff) | |
download | freebsd-ports-gnome-f9ec78086329dd0410404630aee4ccc107981472.tar.gz freebsd-ports-gnome-f9ec78086329dd0410404630aee4ccc107981472.tar.zst freebsd-ports-gnome-f9ec78086329dd0410404630aee4ccc107981472.zip |
[Maintainer Fix] Port: devel/ZendOptimizer
Use bsd.php.mk.
Small other fixes.
Make portlint happy.
PR: ports/61149
Submitted by: Alex Dupre <ale@freebsd.org>
-rw-r--r-- | devel/ZendOptimizer/Makefile | 25 | ||||
-rw-r--r-- | devel/ZendOptimizer/pkg-message | 4 | ||||
-rw-r--r-- | devel/ZendOptimizer/pkg-plist | 12 |
3 files changed, 19 insertions, 22 deletions
diff --git a/devel/ZendOptimizer/Makefile b/devel/ZendOptimizer/Makefile index cdcaab2838e4..4cbbdad8541d 100644 --- a/devel/ZendOptimizer/Makefile +++ b/devel/ZendOptimizer/Makefile @@ -13,51 +13,48 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-FreeBSD4.0-i386 MAINTAINER= sysadmin@alexdupre.com COMMENT= An optimizer for PHP code -RUN_DEPENDS= ${LOCALBASE}/bin/php:${PORTSDIR}/www/mod_php4 - ONLY_FOR_ARCHS= i386 NO_BUILD= yes +BROKEN_WITH_PHP=5 RESTRICTED= "Redistribution of pre-compiled binaries is not permitted" NO_CDROM= "Redistribution of pre-compiled binaries is not permitted" -EXT_DIR= 20020429 -PLIST_SUB= EXT_DIR=${EXT_DIR} - PKGMESSAGE= ${WRKDIR}/pkg-message .include <bsd.port.pre.mk> +.include "${.CURDIR}/../../lang/php4/bsd.php.mk" # Check for FreeBSD version .if ${OSVERSION} < 400000 || ${OSVERSION} > 499999 -BROKEN= "This port is for FreeBSD 4 only." -.endif - +BROKEN= "This port is for FreeBSD 4 only" +.else # Check for ZendOptimizer sources .if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING) ECHO_MSG=/usr/bin/printf -IGNORE= :\n\ +IGNORE= :\n\ Because of licensing restrictions, you must fetch the source distribution\n\ manually.\n\ Please access http://www.zend.com/store/getfreefile.php?pid=13&zbid=547\n\ with a web browser, read the license and click the \"I ACCEPT\" button.\n\ -Download the source file, ${DISTFILES},\n\ +Download the source file, ${DISTNAME}${EXTRACT_SUFX},\n\ and place it in ${DISTDIR}.\n .endif +.endif do-install: - @${MKDIR} ${PREFIX}/lib/php/${EXT_DIR} + @${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR} ${INSTALL_DATA} ${WRKSRC}/data/4_3_x_comp/ZendOptimizer.so \ - ${PREFIX}/lib/php/${EXT_DIR}/ZendOptimizer.so + ${PREFIX}/lib/php/${PHP_EXT_DIR}/ZendOptimizer.so ${INSTALL_DATA} ${WRKSRC}/data/4_3_x_comp/TS/ZendOptimizer.so \ - ${PREFIX}/lib/php/${EXT_DIR}/ZendOptimizer_TS.so + ${PREFIX}/lib/php/${PHP_EXT_DIR}/ZendOptimizer_TS.so .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/data/doc/* ${DOCSDIR} .endif post-install: - @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%EXT_DIR%%|${EXT_DIR}|g" \ + @${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \ ${.CURDIR}/pkg-message > ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} diff --git a/devel/ZendOptimizer/pkg-message b/devel/ZendOptimizer/pkg-message index b4cb4bb968ab..cdac7a92247a 100644 --- a/devel/ZendOptimizer/pkg-message +++ b/devel/ZendOptimizer/pkg-message @@ -6,7 +6,7 @@ Edit %%LOCALBASE%%/etc/php.ini and add: [Zend] zend_optimizer.optimization_level=15 -zend_extension_ts="%%PREFIX%%/lib/php/%%EXT_DIR%%/ZendOptimizer_TS.so" -zend_extension=""%%PREFIX%%/lib/php/%%EXT_DIR%%/ZendOptimizer.so" +zend_extension_ts="%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/ZendOptimizer_TS.so" +zend_extension=""%%PREFIX%%/lib/php/%%PHP_EXT_DIR%%/ZendOptimizer.so" ***************************************************************************** diff --git a/devel/ZendOptimizer/pkg-plist b/devel/ZendOptimizer/pkg-plist index e5bd30a658fa..bdc0b7d2f4bb 100644 --- a/devel/ZendOptimizer/pkg-plist +++ b/devel/ZendOptimizer/pkg-plist @@ -1,6 +1,6 @@ -lib/php/%%EXT_DIR%%/ZendOptimizer_TS.so -lib/php/%%EXT_DIR%%/ZendOptimizer.so -%%PORTDOCS%%share/doc/ZendOptimizer/ZendOptimizer_TechFAQ.pdf -%%PORTDOCS%%share/doc/ZendOptimizer/ZendOptimizer_UserGuide.pdf -@unexec rmdir %D/lib/php/%%EXT_DIR%% 2> /dev/null || true -%%PORTDOCS%%@dirrm share/doc/ZendOptimizer +lib/php/%%PHP_EXT_DIR%%/ZendOptimizer_TS.so +lib/php/%%PHP_EXT_DIR%%/ZendOptimizer.so +%%PORTDOCS%%%%DOCSDIR%%/ZendOptimizer_TechFAQ.pdf +%%PORTDOCS%%%%DOCSDIR%%/ZendOptimizer_UserGuide.pdf +@unexec rmdir %D/lib/php/%%PHP_EXT_DIR%% 2> /dev/null || true +%%PORTDOCS%%@dirrm %%DOCSDIR%% |