2004-01-09 22:41:28 +01:00
|
|
|
# New ports collection makefile for: ZendOptimizer
|
|
|
|
# Date created: Thu Apr 24 00:23:22 CET 2003
|
|
|
|
# Whom: Alex Dupre <sysadmin@alexdupre.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ZendOptimizer
|
|
|
|
PORTVERSION= 2.1.0b
|
|
|
|
CATEGORIES= devel
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-FreeBSD4.0-i386
|
|
|
|
|
2004-01-18 11:50:15 +01:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2004-01-09 22:41:28 +01:00
|
|
|
COMMENT= An optimizer for PHP code
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
NO_BUILD= yes
|
2004-01-10 01:17:15 +01:00
|
|
|
BROKEN_WITH_PHP=5
|
2004-01-09 22:41:28 +01:00
|
|
|
|
|
|
|
RESTRICTED= "Redistribution of pre-compiled binaries is not permitted"
|
|
|
|
NO_CDROM= "Redistribution of pre-compiled binaries is not permitted"
|
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2004-01-10 01:17:15 +01:00
|
|
|
.include "${.CURDIR}/../../lang/php4/bsd.php.mk"
|
2004-01-09 22:41:28 +01:00
|
|
|
|
|
|
|
# Check for FreeBSD version
|
|
|
|
.if ${OSVERSION} < 400000 || ${OSVERSION} > 499999
|
2004-01-11 11:11:29 +01:00
|
|
|
IGNORE= "This port is for FreeBSD 4 only"
|
2004-01-10 01:17:15 +01:00
|
|
|
.else
|
2004-01-09 22:41:28 +01:00
|
|
|
# Check for ZendOptimizer sources
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
|
|
|
|
ECHO_MSG=/usr/bin/printf
|
2004-01-10 01:17:15 +01:00
|
|
|
IGNORE= :\n\
|
2004-01-09 22:41:28 +01:00
|
|
|
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\
|
2004-01-10 01:17:15 +01:00
|
|
|
Download the source file, ${DISTNAME}${EXTRACT_SUFX},\n\
|
2004-01-09 22:41:28 +01:00
|
|
|
and place it in ${DISTDIR}.\n
|
|
|
|
.endif
|
2004-01-10 01:17:15 +01:00
|
|
|
.endif
|
2004-01-09 22:41:28 +01:00
|
|
|
|
|
|
|
do-install:
|
2004-01-10 01:17:15 +01:00
|
|
|
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}
|
2004-01-09 22:41:28 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/4_3_x_comp/ZendOptimizer.so \
|
2004-01-10 01:17:15 +01:00
|
|
|
${PREFIX}/lib/php/${PHP_EXT_DIR}/ZendOptimizer.so
|
2004-01-09 22:41:28 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/data/4_3_x_comp/TS/ZendOptimizer.so \
|
2004-01-10 01:17:15 +01:00
|
|
|
${PREFIX}/lib/php/${PHP_EXT_DIR}/ZendOptimizer_TS.so
|
2004-01-09 22:41:28 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/data/doc/* ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2004-01-10 01:17:15 +01:00
|
|
|
@${SED} "s|%%LOCALBASE%%|${LOCALBASE}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%PHP_EXT_DIR%%|${PHP_EXT_DIR}|g" \
|
2004-01-09 22:41:28 +01:00
|
|
|
${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|