From 3ec3b153716fe40b904b077b46b3733bd1c42e05 Mon Sep 17 00:00:00 2001 From: dugsong Date: Mon, 8 Nov 1999 14:02:25 +0000 Subject: [PATCH] expat port - XML parsing library --- textproc/expat/Makefile | 26 +++++++++++++++++++++++++ textproc/expat/files/md5 | 1 + textproc/expat/patches/patch-aa | 34 +++++++++++++++++++++++++++++++++ textproc/expat/pkg/COMMENT | 1 + textproc/expat/pkg/DESCR | 4 ++++ textproc/expat/pkg/PLIST | 5 +++++ 6 files changed, 71 insertions(+) create mode 100644 textproc/expat/Makefile create mode 100644 textproc/expat/files/md5 create mode 100644 textproc/expat/patches/patch-aa create mode 100644 textproc/expat/pkg/COMMENT create mode 100644 textproc/expat/pkg/DESCR create mode 100644 textproc/expat/pkg/PLIST diff --git a/textproc/expat/Makefile b/textproc/expat/Makefile new file mode 100644 index 00000000000..cdb77cf7bcf --- /dev/null +++ b/textproc/expat/Makefile @@ -0,0 +1,26 @@ +# Makefile for: expat +# Version required: 1.1 +# Date created: Thu Aug 26 14:38:07 CEST 1999 +# Whom: Dirk Froemberg +# +# $FreeBSD: ports/textproc/expat/Makefile,v 1.2 1999/08/31 02:09:14 peter Exp $ +# $OpenBSD: Makefile,v 1.1.1.1 1999/11/08 14:02:25 dugsong Exp $ + +DISTNAME= expat +PKGNAME= expat-1.1 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.jclark.com/pub/xml/ \ + http://www.physik.TU-Berlin.DE/~ibex/ports/distfiles/ + +MAINTAINER= dugsong@monkey.org + +USE_ZIP= yes + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/xmlwf/xmlwf ${PREFIX}/bin + ${INSTALL_DATA_DIR} ${PREFIX}/include/xml + ${INSTALL_DATA} ${WRKSRC}/xmlparse/xmlparse.h ${PREFIX}/include/xml + ${INSTALL_DATA} ${WRKSRC}/xmltok/xmltok.h ${PREFIX}/include/xml + ${INSTALL_DATA} ${WRKSRC}/libexpat.a ${PREFIX}/lib + +.include diff --git a/textproc/expat/files/md5 b/textproc/expat/files/md5 new file mode 100644 index 00000000000..cfa337b1a01 --- /dev/null +++ b/textproc/expat/files/md5 @@ -0,0 +1 @@ +MD5 (expat.zip) = 9111cc7764ff900229d9e51c03f4a593 diff --git a/textproc/expat/patches/patch-aa b/textproc/expat/patches/patch-aa new file mode 100644 index 00000000000..abcd4128d33 --- /dev/null +++ b/textproc/expat/patches/patch-aa @@ -0,0 +1,34 @@ +--- Makefile.orig Mon Mar 8 08:20:38 1999 ++++ Makefile Thu Aug 26 14:49:24 1999 +@@ -1,10 +1,9 @@ +-CC=gcc + # If you know what your system's byte order is, define XML_BYTE_ORDER: + # use -DXML_BYTE_ORDER=12 for little-endian byte order; + # use -DXML_BYTE_ORDER=21 for big-endian (network) byte order. + # -DXML_NS adds support for checking of lexical aspects of XML namespaces spec + # -DXML_MIN_SIZE makes a smaller but slower parser +-CFLAGS=-O2 -Ixmltok -Ixmlparse -DXML_NS ++CFLAGS+=-Ixmltok -Ixmlparse -DXML_NS + # Use one of the next two lines; unixfilemap is better if it works. + FILEMAP_OBJ=xmlwf/unixfilemap.o + #FILEMAP_OBJ=xmlwf/readfilemap.o +@@ -18,7 +17,7 @@ + $(FILEMAP_OBJ) + EXE= + +-all: xmlwf/xmlwf$(EXE) ++all: xmlwf/xmlwf$(EXE) libexpat.a + + xmlwf/xmlwf$(EXE): $(OBJS) + $(CC) $(CFLAGS) -o $@ $(OBJS) +@@ -34,6 +33,10 @@ + $(CC) $(CFLAGS) -o $@ gennmtab/gennmtab.c + + xmltok/xmltok.o: xmltok/nametab.h ++ ++libexpat.a: $(OBJS) ++ ar -rc $@ $(OBJS) ++ ranlib $@ + + .c.o: + $(CC) $(CFLAGS) -c -o $@ $< diff --git a/textproc/expat/pkg/COMMENT b/textproc/expat/pkg/COMMENT new file mode 100644 index 00000000000..18273b8bec6 --- /dev/null +++ b/textproc/expat/pkg/COMMENT @@ -0,0 +1 @@ +XML 1.0 parser written in C diff --git a/textproc/expat/pkg/DESCR b/textproc/expat/pkg/DESCR new file mode 100644 index 00000000000..6039c62ce09 --- /dev/null +++ b/textproc/expat/pkg/DESCR @@ -0,0 +1,4 @@ +Expat is an XML 1.0 parser written in C. It aims to be fully +conforming. It is currently not a validating XML processor. + +WWW: http://www.jclark.com/xml/expat.html diff --git a/textproc/expat/pkg/PLIST b/textproc/expat/pkg/PLIST new file mode 100644 index 00000000000..e8658c72b36 --- /dev/null +++ b/textproc/expat/pkg/PLIST @@ -0,0 +1,5 @@ +bin/xmlwf +include/xml/xmlparse.h +include/xml/xmltok.h +lib/libexpat.a +@dirrm include/xml