Add the www/php55-opcache extension Add knobs to bsd.php.mk (use www/pecl-zendopcache if PHP_VER != 55)
Responsible Changed From-To: freebsd-ports-bugs->mm Submitter has GNATS access (via the GNATS Auto Assign Tool)
Responsible Changed From-To: mm->ale Pass to maintainer for approval
Author: mm Date: Sat Sep 28 16:48:34 2013 New Revision: 328594 URL: http://svnweb.freebsd.org/changeset/ports/328594 Log: 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) Added: head/www/php55-opcache/ head/www/php55-opcache/Makefile (contents, props changed) Modified: head/Mk/bsd.php.mk head/lang/php55/Makefile.ext head/www/Makefile head/www/pecl-zendopcache/Makefile Modified: head/Mk/bsd.php.mk ============================================================================== --- head/Mk/bsd.php.mk Sat Sep 28 16:14:27 2013 (r328593) +++ head/Mk/bsd.php.mk Sat Sep 28 16:48:34 2013 (r328594) @@ -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}- 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 Modified: head/lang/php55/Makefile.ext ============================================================================== --- head/lang/php55/Makefile.ext Sat Sep 28 16:14:27 2013 (r328593) +++ head/lang/php55/Makefile.ext Sat Sep 28 16:48:34 2013 (r328594) @@ -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 Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Sat Sep 28 16:14:27 2013 (r328593) +++ head/www/Makefile Sat Sep 28 16:48:34 2013 (r328594) @@ -1419,6 +1419,7 @@ SUBDIR += php52-tidy SUBDIR += php53-session SUBDIR += php53-tidy + SUBDIR += php55-opcache SUBDIR += php55-session SUBDIR += php55-tidy SUBDIR += phpbb Modified: head/www/pecl-zendopcache/Makefile ============================================================================== --- head/www/pecl-zendopcache/Makefile Sat Sep 28 16:14:27 2013 (r328593) +++ head/www/pecl-zendopcache/Makefile Sat Sep 28 16:48:34 2013 (r328594) @@ -23,6 +23,8 @@ PHP_MODNAME= opcache PORTDOCS= * +IGNORE_WITH_PHP= 55 + NO_STAGE= yes .include <bsd.port.options.mk> Added: head/www/php55-opcache/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/php55-opcache/Makefile Sat Sep 28 16:48:34 2013 (r328594) @@ -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" _______________________________________________ svn-ports-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-ports-all To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed committed Sat Sep 28 16:48:34 2013.