aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch
diff options
context:
space:
mode:
authorPablo Castorino <pcastorino@mendoza-conicet.gob.ar>2010-11-12 13:45:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-11-13 14:50:46 +0000
commit8663c11aac12a37145e00262d370d946e88065d6 (patch)
treef2ddbe6ba897ba5d41bc0ccdfefe57aa1a8599ed /testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch
parent42d434f386af7bc200d41ecd602afb065b018290 (diff)
downloadaports-8663c11aac12a37145e00262d370d946e88065d6.tar.bz2
aports-8663c11aac12a37145e00262d370d946e88065d6.tar.xz
testing/csync2: new aport
Diffstat (limited to 'testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch')
-rw-r--r--testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch b/testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch
new file mode 100644
index 0000000000..b9e1d2726e
--- /dev/null
+++ b/testing/csync2/02-csync2-1.34-gnutls_pkgconfig.patch
@@ -0,0 +1,24 @@
+--- old/configure.ac
++++ new/configure.ac
+@@ -59,16 +59,11 @@
+ if test "$enable_gnutls" != no
+ then
+
+- # Check for gnuTLS.
+- AM_PATH_LIBGNUTLS(1.0.0, , [ AC_MSG_ERROR([[gnutls not found; install gnutls, gnutls-openssl and libtasn1 packages for your system or run configure with --disable-gnutls]]) ])
+-
+- # This is a bloody hack for fedora core
+- CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
+- LIBS="$LIBS $LIBGNUTLS_LIBS -ltasn1"
+-
+- # Check gnuTLS SSL compatibility lib.
+- AC_CHECK_LIB([gnutls-openssl], [SSL_new], , [AC_MSG_ERROR([[gnutls-openssl not found; install gnutls, gnutls-openssl and libtasn1 packages for your system or run configure with --disable-gnutls]])])
+-
++ PKG_CHECK_MODULES(LIBGNUTLS, gnutls, [
++ CFLAGS="$CFLAGS `$PKG_CONFIG --cflags gnutls libssl`"
++ LIBS="$LIBS `$PKG_CONFIG --libs gnutls libssl` -DHAVE_LIBGNUTLS_OPENSSL"
++ ])
++
+ fi
+
+ AC_CONFIG_FILES([Makefile])