[58522] trunk/dports/net/loudmouth
blb at macports.org
blb at macports.org
Tue Sep 29 23:58:04 PDT 2009
Revision: 58522
http://trac.macports.org/changeset/58522
Author: blb at macports.org
Date: 2009-09-29 23:58:01 -0700 (Tue, 29 Sep 2009)
Log Message:
-----------
net/loudmouth - use pkg-config to detect gnutls, since newer gnutls no long uses the -config script
Modified Paths:
--------------
trunk/dports/net/loudmouth/Portfile
Added Paths:
-----------
trunk/dports/net/loudmouth/files/
trunk/dports/net/loudmouth/files/patch-configure.ac.diff
Modified: trunk/dports/net/loudmouth/Portfile
===================================================================
--- trunk/dports/net/loudmouth/Portfile 2009-09-30 06:53:49 UTC (rev 58521)
+++ trunk/dports/net/loudmouth/Portfile 2009-09-30 06:58:01 UTC (rev 58522)
@@ -21,3 +21,9 @@
depends_lib port:gnutls path:lib/pkgconfig/glib-2.0.pc:glib2
+# Use pkg-config to detect gnutls now
+# http://groups.google.com/group/loudmouth-dev/browse_thread/thread/3f78255837048daf
+patchfiles patch-configure.ac.diff
+
+use_autoreconf yes
+
Added: trunk/dports/net/loudmouth/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/net/loudmouth/files/patch-configure.ac.diff (rev 0)
+++ trunk/dports/net/loudmouth/files/patch-configure.ac.diff 2009-09-30 06:58:01 UTC (rev 58522)
@@ -0,0 +1,19 @@
+--- configure.ac.orig 2008-10-29 14:23:52.000000000 -0600
++++ configure.ac 2009-09-30 00:41:11.000000000 -0600
+@@ -146,10 +146,12 @@
+ enable_ssl=no
+ if test "x$ac_ssl" = "xgnutls"; then
+ dnl Look for GnuTLS
+- AM_PATH_LM_LIBGNUTLS($GNUTLS_REQUIRED, have_libgnutls=yes, have_libgnutls=no)
+- if test "x$have_libgnutls" = "xyes"; then
+- CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
+- LIBS="$LIBS $LIBGNUTLS_LIBS"
++ PKG_CHECK_MODULES(GNUTLS, gnutls >= $GNUTLS_REQUIRED, have_gnutls=yes, have_gnutls=no)
++ if test "x$have_gnutls" = "xyes"; then
++ AC_SUBST(ASYNCNS_CFLAGS)
++ AC_SUBST(ASYNCNS_LIBS)
++ CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
++ LIBS="$LIBS $GNUTLS_LIBS"
+ AC_DEFINE(HAVE_GNUTLS, 1, [whether to use GnuTSL support.])
+ enable_ssl=GnuTLS
+ else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090929/74b3bb63/attachment.html>
More information about the macports-changes
mailing list