diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-01-17 00:45:15 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-01-17 00:45:15 +0800 |
commit | 4aa4cfacb59595c100563ad5c0afe029e1178549 (patch) | |
tree | 955a42c85be2deee09d3501ff696316268798f68 /textproc | |
parent | 66e403e95fa18e92c24f9aa2e7d592c65155a096 (diff) | |
download | marcuscom-ports-4aa4cfacb59595c100563ad5c0afe029e1178549.tar marcuscom-ports-4aa4cfacb59595c100563ad5c0afe029e1178549.tar.gz marcuscom-ports-4aa4cfacb59595c100563ad5c0afe029e1178549.tar.bz2 marcuscom-ports-4aa4cfacb59595c100563ad5c0afe029e1178549.tar.lz marcuscom-ports-4aa4cfacb59595c100563ad5c0afe029e1178549.tar.xz marcuscom-ports-4aa4cfacb59595c100563ad5c0afe029e1178549.tar.zst marcuscom-ports-4aa4cfacb59595c100563ad5c0afe029e1178549.zip |
Remove depends on pkgconfig
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16640 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/libxml2/Makefile | 88 | ||||
-rw-r--r-- | textproc/libxml2/distinfo | 2 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-aa | 49 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-config.h.in | 11 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-configure | 34 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-doc_devhelp_Makefile.in | 11 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-python_Makefile | 20 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-python_tests_Makefile.in | 11 | ||||
-rw-r--r-- | textproc/libxml2/files/patch-xml2Conf.sh.in | 16 | ||||
-rw-r--r-- | textproc/libxml2/pkg-descr | 6 | ||||
-rw-r--r-- | textproc/libxml2/pkg-plist | 60 |
11 files changed, 308 insertions, 0 deletions
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile new file mode 100644 index 000000000..751fcf4ff --- /dev/null +++ b/textproc/libxml2/Makefile @@ -0,0 +1,88 @@ +# New ports collection makefile for: libxml2 +# Date created: 28 September 1998 +# Whom: Yukihiro Nakai <Nakai@technologist.com> +# +# $FreeBSD$ +# $MCom$ +# +# WITHOUT_SCHEMA disable XML schema support +# WITHOUT_THREADS disable threads support +# WITH_MEM_DEBUG enable memory debugging (DEVELOPERS ONLY!) +# WITH_XMLLINT_HIST enable history for xmllint +# WITH_THREAD_ALLOC enable per-thread memory (DEVELOPERS ONLY!) +# + +PORTNAME= libxml2 +PORTVERSION= 2.7.8 +PORTREVISION?= 1 +CATEGORIES?= textproc gnome +MASTER_SITES= ftp://fr.rpmfind.net/pub/libxml/ \ + ftp://gd.tuwien.ac.at/pub/libxml/ \ + ftp://xmlsoft.org/libxml2/ +DIST_SUBDIR= gnome2 + +MAINTAINER?= gnome@FreeBSD.org +COMMENT?= XML parser library for GNOME + +.if !defined(REFERENCE_PORT) + +USE_CSTD= gnu89 +USE_GMAKE= yes +MAKE_JOBS_SAFE= yes +USE_ICONV= yes +GNU_CONFIGURE= yes +USE_GNOME?= gnomehack +USE_LDCONFIG= yes +CONFIGURE_ARGS?=--with-iconv=${LOCALBASE} \ + --with-html-dir=${PREFIX}/share/doc \ + --with-html-subdir=${PORTNAME} \ + --without-python +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +.if !defined(MASTERDIR) +MAN1= xml2-config.1 xmllint.1 xmlcatalog.1 +MAN3= libxml.3 +.endif + +.if defined(WITHOUT_SCHEMA) +CONFIGURE_ARGS+= --without-schemas +.endif + +.if defined(WITHOUT_THREADS) +CONFIGURE_ARGS+= --without-threads +.endif + +.if defined(WITH_MEM_DEBUG) +CONFIGURE_ARGS+= --with-mem-debug +.endif + +.if defined(WITH_XMLLINT_HIST) +CONFIGURE_ARGS+= --with-history +.endif + +.if defined(WITH_THREAD_ALLOC) +CONFIGURE_ARGS+= --with-thread-alloc +.endif + +post-patch: +.for d in . doc doc/devhelp doc/examples + @${REINPLACE_CMD} -e '/^install-data-am:/ s|install-data-local||' \ + ${WRKSRC}/${d}/Makefile.in +.endfor +.for f in catalog.c xmlcatalog.c xmllint.c doc/xmllint.1 + @${REINPLACE_CMD} -e \ + 's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \ + s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' ${WRKSRC}/${f} +.endfor +# manual patch because WITH_FBSD10_FIX break the python bindings + ${FIND} ${WRKSRC} -type f -name configure \ + -exec ${SH} -c " \ + mtime=\$$(date -r \$$(stat -f '%m' \$$0) '+%Y%m%d%H%M.%S'); \ + ${SED} -i '.batman' -e 's|freebsd1\*)|freebsd1.\*)|g' \ + -e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \$$0; \ + touch -mt \$$mtime \$$0" {} \; || /usr/bin/true + +.include <bsd.port.mk> + +.endif diff --git a/textproc/libxml2/distinfo b/textproc/libxml2/distinfo new file mode 100644 index 000000000..41f22cc4c --- /dev/null +++ b/textproc/libxml2/distinfo @@ -0,0 +1,2 @@ +SHA256 (gnome2/libxml2-2.7.8.tar.gz) = cda23bc9ebd26474ca8f3d67e7d1c4a1f1e7106364b690d822e009fdc3c417ec +SIZE (gnome2/libxml2-2.7.8.tar.gz) = 4881808 diff --git a/textproc/libxml2/files/patch-aa b/textproc/libxml2/files/patch-aa new file mode 100644 index 000000000..91bee0a42 --- /dev/null +++ b/textproc/libxml2/files/patch-aa @@ -0,0 +1,49 @@ +--- Makefile.in.orig 2010-03-20 17:51:45.000000000 -0400 ++++ Makefile.in 2010-03-20 17:52:13.000000000 -0400 +@@ -562,7 +562,7 @@ top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + ACLOCAL_AMFLAGS = -I m4 +-SUBDIRS = include . doc example xstc @PYTHON_SUBDIR@ ++SUBDIRS = include . doc example xstc @WITH_PYTHON_TRUE@ @PYTHON_SUBDIR@ + DIST_SUBDIRS = include . doc example python xstc + INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@ + bin_SCRIPTS = xml2-config +@@ -572,7 +572,7 @@ libxml2_la_LIBADD = @THREAD_LIBS@ @Z_LIB + @USE_VERSION_SCRIPT_TRUE@LIBXML2_VERSION_SCRIPT = $(VERSION_SCRIPT_FLAGS)$(srcdir)/libxml2.syms + libxml2_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ \ + $(LIBXML2_VERSION_SCRIPT) \ +- -version-info @LIBXML_VERSION_INFO@ \ ++ -version-info 5:0:0 \ + @MODULE_PLATFORM_LIBS@ + + @WITH_TRIO_SOURCES_FALSE@libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ +@@ -688,7 +688,7 @@ runxmlconf_LDFLAGS = + runxmlconf_DEPENDENCIES = $(DEPS) + runxmlconf_LDADD = $(LDADDS) + CLEANFILES = xml2Conf.sh *.gcda *.gcno +-confexecdir = $(libdir) ++confexecdir = $(sysconfdir) + confexec_DATA = xml2Conf.sh + CVS_EXTRA_DIST = + EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \ +@@ -711,8 +711,8 @@ pkgconfig_DATA = libxml-2.0.pc + # Install the tests program sources as examples + # + BASE_DIR = $(datadir)/doc +-DOC_MODULE = libxml2-$(VERSION) +-EXAMPLES_DIR = $(BASE_DIR)/$(DOC_MODULE)/examples ++DOC_MODULE = libxml2 ++EXAMPLES_DIR = $(datadir)/examples/libxml2 + + # + # Coverage support, largely borrowed from libvirt +@@ -1546,7 +1546,7 @@ distcleancheck: distclean + exit 1; } >&2 + check-am: all-am + check: check-recursive +-all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \ ++all-am: Makefile $(LTLIBRARIES) $(SCRIPTS) $(MANS) $(DATA) \ + config.h + install-binPROGRAMS: install-libLTLIBRARIES + diff --git a/textproc/libxml2/files/patch-config.h.in b/textproc/libxml2/files/patch-config.h.in new file mode 100644 index 000000000..e86bbf40e --- /dev/null +++ b/textproc/libxml2/files/patch-config.h.in @@ -0,0 +1,11 @@ +--- config.h.in.orig Sun Nov 3 16:55:05 2002 ++++ config.h.in Tue Nov 19 00:06:05 2002 +@@ -1,4 +1,8 @@ + /* config.h.in. Generated from configure.in by autoheader. */ ++ ++/* XXX */ ++#define HAVE_VFSCANF ++ + #undef PACKAGE + #undef VERSION + #undef HAVE_LIBZ diff --git a/textproc/libxml2/files/patch-configure b/textproc/libxml2/files/patch-configure new file mode 100644 index 000000000..9187f174f --- /dev/null +++ b/textproc/libxml2/files/patch-configure @@ -0,0 +1,34 @@ +--- configure.orig 2010-11-27 15:40:06.000000000 +0100 ++++ configure 2010-11-27 15:40:06.000000000 +0100 +@@ -11414,7 +11414,7 @@ else + esac + fi + +- if test -z "$VERSION_SCRIPT_FLAGS"; then ++ if test -n "$VERSION_SCRIPT_FLAGS"; then + USE_VERSION_SCRIPT_TRUE= + USE_VERSION_SCRIPT_FALSE='#' + else +@@ -13501,11 +13501,12 @@ fi + fi + if test "$PYTHON_VERSION" != "" + then ++ with_python=`$PYTHON -c "import sys; print sys.exec_prefix"` + if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ + -d $with_python/lib/python$PYTHON_VERSION/site-packages + then + PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION +- PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages ++ PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages + else + if test -r $prefix/include/python$PYTHON_VERSION/Python.h + then +@@ -13901,6 +13902,8 @@ fi + fi + fi + ;; ++ *freebsd*) THREAD_LIBS="" ++ ;; + esac + if test "$WITH_THREADS" = "1" ; then + THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" diff --git a/textproc/libxml2/files/patch-doc_devhelp_Makefile.in b/textproc/libxml2/files/patch-doc_devhelp_Makefile.in new file mode 100644 index 000000000..d7581357d --- /dev/null +++ b/textproc/libxml2/files/patch-doc_devhelp_Makefile.in @@ -0,0 +1,11 @@ +--- doc/devhelp/Makefile.in.orig 2008-01-22 15:49:34.000000000 -0500 ++++ doc/devhelp/Makefile.in 2008-01-22 15:49:58.000000000 -0500 +@@ -259,7 +259,7 @@ sysconfdir = @sysconfdir@ + target_alias = @target_alias@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-DEVHELP_DIR = $(datadir)/gtk-doc/html/libxml2 ++DEVHELP_DIR = $(datadir)/doc/libxml2/html + HTML_FILES = index.html general.html $(HTML_MODULES) + HTML_MODULES = \ + libxml2-c14n.html \ diff --git a/textproc/libxml2/files/patch-python_Makefile b/textproc/libxml2/files/patch-python_Makefile new file mode 100644 index 000000000..37a01dce1 --- /dev/null +++ b/textproc/libxml2/files/patch-python_Makefile @@ -0,0 +1,20 @@ +--- python/Makefile.in.orig 2008-05-23 22:39:11.000000000 -0500 ++++ python/Makefile.in 2008-05-23 22:40:42.000000000 -0500 +@@ -322,7 +322,7 @@ + -I$(top_builddir)/include \ + -I$(top_builddir)/$(subdir) + +-docsdir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION) ++docsdir = $(datadir)/doc/py-libxml2 + # libxml2class.txt is generated + dist_docs_DATA = TODO + EXTRA_DIST = \ +@@ -335,7 +335,7 @@ + + libxml2mod_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ -module -avoid-version + @WITH_PYTHON_TRUE@mylibs = \ +-@WITH_PYTHON_TRUE@ $(top_builddir)/libxml2.la ++@WITH_PYTHON_TRUE@ -lxml2 + + @WITH_PYTHON_TRUE@python_LTLIBRARIES = libxml2mod.la + @WITH_PYTHON_TRUE@libxml2mod_la_SOURCES = libxml.c types.c diff --git a/textproc/libxml2/files/patch-python_tests_Makefile.in b/textproc/libxml2/files/patch-python_tests_Makefile.in new file mode 100644 index 000000000..405539d86 --- /dev/null +++ b/textproc/libxml2/files/patch-python_tests_Makefile.in @@ -0,0 +1,11 @@ +--- python/tests/Makefile.in.orig 2008-05-23 22:41:49.000000000 -0500 ++++ python/tests/Makefile.in 2008-05-23 22:42:12.000000000 -0500 +@@ -270,7 +270,7 @@ + target_alias = @target_alias@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ +-exampledir = $(datadir)/doc/libxml2-python-$(LIBXML_VERSION)/examples ++exampledir = $(datadir)/examples/py-libxml2 + dist_example_DATA = $(PYTESTS) $(XMLS) + PYTESTS = \ + build.py \ diff --git a/textproc/libxml2/files/patch-xml2Conf.sh.in b/textproc/libxml2/files/patch-xml2Conf.sh.in new file mode 100644 index 000000000..66b74d3be --- /dev/null +++ b/textproc/libxml2/files/patch-xml2Conf.sh.in @@ -0,0 +1,16 @@ + +--- xml2Conf.sh.in 2001/05/19 19:57:43 1.1 ++++ xml2Conf.sh.in 2001/05/19 19:59:40 +@@ -1,6 +1,12 @@ + # + # Configuration file for using the XML library in GNOME applications + # ++ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++includedir=@includedir@ ++libdir=@libdir@ ++ + XML2_LIBDIR="@XML_LIBDIR@" + XML2_LIBS="@XML_LIBS@" + XML2_INCLUDEDIR="@XML_INCLUDEDIR@" diff --git a/textproc/libxml2/pkg-descr b/textproc/libxml2/pkg-descr new file mode 100644 index 000000000..c64953cf9 --- /dev/null +++ b/textproc/libxml2/pkg-descr @@ -0,0 +1,6 @@ +Libxml2 is the XML C parser and toolkit developed for the Gnome project (but +usable outside of the Gnome platform). XML itself is a metalanguage to design +markup languages, i.e. text language where semantic and structure are added to +the content using extra "markup" information enclosed between angle brackets. + +WWW: http://xmlsoft.org/ diff --git a/textproc/libxml2/pkg-plist b/textproc/libxml2/pkg-plist new file mode 100644 index 000000000..3969d6d82 --- /dev/null +++ b/textproc/libxml2/pkg-plist @@ -0,0 +1,60 @@ +bin/xml2-config +bin/xmlcatalog +bin/xmllint +etc/xml2Conf.sh +include/libxml2/libxml/DOCBparser.h +include/libxml2/libxml/HTMLparser.h +include/libxml2/libxml/HTMLtree.h +include/libxml2/libxml/SAX.h +include/libxml2/libxml/SAX2.h +include/libxml2/libxml/c14n.h +include/libxml2/libxml/catalog.h +include/libxml2/libxml/chvalid.h +include/libxml2/libxml/debugXML.h +include/libxml2/libxml/dict.h +include/libxml2/libxml/encoding.h +include/libxml2/libxml/entities.h +include/libxml2/libxml/globals.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/pattern.h +include/libxml2/libxml/relaxng.h +include/libxml2/libxml/schemasInternals.h +include/libxml2/libxml/schematron.h +include/libxml2/libxml/threads.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/xmlautomata.h +include/libxml2/libxml/xmlerror.h +include/libxml2/libxml/xmlexports.h +include/libxml2/libxml/xmlmemory.h +include/libxml2/libxml/xmlmodule.h +include/libxml2/libxml/xmlreader.h +include/libxml2/libxml/xmlregexp.h +include/libxml2/libxml/xmlsave.h +include/libxml2/libxml/xmlschemas.h +include/libxml2/libxml/xmlschemastypes.h +include/libxml2/libxml/xmlstring.h +include/libxml2/libxml/xmlunicode.h +include/libxml2/libxml/xmlversion.h +include/libxml2/libxml/xmlwriter.h +include/libxml2/libxml/xpath.h +include/libxml2/libxml/xpathInternals.h +include/libxml2/libxml/xpointer.h +lib/libxml2.a +lib/libxml2.la +lib/libxml2.so +lib/libxml2.so.5 +libdata/pkgconfig/libxml-2.0.pc +share/aclocal/libxml.m4 +@dirrmtry lib/pkgconfig +@dirrm include/libxml2/libxml +@dirrm include/libxml2 |