summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-10-02 16:34:18 +0000
committerjoerg <joerg@pkgsrc.org>2008-10-02 16:34:18 +0000
commit64dc825cda0088831fc230597f8bef4f8cc63d51 (patch)
treec369eb3330c59e93ec8face50f6cc7d65549324e /net
parentca8b89debeab1184bc8afc5f4b44645cdd3ba892 (diff)
downloadpkgsrc-64dc825cda0088831fc230597f8bef4f8cc63d51.tar.gz
Fix build with libxml2-2.7 and newer.
Diffstat (limited to 'net')
-rw-r--r--net/microdc2/distinfo4
-rw-r--r--net/microdc2/patches/patch-ab16
-rw-r--r--net/microdc2/patches/patch-ac16
3 files changed, 35 insertions, 1 deletions
diff --git a/net/microdc2/distinfo b/net/microdc2/distinfo
index 1e15890bb86..93aaccecfd4 100644
--- a/net/microdc2/distinfo
+++ b/net/microdc2/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/09/16 15:53:12 heinz Exp $
+$NetBSD: distinfo,v 1.2 2008/10/02 16:34:18 joerg Exp $
SHA1 (microdc2-0.15.6.tar.gz) = d39fedfb817203b70854aaff3a9e7fb2f2f317d2
RMD160 (microdc2-0.15.6.tar.gz) = c7e05994c9012f4774c1de6eaea7ee3225c63336
Size (microdc2-0.15.6.tar.gz) = 639392 bytes
SHA1 (patch-aa) = 8801a9442911a6cdd3d154724db4ecc65965dd39
+SHA1 (patch-ab) = 9ad2842bb172a8683ca4c34d21b36c2f22a9e79f
+SHA1 (patch-ac) = 88c73f1067bb96c66de716244b3866df1a51190f
diff --git a/net/microdc2/patches/patch-ab b/net/microdc2/patches/patch-ab
new file mode 100644
index 00000000000..1173f7689e1
--- /dev/null
+++ b/net/microdc2/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.1 2008/10/02 16:34:18 joerg Exp $
+
+--- configure.orig 2006-12-24 18:45:07.000000000 +0000
++++ configure
+@@ -21508,7 +21508,10 @@ cat >>confdefs.h <<\_ACEOF
+ _ACEOF
+
+ fi
+- if test $LIBXML2_VERSION -ge 2616; then
++ good_libxml2=no
++ case "$LIBXML2_VERSION" in 27*) good_libxml2=yes;; esac
++ test $LIBXML2_VERSION -ge 2616 && good_libxml2=yes
++ if test $good_libxml2 = yes; then
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_LIBXML2 1
+ _ACEOF
diff --git a/net/microdc2/patches/patch-ac b/net/microdc2/patches/patch-ac
new file mode 100644
index 00000000000..563e8b6294b
--- /dev/null
+++ b/net/microdc2/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.1 2008/10/02 16:34:18 joerg Exp $
+
+--- configure.ac.orig 2006-12-24 18:43:36.000000000 +0000
++++ configure.ac
+@@ -52,7 +52,10 @@ if test -n "$XML_CONFIG" && test -n "$TR
+ if test $LIBXML2_VERSION -eq 2616; then
+ AC_DEFINE([XML_SAVE_FORMAT], [1], [The libxml2 version 2.6.16 has no such option defined in the library headers])
+ fi
+- if test $LIBXML2_VERSION -ge 2616; then
++ good_libxml2=no
++ case "$LIBXML2_VERSION" in 27*) good_libxml2=yes;; esac
++ test $LIBXML2_VERSION -ge 2616 && good_libxml2=yes
++ if test $good_libxml2 = yes; then
+ AC_DEFINE([HAVE_LIBXML2])
+ LIBXML2_LIBS="`$XML_CONFIG --libs`"
+ LIBXML2_CFLAGS="`$XML_CONFIG --cflags`"