Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2013 16:48:34 +0000 (UTC)
From:      Martin Matuska <mm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r328594 - in head: Mk lang/php55 www www/pecl-zendopcache www/php55-opcache
Message-ID:  <201309281648.r8SGmYDp005965@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309281648.r8SGmYDp005965>