aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2013-09-29 00:48:34 +0800
committermm <mm@FreeBSD.org>2013-09-29 00:48:34 +0800
commit8f534bc601994e39ac5ed1dbc4b5ee9435014096 (patch)
tree9e383e38142fed2519da0e452fc72efe686c4e50
parentc5eee851d62de1b89a084da77dc9d06aea1ae4bb (diff)
downloadfreebsd-ports-gnome-8f534bc601994e39ac5ed1dbc4b5ee9435014096.tar.gz
freebsd-ports-gnome-8f534bc601994e39ac5ed1dbc4b5ee9435014096.tar.zst
freebsd-ports-gnome-8f534bc601994e39ac5ed1dbc4b5ee9435014096.zip
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)
-rw-r--r--Mk/bsd.php.mk7
-rw-r--r--lang/php55/Makefile.ext4
-rw-r--r--www/Makefile1
-rw-r--r--www/pecl-zendopcache/Makefile2
-rw-r--r--www/php55-opcache/Makefile11
5 files changed, 24 insertions, 1 deletions
diff --git a/Mk/bsd.php.mk b/Mk/bsd.php.mk
index 4f57094e895f..47ad6210950b 100644
--- a/Mk/bsd.php.mk
+++ b/Mk/bsd.php.mk
@@ -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
diff --git a/lang/php55/Makefile.ext b/lang/php55/Makefile.ext
index 63a7189acf12..32242749d57a 100644
--- a/lang/php55/Makefile.ext
+++ b/lang/php55/Makefile.ext
@@ -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
diff --git a/www/Makefile b/www/Makefile
index 41ce8538731c..02b0afad82c9 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1419,6 +1419,7 @@
SUBDIR += php52-tidy
SUBDIR += php53-session
SUBDIR += php53-tidy
+ SUBDIR += php55-opcache
SUBDIR += php55-session
SUBDIR += php55-tidy
SUBDIR += phpbb
diff --git a/www/pecl-zendopcache/Makefile b/www/pecl-zendopcache/Makefile
index 43b9739e0978..a378fdd98d97 100644
--- a/www/pecl-zendopcache/Makefile
+++ b/www/pecl-zendopcache/Makefile
@@ -23,6 +23,8 @@ PHP_MODNAME= opcache
PORTDOCS= *
+IGNORE_WITH_PHP= 55
+
NO_STAGE= yes
.include <bsd.port.options.mk>
diff --git a/www/php55-opcache/Makefile b/www/php55-opcache/Makefile
new file mode 100644
index 000000000000..1d8ecb39f9fe
--- /dev/null
+++ b/www/php55-opcache/Makefile
@@ -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"