summaryrefslogtreecommitdiff
path: root/textproc/libxml2
diff options
context:
space:
mode:
authorrh <rh>2001-06-29 11:47:12 +0000
committerrh <rh>2001-06-29 11:47:12 +0000
commit1c739530eaaf7c32a844df45db31300686dbe410 (patch)
tree0179c33679ec2989aef212b5ca5763ad3aaf8371 /textproc/libxml2
parent7199f1c12f8f2a14e082b04e0a7c472cc6fdac4d (diff)
downloadpkgsrc-1c739530eaaf7c32a844df45db31300686dbe410.tar.gz
Initial import of libxml2, the new and improved GNOME 2 xml parsing
library. Provided in PR pkg/13338 by Martti Kuparinen <martti.kuparinen@iki.fi>, thanks!
Diffstat (limited to 'textproc/libxml2')
-rw-r--r--textproc/libxml2/Makefile19
-rw-r--r--textproc/libxml2/buildlink.mk46
-rw-r--r--textproc/libxml2/distinfo10
-rw-r--r--textproc/libxml2/patches/patch-aa62
-rw-r--r--textproc/libxml2/patches/patch-ab13
-rw-r--r--textproc/libxml2/patches/patch-ac11
-rw-r--r--textproc/libxml2/patches/patch-ad13
-rw-r--r--textproc/libxml2/patches/patch-ae22
-rw-r--r--textproc/libxml2/pkg/DESCR1
-rw-r--r--textproc/libxml2/pkg/PLIST76
10 files changed, 273 insertions, 0 deletions
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile
new file mode 100644
index 00000000000..d3ad67d899b
--- /dev/null
+++ b/textproc/libxml2/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+
+DISTNAME= libxml2-2.3.12
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GNOME:=stable/sources/libxml/}
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://xmlsoft.org/
+COMMENT= Xml parser library for GNOME
+
+USE_BUILDLINK_ONLY= yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+
+.include "../../devel/zlib/buildlink.mk"
+.include "../../converters/libiconv/buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/libxml2/buildlink.mk b/textproc/libxml2/buildlink.mk
new file mode 100644
index 00000000000..6dfa475e69a
--- /dev/null
+++ b/textproc/libxml2/buildlink.mk
@@ -0,0 +1,46 @@
+# $NetBSD: buildlink.mk,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+#
+# This Makefile fragment is included by packages that use libxml2.
+#
+# To use this Makefile fragment, simply:
+#
+# (1) Optionally define BUILDLINK_DEPENDS.libxml2 to the dependency pattern
+# for the version of libxml2 desired.
+# (2) Include this Makefile fragment in the package Makefile,
+# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
+# search path, and
+# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
+# path.
+
+.if !defined(LIBXML2_BUILDLINK_MK)
+LIBXML2_BUILDLINK_MK= # defined
+
+BUILDLINK_DEPENDS.libxml2?= libxml2>=2.3.12
+DEPENDS+= ${BUILDLINK_DEPENDS.libxml2}:../../textproc/libxml2
+
+BUILDLINK_PREFIX.libxml2= ${LOCALBASE}
+BUILDLINK_FILES.libxml2= include/libxml2/libxml/*
+BUILDLINK_FILES.libxml2+= lib/libxml2.*
+BUILDLINK_FILES.libxml2+= lib/xml2Conf.sh
+
+.include "../../devel/zlib/buildlink.mk"
+.include "../../converters/libiconv/buildlink.mk"
+
+BUILDLINK_TARGETS.libxml2= libxml2-buildlink
+BUILDLINK_TARGETS.libxml2+= libxml2-buildlink-config-wrapper
+BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.libxml2}
+
+BUILDLINK_CONFIG.libxml2= ${LOCALBASE}/bin/xml2-config
+BUILDLINK_CONFIG_WRAPPER.libxml2= ${BUILDLINK_DIR}/bin/xml2-config
+
+.if defined(USE_CONFIG_WRAPPER) && defined(GNU_CONFIGURE)
+CONFIGURE_ENV+= XML2_CONFIG="${BUILDLINK_CONFIG_WRAPPER.libxml2}"
+.endif
+
+pre-configure: ${BUILDLINK_TARGETS.libxml2}
+libxml2-buildlink: _BUILDLINK_USE
+libxml2-buildlink-config-wrapper: _BUILDLINK_CONFIG_WRAPPER_USE
+
+.include "../../mk/bsd.buildlink.mk"
+
+.endif # LIBXML2_BUILDLINK_MK
diff --git a/textproc/libxml2/distinfo b/textproc/libxml2/distinfo
new file mode 100644
index 00000000000..2798d887653
--- /dev/null
+++ b/textproc/libxml2/distinfo
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+
+SHA1 (libxml2-2.3.12.tar.gz) = b02096785468468f3559c65c88fb2e2e6c551ffa
+Size (libxml2-2.3.12.tar.gz) = 1324052 bytes
+SHA1 (patch-xml2Conf.sh.in) = ab1d503d904201bb480836cbed41f8386c800a64
+SHA1 (patch-aa) = cc3192cf4f204d863296e1d8a8248bf0f029fb3a
+SHA1 (patch-ab) = d2c31f3e4f78495cce9535823ab9ec9f0c10747a
+SHA1 (patch-ac) = 30a934bdfe298e67725452ea92b428e0d27d40bc
+SHA1 (patch-ad) = 440ab0b6f485c0dcac9d62615bed37c65f6aa9b2
+SHA1 (patch-ae) = 81a322069f0c0ee33c9899593cd9d9552f0ba4f7
diff --git a/textproc/libxml2/patches/patch-aa b/textproc/libxml2/patches/patch-aa
new file mode 100644
index 00000000000..76d31496d94
--- /dev/null
+++ b/textproc/libxml2/patches/patch-aa
@@ -0,0 +1,62 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+
+--- configure.orig Tue Jun 26 18:10:46 2001
++++ configure Fri Jun 29 09:58:07 2001
+@@ -2636,7 +2636,7 @@
+
+
+ if test "x$with_html_dir" = "x" ; then
+- HTML_DIR='$(prefix)/doc'
++ HTML_DIR='$(prefix)/share/doc'
+ else
+ HTML_DIR=$with_html_dir
+ fi
+@@ -3582,7 +3582,7 @@
+ fi
+
+
+-XML_LIBDIR='-L${libdir}'
++XML_LIBDIR='-L${libdir} -Wl,-R${libdir}'
+ XML_INCLUDEDIR='-I${includedir}/libxml -I${includedir}'
+
+ XML_CFLAGS=""
+@@ -4071,7 +4071,7 @@
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+-char iconv();
++char libiconv();
+
+ int main() {
+
+@@ -4081,7 +4081,7 @@
+ #if defined (__stub_iconv) || defined (__stub___iconv)
+ choke me
+ #else
+-iconv();
++libiconv();
+ #endif
+
+ ; return 0; }
+@@ -4103,7 +4103,7 @@
+ :
+ else
+ echo "$ac_t""no" 1>&6
+-echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
++echo $ac_n "checking for libiconv in -liconv""... $ac_c" 1>&6
+ echo "configure:4108: checking for iconv in -liconv" >&5
+ ac_lib_var=`echo iconv'_'iconv | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+@@ -4117,10 +4117,10 @@
+ /* Override any gcc2 internal prototype to avoid an error. */
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+-char iconv();
++char libiconv();
+
+ int main() {
+-iconv()
++libiconv()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
diff --git a/textproc/libxml2/patches/patch-ab b/textproc/libxml2/patches/patch-ab
new file mode 100644
index 00000000000..6dff1ea1184
--- /dev/null
+++ b/textproc/libxml2/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+
+--- Makefile.in.orig Thu Jun 28 15:57:27 2001
++++ Makefile.in Thu Jun 28 15:57:54 2001
+@@ -213,7 +213,7 @@
+ @WITH_TRIO_SOURCES_FALSE@HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo \
+ @WITH_TRIO_SOURCES_FALSE@xpointer.lo xinclude.lo nanohttp.lo nanoftp.lo \
+ @WITH_TRIO_SOURCES_FALSE@DOCBparser.lo catalog.lo
+-PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
++PROGRAMS =
+
+ xmllint_OBJECTS = xmllint.o
+ testSAX_OBJECTS = testSAX.o
diff --git a/textproc/libxml2/patches/patch-ac b/textproc/libxml2/patches/patch-ac
new file mode 100644
index 00000000000..035e1c15146
--- /dev/null
+++ b/textproc/libxml2/patches/patch-ac
@@ -0,0 +1,11 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+
+--- libxml-2.0.pc.in.orig Thu Jun 28 16:05:32 2001
++++ libxml-2.0.pc.in Thu Jun 28 16:06:03 2001
+@@ -8,5 +8,5 @@
+ Version: @VERSION@
+ Description: libXML library.
+ Requires:
+-Libs: -L${libdir} -lxml2 @Z_LIBS@ @M_LIBS@ @LIBS@
++Libs: -L${libdir} -Wl,-R${libdir} -lxml2 @Z_LIBS@ @M_LIBS@ @LIBS@
+ Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@
diff --git a/textproc/libxml2/patches/patch-ad b/textproc/libxml2/patches/patch-ad
new file mode 100644
index 00000000000..e8dc3e6c084
--- /dev/null
+++ b/textproc/libxml2/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+
+--- doc/Makefile.in.orig Sat Mar 31 17:53:38 2001
++++ doc/Makefile.in Sat Mar 31 17:54:08 2001
+@@ -112,7 +112,7 @@
+ Z_CFLAGS = @Z_CFLAGS@
+ Z_LIBS = @Z_LIBS@
+
+-DOC_MODULE = libxml2-$(VERSION)
++DOC_MODULE = libxml2
+
+ # The top-level SGML file.
+ DOC_MAIN_SGML_FILE = gnome-xml.sgml
diff --git a/textproc/libxml2/patches/patch-ae b/textproc/libxml2/patches/patch-ae
new file mode 100644
index 00000000000..efe38f93a1a
--- /dev/null
+++ b/textproc/libxml2/patches/patch-ae
@@ -0,0 +1,22 @@
+$NetBSD: patch-ae,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+
+--- include/libxml/Makefile.in.orig Tue Jun 26 18:11:28 2001
++++ include/libxml/Makefile.in Fri Jun 29 07:54:49 2001
+@@ -117,7 +117,7 @@
+ Z_CFLAGS = @Z_CFLAGS@
+ Z_LIBS = @Z_LIBS@
+
+-xmlincdir = $(includedir)/libxml
++xmlincdir = $(includedir)/libxml2/libxml
+
+ xmlinc_HEADERS = SAX.h entities.h encoding.h parser.h parserInternals.h xmlerror.h HTMLparser.h HTMLtree.h debugXML.h tree.h list.h hash.h xpath.h xpathInternals.h xpointer.h xinclude.h xmlIO.h xmlmemory.h nanohttp.h nanoftp.h uri.h valid.h xlink.h xmlversion.h xmlwin32version.h DOCBparser.h catalog.h
+
+@@ -276,7 +276,7 @@
+
+
+ install-exec-hook:
+- $(mkinstalldirs) $(DESTDIR)$(xmlincdir) $(DESTDIR)$(xmlincdir)/libxml
++ $(mkinstalldirs) $(DESTDIR)$(xmlincdir)
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/textproc/libxml2/pkg/DESCR b/textproc/libxml2/pkg/DESCR
new file mode 100644
index 00000000000..ef67cf07147
--- /dev/null
+++ b/textproc/libxml2/pkg/DESCR
@@ -0,0 +1 @@
+xml parser library for GNOME
diff --git a/textproc/libxml2/pkg/PLIST b/textproc/libxml2/pkg/PLIST
new file mode 100644
index 00000000000..cfe52cb3330
--- /dev/null
+++ b/textproc/libxml2/pkg/PLIST
@@ -0,0 +1,76 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/29 11:47:12 rh Exp $
+bin/xml2-config
+bin/xmllint
+include/libxml2/libxml/DOCBparser.h
+include/libxml2/libxml/HTMLparser.h
+include/libxml2/libxml/HTMLtree.h
+include/libxml2/libxml/SAX.h
+include/libxml2/libxml/catalog.h
+include/libxml2/libxml/debugXML.h
+include/libxml2/libxml/encoding.h
+include/libxml2/libxml/entities.h
+include/libxml2/libxml/hash.h
+include/libxml2/libxml/list.h
+include/libxml2/libxml/nanoftp.h
+include/libxml2/libxml/nanohttp.h
+include/libxml2/libxml/parser.h
+include/libxml2/libxml/parserInternals.h
+include/libxml2/libxml/tree.h
+include/libxml2/libxml/uri.h
+include/libxml2/libxml/valid.h
+include/libxml2/libxml/xinclude.h
+include/libxml2/libxml/xlink.h
+include/libxml2/libxml/xmlIO.h
+include/libxml2/libxml/xmlerror.h
+include/libxml2/libxml/xmlmemory.h
+include/libxml2/libxml/xmlversion.h
+include/libxml2/libxml/xmlwin32version.h
+include/libxml2/libxml/xpath.h
+include/libxml2/libxml/xpathInternals.h
+include/libxml2/libxml/xpointer.h
+lib/pkgconfig/libxml-2.0.pc
+lib/libxml2.so.5.12
+lib/libxml2.so.5
+lib/libxml2.so
+lib/libxml2.la
+lib/libxml2.a
+lib/xml2Conf.sh
+man/man1/xmllint.1
+man/man1/xml2-config.1
+man/man4/libxml.4
+share/aclocal/libxml.m4
+share/doc/libxml2/html/DOM.gif
+share/doc/libxml2/html/FAQ.html
+share/doc/libxml2/html/book1.html
+share/doc/libxml2/html/encoding.html
+share/doc/libxml2/html/index.sgml
+share/doc/libxml2/html/xml.html
+share/doc/libxml2/html/libxml-catalog.html
+share/doc/libxml2/html/libxml-debugxml.html
+share/doc/libxml2/html/libxml-docbparser.html
+share/doc/libxml2/html/libxml-encoding.html
+share/doc/libxml2/html/libxml-entities.html
+share/doc/libxml2/html/libxml-htmlparser.html
+share/doc/libxml2/html/libxml-htmltree.html
+share/doc/libxml2/html/libxml-lib.html
+share/doc/libxml2/html/libxml-nanoftp.html
+share/doc/libxml2/html/libxml-nanohttp.html
+share/doc/libxml2/html/libxml-notes.html
+share/doc/libxml2/html/libxml-parser.html
+share/doc/libxml2/html/libxml-parserinternals.html
+share/doc/libxml2/html/libxml-sax.html
+share/doc/libxml2/html/libxml-tree.html
+share/doc/libxml2/html/libxml-uri.html
+share/doc/libxml2/html/libxml-valid.html
+share/doc/libxml2/html/libxml-xinclude.html
+share/doc/libxml2/html/libxml-xmlerror.html
+share/doc/libxml2/html/libxml-xmlio.html
+share/doc/libxml2/html/libxml-xmlmemory.html
+share/doc/libxml2/html/libxml-xpath.html
+share/doc/libxml2/html/libxml-xpathinternals.html
+share/doc/libxml2/html/libxml-xpointer.html
+share/doc/libxml2/html/structure.gif
+@dirrm include/libxml2/libxml
+@dirrm include/libxml2
+@dirrm share/doc/libxml2/html
+@dirrm share/doc/libxml2