aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2004-07-26 15:16:40 +0800
committerale <ale@FreeBSD.org>2004-07-26 15:16:40 +0800
commitb9dd8db597270b89498beea1bd31021dbfaea6ee (patch)
tree75c67caf7a3bb0510741ab471a09cf490d389da8 /textproc
parent9639ceb3aa1103b786f833221d3b19854c6cf171 (diff)
downloadfreebsd-ports-gnome-b9dd8db597270b89498beea1bd31021dbfaea6ee.tar.gz
freebsd-ports-gnome-b9dd8db597270b89498beea1bd31021dbfaea6ee.tar.zst
freebsd-ports-gnome-b9dd8db597270b89498beea1bd31021dbfaea6ee.zip
Fix compilation of wddx extension.
PR: ports/69464 Submitted by: Vadim Mikhailov <freebsd-bugs@mikhailov.org>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/php4-wddx/files/patch-config.m431
-rw-r--r--textproc/php4-wddx/files/patch-wddx.c13
2 files changed, 44 insertions, 0 deletions
diff --git a/textproc/php4-wddx/files/patch-config.m4 b/textproc/php4-wddx/files/patch-config.m4
new file mode 100644
index 000000000000..f8db4af29bfc
--- /dev/null
+++ b/textproc/php4-wddx/files/patch-config.m4
@@ -0,0 +1,31 @@
+--- config.m4.orig Mon Jul 26 09:05:10 2004
++++ config.m4 Mon Jul 26 09:07:46 2004
+@@ -5,6 +5,9 @@
+ PHP_ARG_ENABLE(wddx,whether to enable WDDX support,
+ [ --enable-wddx Enable WDDX support.])
+
++PHP_ARG_WITH(expat-dir, external libexpat install dir,
++[ --with-expat-dir=<DIR> WDDX: external libexpat install dir], no, no)
++
+ if test "$PHP_WDDX" != "no"; then
+ if test "$ext_shared" != "yes" && test "$enable_xml" = "no"; then
+ AC_MSG_WARN(Activating XML)
+@@ -12,4 +15,18 @@
+ fi
+ AC_DEFINE(HAVE_WDDX, 1, [ ])
+ PHP_NEW_EXTENSION(wddx, wddx.c, $ext_shared)
++
++ for i in $PHP_EXPAT_DIR; do
++ if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.$SHLIB_SUFFIX_NAME ; then
++ EXPAT_DIR=$i
++ fi
++ done
++
++ if test -z "$EXPAT_DIR"; then
++ AC_MSG_ERROR(not found. Please reinstall the expat distribution.)
++ fi
++
++ PHP_ADD_INCLUDE($EXPAT_DIR/include)
++ PHP_ADD_LIBRARY_WITH_PATH(expat, $EXPAT_DIR/lib, XML_SHARED_LIBADD)
++ PHP_SUBST(XML_SHARED_LIBADD)
+ fi
diff --git a/textproc/php4-wddx/files/patch-wddx.c b/textproc/php4-wddx/files/patch-wddx.c
new file mode 100644
index 000000000000..0a26af4abf7c
--- /dev/null
+++ b/textproc/php4-wddx/files/patch-wddx.c
@@ -0,0 +1,13 @@
+--- wddx.c.orig Mon Jul 26 08:56:21 2004
++++ wddx.c Mon Jul 26 08:56:40 2004
+@@ -18,6 +18,10 @@
+
+ /* $Id: wddx.c,v 1.96.2.5.2.1 2004/07/13 13:15:30 iliaa Exp $ */
+
++#ifdef HAVE_CONFIG_H
++# include "config.h"
++#endif
++
+ #include "php.h"
+ #include "php_wddx.h"
+