1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/devel/ZendOptimizer/Makefile
Alex Dupre 3d3a622d79 Update to 3.0.0 final release.
PR:		ports/95686
Submitted by:	Daniel Gerzo <danger@rulez.sk>
2006-04-22 13:31:13 +00:00

77 lines
2.0 KiB
Makefile

# 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
DISTVERSION= 3.0.0
CATEGORIES= devel
DISTNAME= ${PORTNAME}-${DISTVERSION}-freebsd${VER}-i386
MAINTAINER= ale@FreeBSD.org
COMMENT= An optimizer for PHP code
ONLY_FOR_ARCHS= i386
NO_BUILD= yes
USE_PHP= yes
RESTRICTED= "Redistribution of pre-compiled binaries is not permitted"
SUB_FILES= pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
# Check for FreeBSD version
.if ${OSVERSION} < 500000
IGNORE= this port is for FreeBSD 5 or above
.else
.if ${OSVERSION} < 600000
VER= 5.4
.else
VER= 6.0
.endif
# Check for ZendOptimizer sources
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
ECHO_MSG=/usr/bin/printf
IGNORE= :\n\
Because of licensing restrictions, you must fetch the source distribution\n\
manually from the http://www.zend.com/free_download/optimizer URL.\n\
Download the source file, ${DISTNAME}${EXTRACT_SUFX},\n\
and place it in ${DISTDIR}.\n
.endif
.endif
.if ${PHP_VER} == 4
ZEND_PATH= 4.4.x
.else
ZEND_PATH= 5.1.x
.endif
PLIST_SUB+= ZEND_PATH=${ZEND_PATH}
PORTDOCS= *
do-install:
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}/Optimizer/php-${ZEND_PATH}
${INSTALL_DATA} ${WRKSRC}/data/${ZEND_PATH:S/./_/g}_comp/ZendOptimizer.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}/Optimizer/php-${ZEND_PATH}/ZendOptimizer.so
@${MKDIR} ${PREFIX}/lib/php/${PHP_EXT_DIR}/Optimizer_TS/php-${ZEND_PATH}
${INSTALL_DATA} ${WRKSRC}/data/${ZEND_PATH:S/./_/g}_comp/TS/ZendOptimizer.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}/Optimizer_TS/php-${ZEND_PATH}/ZendOptimizer.so
${INSTALL_DATA} ${WRKSRC}/data/ZendExtensionManager.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
${INSTALL_DATA} ${WRKSRC}/data/ZendExtensionManager_TS.so \
${PREFIX}/lib/php/${PHP_EXT_DIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/data/doc/* ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>