ports/182112: [NEW PORT] www/php55-opcache
Martin Matuska
mm at freebsd.org
Sun Sep 15 12:40:02 UTC 2013
>Number: 182112
>Category: ports
>Synopsis: [NEW PORT] www/php55-opcache
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Sep 15 12:40:02 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 9.2-PRERELEASE amd64
>Organization:
>Environment:
>Description:
Add the www/php55-opcache extension
Add knobs to bsd.php.mk (use www/pecl-zendopcache if PHP_VER != 55)
>How-To-Repeat:
>Fix:
Index: Mk/bsd.php.mk
===================================================================
--- Mk/bsd.php.mk (revision 327337)
+++ Mk/bsd.php.mk (working copy)
@@ -261,7 +261,7 @@
_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 @@
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
Index: lang/php55/Makefile.ext
===================================================================
--- lang/php55/Makefile.ext (revision 327337)
+++ lang/php55/Makefile.ext (working copy)
@@ -220,6 +220,10 @@
USE_OPENSSL= yes
.endif
+.if ${PHP_MODNAME} == "opcache"
+CONFIGURE_ARGS+=--enable-opcache
+.endif
+
.if ${PHP_MODNAME} == "pcntl"
CONFIGURE_ARGS+=--enable-pcntl
.endif
Index: www/Makefile
===================================================================
--- www/Makefile (revision 327337)
+++ www/Makefile (working copy)
@@ -1419,6 +1419,7 @@
SUBDIR += php52-tidy
SUBDIR += php53-session
SUBDIR += php53-tidy
+ SUBDIR += php55-opcache
SUBDIR += php55-session
SUBDIR += php55-tidy
SUBDIR += phpbb
Index: www/pecl-zendopcache/Makefile
===================================================================
--- www/pecl-zendopcache/Makefile (revision 327337)
+++ www/pecl-zendopcache/Makefile (working copy)
@@ -23,6 +23,8 @@
PORTDOCS= *
+IGNORE_WITH_PHP= 55
+
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS}
Index: www/php55-opcache/Makefile
===================================================================
--- www/php55-opcache/Makefile (revision 0)
+++ www/php55-opcache/Makefile (working copy)
@@ -0,0 +1,10 @@
+# Created by: Martin Matuska <mm at FreeBSD.org>
+# $FreeBSD$
+
+CATEGORIES= www
+
+MASTERDIR= ${.CURDIR}/../../lang/php55
+
+PKGNAMESUFFIX= -opcache
+
+.include "${MASTERDIR}/Makefile"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list