diff options
author | drochner <drochner@pkgsrc.org> | 2007-10-12 17:30:04 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2007-10-12 17:30:04 +0000 |
commit | 97fe57d2ab811dabea7504b79de71993ccc10ac1 (patch) | |
tree | 9fbfca95f9688f14d1397c16674dd743d199fdfa /textproc/mxml | |
parent | 01a2f1ab63da7b77a9c0410e1f65d32f57c39d5d (diff) | |
download | pkgsrc-97fe57d2ab811dabea7504b79de71993ccc10ac1.tar.gz |
import mxml-2.3, another XML parsing library
Diffstat (limited to 'textproc/mxml')
-rw-r--r-- | textproc/mxml/DESCR | 3 | ||||
-rw-r--r-- | textproc/mxml/Makefile | 18 | ||||
-rw-r--r-- | textproc/mxml/PLIST | 22 | ||||
-rw-r--r-- | textproc/mxml/buildlink3.mk | 19 | ||||
-rw-r--r-- | textproc/mxml/distinfo | 6 | ||||
-rw-r--r-- | textproc/mxml/patches/patch-aa | 97 |
6 files changed, 165 insertions, 0 deletions
diff --git a/textproc/mxml/DESCR b/textproc/mxml/DESCR new file mode 100644 index 00000000000..3246e11a48b --- /dev/null +++ b/textproc/mxml/DESCR @@ -0,0 +1,3 @@ +Mini-XML is a small XML parsing library that you can use to +read XML and XML-like data files in your application without +requiring large non-standard libraries. diff --git a/textproc/mxml/Makefile b/textproc/mxml/Makefile new file mode 100644 index 00000000000..99e8762d251 --- /dev/null +++ b/textproc/mxml/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/10/12 17:30:04 drochner Exp $ +# + +DISTNAME= mxml-2.3 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.easysw.com/pub/mxml/2.3/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.minixml.org/ +COMMENT= Small XML parsing library + +GNU_CONFIGURE= yes +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes + +PKGCONFIG_OVERRIDE+= mxml.pc.in + +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/mxml/PLIST b/textproc/mxml/PLIST new file mode 100644 index 00000000000..b5be32f733f --- /dev/null +++ b/textproc/mxml/PLIST @@ -0,0 +1,22 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/10/12 17:30:04 drochner Exp $ +bin/mxmldoc +include/mxml.h +lib/libmxml.la +lib/pkgconfig/mxml.pc +man/man1/mxmldoc.1 +man/man3/mxml.3 +share/doc/mxml/0.gif +share/doc/mxml/1.gif +share/doc/mxml/2.gif +share/doc/mxml/3.gif +share/doc/mxml/4.gif +share/doc/mxml/A.gif +share/doc/mxml/B.gif +share/doc/mxml/C.gif +share/doc/mxml/CHANGES +share/doc/mxml/COPYING +share/doc/mxml/D.gif +share/doc/mxml/README +share/doc/mxml/mxml.html +share/doc/mxml/mxmldoc.xsd +@dirrm share/doc/mxml diff --git a/textproc/mxml/buildlink3.mk b/textproc/mxml/buildlink3.mk new file mode 100644 index 00000000000..97d2131afce --- /dev/null +++ b/textproc/mxml/buildlink3.mk @@ -0,0 +1,19 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/10/12 17:30:04 drochner Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +MXML_BUILDLINK3_MK:= ${MXML_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= mxml +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nmxml} +BUILDLINK_PACKAGES+= mxml +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}mxml + +.if ${MXML_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.mxml+= mxml>=2.3 +BUILDLINK_PKGSRCDIR.mxml?= ../../textproc/mxml +.endif # MXML_BUILDLINK3_MK + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/textproc/mxml/distinfo b/textproc/mxml/distinfo new file mode 100644 index 00000000000..df63c354296 --- /dev/null +++ b/textproc/mxml/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/10/12 17:30:04 drochner Exp $ + +SHA1 (mxml-2.3.tar.gz) = da56680e60afc67a28129b883d380853847b28a3 +RMD160 (mxml-2.3.tar.gz) = 52522a2c9e51596efda77cf4756b2f7454391a07 +Size (mxml-2.3.tar.gz) = 312173 bytes +SHA1 (patch-aa) = fb76623cf7e6a3466ae15df5010cd378ccf2701d diff --git a/textproc/mxml/patches/patch-aa b/textproc/mxml/patches/patch-aa new file mode 100644 index 00000000000..2121da09380 --- /dev/null +++ b/textproc/mxml/patches/patch-aa @@ -0,0 +1,97 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/10/12 17:30:04 drochner Exp $ + +--- Makefile.in.orig 2007-04-27 02:49:03.000000000 +0200 ++++ Makefile.in +@@ -29,7 +29,7 @@ DSO = @DSO@ + DSOFLAGS = @DSOFLAGS@ + LDFLAGS = $(OPTIM) @LDFLAGS@ + INSTALL = @INSTALL@ +-LIBMXML = @LIBMXML@ ++LIBMXML = libmxml.la + LN = @LN@ -s + MKDIR = @MKDIR@ + OPTIM = @OPTIM@ +@@ -119,7 +119,7 @@ distclean: clean + # Install everything... + # + +-install: $(TARGETS) install-$(LIBMXML) install-libmxml.a ++install: $(TARGETS) install-$(LIBMXML) + $(INSTALL_DIR) $(BUILDROOT)$(bindir) + $(INSTALL_BIN) mxmldoc $(BUILDROOT)$(bindir) + $(INSTALL_DIR) $(BUILDROOT)$(docdir) +@@ -135,10 +135,9 @@ install: $(TARGETS) install-$(LIBMXML) i + $(INSTALL_DIR) $(BUILDROOT)$(mandir)/man3 + $(INSTALL_MAN) doc/mxml.man $(BUILDROOT)$(mandir)/man3/mxml.3 + +-install-libmxml.a: ++install-libmxml.la: + $(INSTALL_DIR) $(BUILDROOT)$(libdir) +- $(INSTALL_LIB) libmxml.a $(BUILDROOT)$(libdir) +- $(RANLIB) $(BUILDROOT)$(libdir)/libmxml.a ++ $(INSTALL_LIB) libmxml.la $(BUILDROOT)$(libdir) + + install-libmxml.so.1.3: + $(INSTALL_DIR) $(BUILDROOT)$(libdir) +@@ -228,10 +227,13 @@ config.h: configure config.h.in + # libmxml.a + # + +-libmxml.a: $(LIBOBJS) +- $(RM) $@ +- $(AR) $(ARFLAGS) $@ $(LIBOBJS) +- $(RANLIB) $@ ++libmxml.la: $(LIBOBJS:.o=.lo) ++ ${LIBTOOL} --mode=link ${CC} ${LDFLAGS} ${LIBOBJS:.o=.lo} \ ++ -o libmxml.la -rpath ${PREFIX}/lib -version-info 1:3 ++ ++.SUFFIXES: .lo ++.c.lo: ++ ${LIBTOOL} --mode=compile ${CC} ${CFLAGS} -c ${.IMPSRC} -o ${.TARGET} + + $(LIBOBJS): mxml.h + +@@ -276,7 +278,7 @@ libmxml.1.dylib: $(LIBOBJS) + # + + mxmldoc: $(LIBMXML) mxmldoc.o +- $(CC) -L. $(LDFLAGS) -o $@ mxmldoc.o -lmxml ++ ${LIBTOOL} --mode=link $(CC) -L. $(LDFLAGS) -o $@ mxmldoc.o libmxml.la + + mxmldoc-static: libmxml.a mxmldoc.o + $(CC) $(LDFLAGS) -o $@ mxmldoc.o libmxml.a +@@ -288,8 +290,8 @@ mxmldoc.o: mxml.h + # testmxml + # + +-testmxml: libmxml.a testmxml.o +- $(CC) $(LDFLAGS) -o $@ testmxml.o libmxml.a ++testmxml: libmxml.la testmxml.o ++ ${LIBTOOL} --mode=link $(CC) $(LDFLAGS) -o $@ testmxml.o libmxml.la + @echo Testing library... + ./testmxml test.xml >temp1.xml 2>temp1s.xml + ./testmxml temp1.xml >temp2.xml 2>temp2s.xml +@@ -319,9 +321,9 @@ testmxml.o: mxml.h + # mxml.xml + # + +-mxml.xml: mxmldoc-static mxml.h $(PUBLIBOBJS:.o=.c) ++mxml.xml: mxmldoc mxml.h $(PUBLIBOBJS:.o=.c) + $(RM) mxml.xml +- ./mxmldoc-static mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >doc/reference.html ++ ./mxmldoc mxml.xml mxml.h $(PUBLIBOBJS:.o=.c) >doc/reference.html + + valgrind: mxmldoc-static + $(RM) valgrind.xml +@@ -334,9 +336,9 @@ valgrind: mxmldoc-static + # doc/mxml.man + # + +-doc/mxml.man: mxmldoc-static mxml.xml ++doc/mxml.man: mxmldoc mxml.xml + $(RM) doc/mxml.man +- ./mxmldoc-static --man mxml --title "Mini-XML API" \ ++ ./mxmldoc --man mxml --title "Mini-XML API" \ + --intro doc/intro.man mxml.xml >doc/mxml.man + + |