63 lines
1.7 KiB
Makefile
63 lines
1.7 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.3.0a
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://downloads.zend.com/optimizer/${DISTVERSION}/
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-freebsd${VER}-${ARCH}
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
COMMENT= An optimizer for PHP code
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
NO_BUILD= yes
|
|
USE_PHP= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
# Check for FreeBSD version
|
|
VER= 6.0
|
|
.if ${OSVERSION} >= 700043
|
|
LIB_DEPENDS+= m.4:${PORTSDIR}/misc/compat6x
|
|
.endif
|
|
|
|
.if ${PHP_VER} == 4
|
|
ZEND_PATH= 4.4.x
|
|
.else
|
|
ZEND_PATH= 5.2.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}/EULA-ZendOptimizer ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README-ZendOptimizer ${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/data/doc/* ${DOCSDIR}
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|