Add native opcache extension for php55.

Build pecl-zendopcache only for php 5.4 and older.

PR:		ports/182112
Approved by:	ale (private e-mail)
This commit is contained in:
Martin Matuska 2013-09-28 16:48:34 +00:00
parent 57a9dd563f
commit 03ad7ca744
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328594
5 changed files with 24 additions and 1 deletions

View file

@ -261,7 +261,7 @@ php-ini:
_USE_PHP_ALL= apc bcmath bitset bz2 calendar ctype curl dba dom \
exif fileinfo filter ftp gd gettext gmp \
hash iconv igbinary imap interbase intl json ldap mbstring mcrypt \
memcache mssql mysql mysqli odbc \
memcache mssql mysql mysqli odbc opcache \
openssl pcntl pcre pdf pdo pdo_dblib pdo_firebird pdo_mysql \
pdo_odbc pdo_pgsql pdo_sqlite pgsql posix \
pspell radius readline recode session shmop simplexml snmp soap\
@ -312,6 +312,11 @@ mysqli_DEPENDS= databases/php${PHP_VER}-mysqli
ncurses_DEPENDS=devel/php${PHP_VER}-ncurses
odbc_DEPENDS= databases/php${PHP_VER}-odbc
oci8_DEPENDS= databases/php${PHP_VER}-oci8
.if ${PHP_VER} == 55
opcache_DEPENDS= www/php${PHP_VER}-opcache
.else
opcache_DEPENDS= www/pecl-zendopcache
.endif
openssl_DEPENDS=security/php${PHP_VER}-openssl
pcntl_DEPENDS= devel/php${PHP_VER}-pcntl
pcre_DEPENDS= devel/php${PHP_VER}-pcre

View file

@ -220,6 +220,10 @@ LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USE_OPENSSL= yes
.endif
.if ${PHP_MODNAME} == "opcache"
CONFIGURE_ARGS+=--enable-opcache
.endif
.if ${PHP_MODNAME} == "pcntl"
CONFIGURE_ARGS+=--enable-pcntl
.endif

View file

@ -1419,6 +1419,7 @@
SUBDIR += php52-tidy
SUBDIR += php53-session
SUBDIR += php53-tidy
SUBDIR += php55-opcache
SUBDIR += php55-session
SUBDIR += php55-tidy
SUBDIR += phpbb

View file

@ -23,6 +23,8 @@ PHP_MODNAME= opcache
PORTDOCS= *
IGNORE_WITH_PHP= 55
NO_STAGE= yes
.include <bsd.port.options.mk>

View file

@ -0,0 +1,11 @@
# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
CATEGORIES= www
MASTERDIR= ${.CURDIR}/../../lang/php55
PKGNAMESUFFIX= -opcache
USE_ZENDEXT= yes
.include "${MASTERDIR}/Makefile"