aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2014-05-14 18:20:08 +0800
committerale <ale@FreeBSD.org>2014-05-14 18:20:08 +0800
commit7c7a664a6406320b9ae6f6b98fb7a42a0b762d1c (patch)
treedda49a35162a024df437fa7d2cb9ac76c1d748f2 /textproc
parent8816ff1ec05f3e7d2a255aadff20c9106d50b0ca (diff)
downloadfreebsd-ports-gnome-7c7a664a6406320b9ae6f6b98fb7a42a0b762d1c.tar.gz
freebsd-ports-gnome-7c7a664a6406320b9ae6f6b98fb7a42a0b762d1c.tar.zst
freebsd-ports-gnome-7c7a664a6406320b9ae6f6b98fb7a42a0b762d1c.zip
Fix builds of a few extensions.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/php5-simplexml/files/patch-config.m443
1 files changed, 43 insertions, 0 deletions
diff --git a/textproc/php5-simplexml/files/patch-config.m4 b/textproc/php5-simplexml/files/patch-config.m4
new file mode 100644
index 000000000000..4eeef697dc87
--- /dev/null
+++ b/textproc/php5-simplexml/files/patch-config.m4
@@ -0,0 +1,43 @@
+--- config.m4.orig 2014-05-14 10:14:22.929420181 +0000
++++ config.m4 2014-05-14 10:15:36.967414693 +0000
+@@ -4,6 +4,9 @@
+ PHP_ARG_ENABLE(simplexml, whether to enable SimpleXML support,
+ [ --disable-simplexml Disable SimpleXML support], yes)
+
++PHP_ARG_WITH(pcre-dir, pcre install prefix,
++[ --with-pcre-dir SimpleXML: pcre install prefix], no, no)
++
+ if test -z "$PHP_LIBXML_DIR"; then
+ PHP_ARG_WITH(libxml-dir, libxml2 install dir,
+ [ --with-libxml-dir=DIR SimpleXML: libxml2 install prefix], no, no)
+@@ -11,6 +14,30 @@
+
+ if test "$PHP_SIMPLEXML" != "no"; then
+
++ dnl This is PECL build, check if bundled PCRE library is used
++ old_CPPFLAGS=$CPPFLAGS
++ CPPFLAGS=$INCLUDES
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_BUNDLED_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=yes
++ ],[
++ AC_EGREP_CPP(yes,[
++#include <main/php_config.h>
++#if defined(HAVE_PCRE) && !defined(COMPILE_DL_PCRE)
++yes
++#endif
++ ],[
++ PHP_PCRE_REGEX=pecl
++ PHP_ADD_INCLUDE($PHP_PCRE_DIR/include)
++ ],[
++ PHP_PCRE_REGEX=no
++ ])
++ ])
++
+ if test "$PHP_LIBXML" = "no"; then
+ AC_MSG_ERROR([SimpleXML extension requires LIBXML extension, add --enable-libxml])
+ fi