aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_php4
diff options
context:
space:
mode:
Diffstat (limited to 'www/mod_php4')
-rw-r--r--www/mod_php4/files/patch-ext_mcal_config.m412
-rw-r--r--www/mod_php4/scripts/configure.php5
2 files changed, 17 insertions, 0 deletions
diff --git a/www/mod_php4/files/patch-ext_mcal_config.m4 b/www/mod_php4/files/patch-ext_mcal_config.m4
new file mode 100644
index 000000000000..c6c639940c6e
--- /dev/null
+++ b/www/mod_php4/files/patch-ext_mcal_config.m4
@@ -0,0 +1,12 @@
+--- ext/mcal/config.m4.orig Tue Mar 27 22:34:31 2001
++++ ext/mcal/config.m4 Mon Nov 26 18:22:29 2001
+@@ -40,7 +40,8 @@
+ fi
+
+ PHP_ADD_INCLUDE($MCAL_INCLUDE)
+- PHP_ADD_LIBRARY_WITH_PATH(mcal, $MCAL_LIBRARY, MCAL_SHARED_LIBADD)
++ PHP_ADD_LIBPATH($MCAL_LIBRARY, MCAL_SHARED_LIBADD)
++ PHP_ADD_LIBRARY(mcal, 1, MCAL_SHARED_LIBADD)
+ PHP_SUBST(MCAL_SHARED_LIBADD)
+ AC_DEFINE(HAVE_MCAL,1,[ ])
+ PHP_EXTENSION(mcal,$ext_shared)
diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php
index 42f6a1985d24..23ee321872b3 100644
--- a/www/mod_php4/scripts/configure.php
+++ b/www/mod_php4/scripts/configure.php
@@ -48,6 +48,7 @@ YP "YP/NIS support" OFF \
BCMath "BCMath support" OFF \
Hyperwave "Hyperwave support" OFF \
ming "ming library support" OFF \
+MCAL "Modular Calendar Access Library support" OFF \
sockets "sockets support" OFF \
sysvsem "System V semaphore support" OFF \
sysvshm "System V shared memory support" OFF \
@@ -276,6 +277,10 @@ EOF
echo "LIB_DEPENDS+= ming.3:\${PORTSDIR}/graphics/ming"
echo "CONFIGURE_ARGS+=--with-ming=\${PREFIX}"
;;
+ \"MCAL\")
+ echo "CONFIGURE_ARGS+=--with-mcal=\${PREFIX}"
+ echo "LIB_DEPENDS+= mcal.0:\${PORTSDIR}/misc/libmcal"
+ ;;
\"sockets\")
echo "CONFIGURE_ARGS+=--enable-sockets"
;;