aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2001-03-10 21:06:31 +0800
committerdirk <dirk@FreeBSD.org>2001-03-10 21:06:31 +0800
commit1ca5f99c82a703f2a8301565ff0e1ba983154550 (patch)
tree2dc2f17484ae401e003e9f8992bf07a5f36a63fb
parentc7e70ada296f9d1a5f1e699068940a37ec678bf4 (diff)
downloadfreebsd-ports-gnome-1ca5f99c82a703f2a8301565ff0e1ba983154550.tar.gz
freebsd-ports-gnome-1ca5f99c82a703f2a8301565ff0e1ba983154550.tar.zst
freebsd-ports-gnome-1ca5f99c82a703f2a8301565ff0e1ba983154550.zip
Fix detection of libmcrypt (hopefully).
PR: ports/25353 Submitted by: Juraj Bednar <juraj@bednar.sk>
-rw-r--r--www/mod_php4/files/patch-aq29
-rw-r--r--www/mod_php4/scripts/configure.php4
-rw-r--r--www/mod_php5/files/patch-aq29
-rw-r--r--www/mod_php5/scripts/configure.php4
4 files changed, 60 insertions, 6 deletions
diff --git a/www/mod_php4/files/patch-aq b/www/mod_php4/files/patch-aq
index 9de9789e82b9..8629edc8032d 100644
--- a/www/mod_php4/files/patch-aq
+++ b/www/mod_php4/files/patch-aq
@@ -1,5 +1,34 @@
--- configure.orig Tue Aug 29 20:37:36 2000
+++ configure Sat Sep 2 10:02:53 2000
+@@ -23088,12 +23088,7 @@
+
+ LIBS=$old_LIBS
+ LDFLAGS="$old_LDFLAGS"
+- if test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then
+- cat >> confdefs.h <<\EOF
+-#define HAVE_LIBMCRYPT22 1
+-EOF
+-
+- elif test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then
++ if test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then
+
+ case "ltdl" in
+ c|c_r|pthread*) ;;
+@@ -23106,8 +23101,13 @@
+ ;;
+ esac
+
+- cat >> confdefs.h <<\EOF
++ cat >> confdefs.h <<\EOF
+ #define HAVE_LIBMCRYPT24 1
++EOF
++
++ elif test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then
++ cat >> confdefs.h <<\EOF
++#define HAVE_LIBMCRYPT22 1
+ EOF
+
+ else
@@ -37824,18 +37824,6 @@
fi
diff --git a/www/mod_php4/scripts/configure.php b/www/mod_php4/scripts/configure.php
index 9547a2c94239..490b1e1c314f 100644
--- a/www/mod_php4/scripts/configure.php
+++ b/www/mod_php4/scripts/configure.php
@@ -74,9 +74,6 @@ while [ "$1" ]; do
ZLIB=1
;;
\"mcrypt\")
- echo "mcrypt support doesn't compile at the moment. Ignoring." > /dev/stderr
- ;;
- \"nothing\")
echo "LIB_DEPENDS+= mcrypt.5:\${PORTSDIR}/security/libmcrypt"
echo "CONFIGURE_ARGS+=--with-mcrypt=\${PREFIX}"
;;
@@ -146,6 +143,7 @@ while [ "$1" ]; do
echo "SNMP is DISABLED for now. Ignoring." > /dev/stderr
;;
\"nothing\")
+
echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/net-snmp"
echo "CONFIGURE_ARGS+=--with-snmp=\${PREFIX} --enable-ucd-snmp-hack"
;;
diff --git a/www/mod_php5/files/patch-aq b/www/mod_php5/files/patch-aq
index 9de9789e82b9..8629edc8032d 100644
--- a/www/mod_php5/files/patch-aq
+++ b/www/mod_php5/files/patch-aq
@@ -1,5 +1,34 @@
--- configure.orig Tue Aug 29 20:37:36 2000
+++ configure Sat Sep 2 10:02:53 2000
+@@ -23088,12 +23088,7 @@
+
+ LIBS=$old_LIBS
+ LDFLAGS="$old_LDFLAGS"
+- if test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then
+- cat >> confdefs.h <<\EOF
+-#define HAVE_LIBMCRYPT22 1
+-EOF
+-
+- elif test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then
++ if test "$ac_cv_lib_mcrypt_mcrypt_module_open" = "yes"; then
+
+ case "ltdl" in
+ c|c_r|pthread*) ;;
+@@ -23106,8 +23101,13 @@
+ ;;
+ esac
+
+- cat >> confdefs.h <<\EOF
++ cat >> confdefs.h <<\EOF
+ #define HAVE_LIBMCRYPT24 1
++EOF
++
++ elif test "$ac_cv_lib_mcrypt_init_mcrypt" = "yes"; then
++ cat >> confdefs.h <<\EOF
++#define HAVE_LIBMCRYPT22 1
+ EOF
+
+ else
@@ -37824,18 +37824,6 @@
fi
diff --git a/www/mod_php5/scripts/configure.php b/www/mod_php5/scripts/configure.php
index 9547a2c94239..490b1e1c314f 100644
--- a/www/mod_php5/scripts/configure.php
+++ b/www/mod_php5/scripts/configure.php
@@ -74,9 +74,6 @@ while [ "$1" ]; do
ZLIB=1
;;
\"mcrypt\")
- echo "mcrypt support doesn't compile at the moment. Ignoring." > /dev/stderr
- ;;
- \"nothing\")
echo "LIB_DEPENDS+= mcrypt.5:\${PORTSDIR}/security/libmcrypt"
echo "CONFIGURE_ARGS+=--with-mcrypt=\${PREFIX}"
;;
@@ -146,6 +143,7 @@ while [ "$1" ]; do
echo "SNMP is DISABLED for now. Ignoring." > /dev/stderr
;;
\"nothing\")
+
echo "LIB_DEPENDS+= snmp.4:\${PORTSDIR}/net/net-snmp"
echo "CONFIGURE_ARGS+=--with-snmp=\${PREFIX} --enable-ucd-snmp-hack"
;;