aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_php5
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2001-11-27 05:29:31 +0800
committerdirk <dirk@FreeBSD.org>2001-11-27 05:29:31 +0800
commitad8a6a054e41fa5148aec3c8acf59b151d251aa8 (patch)
tree58c3d8ec91dcdbc14abcd8ea15b879e16060b12e /www/mod_php5
parentbdf1f8285faff4589b85d8a898290577df2dc27d (diff)
downloadfreebsd-ports-gnome-ad8a6a054e41fa5148aec3c8acf59b151d251aa8.tar.gz
freebsd-ports-gnome-ad8a6a054e41fa5148aec3c8acf59b151d251aa8.tar.zst
freebsd-ports-gnome-ad8a6a054e41fa5148aec3c8acf59b151d251aa8.zip
Add support for MCAL (Modular Calendar Access Library)
PR: ports/31417 Submitted by: Thierry Thomas <thierry@thomas.as>
Diffstat (limited to 'www/mod_php5')
-rw-r--r--www/mod_php5/files/patch-ext_mcal_config.m412
-rw-r--r--www/mod_php5/scripts/configure.php5
2 files changed, 17 insertions, 0 deletions
diff --git a/www/mod_php5/files/patch-ext_mcal_config.m4 b/www/mod_php5/files/patch-ext_mcal_config.m4
new file mode 100644
index 000000000000..c6c639940c6e
--- /dev/null
+++ b/www/mod_php5/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_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php
index 42f6a1985d24..23ee321872b3 100644
--- a/www/mod_php5/scripts/configure.php
+++ b/www/mod_php5/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"
;;