pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/textproc/mxml import mxml-2.3, another XML parsing lib...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2bae545af977
branches: trunk
changeset: 534149:2bae545af977
user: drochner <drochner%pkgsrc.org@localhost>
date: Fri Oct 12 17:30:04 2007 +0000
description:
import mxml-2.3, another XML parsing library
diffstat:
textproc/mxml/DESCR | 3 +
textproc/mxml/Makefile | 18 +++++++
textproc/mxml/PLIST | 22 +++++++++
textproc/mxml/buildlink3.mk | 19 ++++++++
textproc/mxml/distinfo | 6 ++
textproc/mxml/patches/patch-aa | 97 ++++++++++++++++++++++++++++++++++++++++++
6 files changed, 165 insertions(+), 0 deletions(-)
diffs (189 lines):
diff -r 427c743a862b -r 2bae545af977 textproc/mxml/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/mxml/DESCR Fri Oct 12 17:30:04 2007 +0000
@@ -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 -r 427c743a862b -r 2bae545af977 textproc/mxml/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/mxml/Makefile Fri Oct 12 17:30:04 2007 +0000
@@ -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@localhost
+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 -r 427c743a862b -r 2bae545af977 textproc/mxml/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/mxml/PLIST Fri Oct 12 17:30:04 2007 +0000
@@ -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 -r 427c743a862b -r 2bae545af977 textproc/mxml/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/mxml/buildlink3.mk Fri Oct 12 17:30:04 2007 +0000
@@ -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 -r 427c743a862b -r 2bae545af977 textproc/mxml/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/mxml/distinfo Fri Oct 12 17:30:04 2007 +0000
@@ -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 -r 427c743a862b -r 2bae545af977 textproc/mxml/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/mxml/patches/patch-aa Fri Oct 12 17:30:04 2007 +0000
@@ -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
+
+
Home |
Main Index |
Thread Index |
Old Index