Updated version below. The original diff included a typo
('--with-readline' was not correctly appended to the preceeding
CONFIGURE_ARGS). Thanks to Markus Lude for the feedback.
Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/lang/php/Makefile.inc,v
retrieving revision 1.64
diff -u -p -r1.64 Makefile.inc
--- Makefile.inc 3 Apr 2015 12:21:20 -0000 1.64
+++ Makefile.inc 16 Jun 2015 08:10:23 -0000
@@ -48,9 +48,6 @@ MODULES_SUBDIR= lib/php-${PV}/modules
MODULES_DIR= ${LOCALBASE}/${MODULES_SUBDIR}
FLAVORS= ap2
-.if ${PV} == "5.3"
-FLAVORS+= no_suhosin
-.endif
FLAVOR?=
PATCHORIG= .orig.port
@@ -76,12 +73,8 @@ CONFIGURE_ARGS+= --enable-shared \
--with-pdo-sqlite \
--enable-sqlite-utf8 \
--with-sqlite3 \
- --program-suffix=-${PV}
-
-# readline is broken in PHP-5.3
-.if ${PV} != 5.3
-CONFIGURE_ARGS += --with-readline
-.endif
+ --program-suffix=-${PV} \
+ --with-readline
.if ${FLAVOR:Map2}
CONFIGURE_ARGS+= --with-apxs2=${LOCALBASE}/sbin/apxs2
@@ -112,8 +105,7 @@ CONFIGURE_ARGS+= --with-openssl \
--enable-sysvshm \
--enable-mbstring \
--enable-exif \
- --enable-zend-multibyte \
- --enable-fastcgi
+ --enable-cgi
TEST_TARGET= test
TEST_FLAGS= NO_INTERACTION=1
On 15-06-2015 20:09, Thierry M wrote :
A few update proposals to Makefile.inc, now that php 5.3 has been
unhooked.
In particular, the following 2 configure option changes are from
http://php.net/manual/en/configure.about.php :
- remove '--enable-zend-multibyte' (This feature has been DEPRECATED
as of PHP 5.3.0 and REMOVED as of PHP 5.4.0)
- rename '--enable-fastcgi' to '--enable-cgi' (As of PHP 5.3.0 this
argument no longer exists and is enabled by --enable-cgi instead)
...