svn commit: r324626 - head/lang/php5

Alex Dupre ale at FreeBSD.org
Mon Aug 12 12:54:12 UTC 2013


Author: ale
Date: Mon Aug 12 12:54:12 2013
New Revision: 324626
URL: http://svnweb.freebsd.org/changeset/ports/324626

Log:
  Add an OPTION to force ZTS build.
  
  PR:		ports/180125
  Submitted by:	r4721 at tormail.org

Modified:
  head/lang/php5/Makefile

Modified: head/lang/php5/Makefile
==============================================================================
--- head/lang/php5/Makefile	Mon Aug 12 12:45:24 2013	(r324625)
+++ head/lang/php5/Makefile	Mon Aug 12 12:54:12 2013	(r324626)
@@ -38,7 +38,7 @@ CONFIGURE_ARGS=	\
 
 USE_GNOME=	libxml2
 
-OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR
+OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR ZTS
 OPTIONS_DEFAULT=CLI CGI IPV6 LINKTHR
 
 CLI_DESC=	Build CLI version
@@ -52,6 +52,7 @@ DTRACE_DESC=	Enable DTrace support
 IPV6_DESC=	Enable ipv6 support
 MAILHEAD_DESC=	Enable mail header patch
 LINKTHR_DESC=	Link thread lib (for threaded extensions)
+ZTS_DESC=	Force Zend Thread Safety (ZTS) build
 
 CONFLICTS=	php52-5* php53-5* php55-5*
 
@@ -150,6 +151,10 @@ CONFIGURE_ENV+=	ac_cv_pthreads_lib="" \
 CONFIGURE_ENV+=	LIBS="${LIBS} ${PTHREAD_LIBS}"
 .endif
 
+.if ${PORT_OPTIONS:MZTS}
+CONFIGURE_ARGS+=--enable-maintainer-zts
+.endif
+
 .if ${PORT_OPTIONS:MDEBUG}
 CONFIGURE_ARGS+=--enable-debug
 .endif


More information about the svn-ports-head mailing list