Bug 182112 - [NEW PORT] www/php55-opcache
Summary: [NEW PORT] www/php55-opcache
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-15 13:40 UTC by Martin Matuska
Modified: 2013-10-03 00:15 UTC (History)
0 users

See Also:


Attachments
file.diff (2.45 KB, patch)
2013-09-15 13:40 UTC, Martin Matuska
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matuska freebsd_committer freebsd_triage 2013-09-15 13:40:02 UTC
	Add the www/php55-opcache extension
	Add knobs to bsd.php.mk (use www/pecl-zendopcache if PHP_VER != 55)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-09-15 13:40:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mm

Submitter has GNATS access (via the GNATS Auto Assign Tool)
Comment 2 Martin Matuska freebsd_committer freebsd_triage 2013-09-15 13:55:30 UTC
Responsible Changed
From-To: mm->ale

Pass to maintainer for approval
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-09-28 17:48:42 UTC
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"
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2013-10-03 00:15:10 UTC
State Changed
From-To: open->closed

committed Sat Sep 28 16:48:34 2013.