summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-26 12:03:56 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2006-11-26 12:03:56 +0000
commit4a014fe4ddcf23fccd380629c3772ae76ebe1969 (patch)
tree45b104c1726954de460a697b3fae2b07fb320ea9 /lib
parent61fda81ebb25022ff5b1ca8b5bb1b2f0547b3873 (diff)
build infrastructure for expat. Copied from /usr/src/lib/libexpat.
Diffstat (limited to 'lib')
-rw-r--r--lib/expat/.cvsignore12
-rw-r--r--lib/expat/Makefile29
-rw-r--r--lib/expat/expat_config.h8
-rw-r--r--lib/expat/shlib_version2
4 files changed, 39 insertions, 12 deletions
diff --git a/lib/expat/.cvsignore b/lib/expat/.cvsignore
deleted file mode 100644
index fe020da78..000000000
--- a/lib/expat/.cvsignore
+++ /dev/null
@@ -1,12 +0,0 @@
-Makefile
-.libs
-*.la
-configure
-config.cache
-config.log
-config.status
-expat_config.h.in
-expat_config.h
-libtool
-expat.ncb
-expat.opt
diff --git a/lib/expat/Makefile b/lib/expat/Makefile
new file mode 100644
index 000000000..7c57132ac
--- /dev/null
+++ b/lib/expat/Makefile
@@ -0,0 +1,29 @@
+# $Xenocara: Makefile,v 1.8 2006/04/17 21:40:34 matthieu Exp $
+# $OpenBSD: Makefile,v 1.1 2006/11/26 12:03:55 matthieu Exp $
+.include <bsd.own.mk>
+
+DIST= ${.CURDIR}
+
+LIB= expat
+SRCS= xmlparse.c xmltok.c xmlrole.c
+CFLAGS+= -I${.CURDIR}
+CPPFLAGS+= -DHAVE_EXPAT_CONFIG_H
+
+test:
+ @echo "dist $(DIST)/lib"
+
+includes:
+ @cmp -s ${DESTDIR}${X11BASE}/include/expat.h \
+ ${DIST}/lib/expat.h || \
+ ${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
+ ${DIST}/lib/expat.h ${DESTDIR}${X11BASE}/include/expat.h
+ @cmp -s ${DESTDIR}${X11BASE}/include/expat_external.h \
+ ${DIST}/lib/expat_external.h || \
+ ${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \
+ ${DIST}/lib/expat_external.h \
+ ${DESTDIR}${X11BASE}/include/expat_external.h
+
+.include <bsd.lib.mk>
+.include <bsd.xorg.mk>
+
+.PATH: ${DIST}/lib
diff --git a/lib/expat/expat_config.h b/lib/expat/expat_config.h
new file mode 100644
index 000000000..0e5ea4e61
--- /dev/null
+++ b/lib/expat/expat_config.h
@@ -0,0 +1,8 @@
+/* $OpenBSD: expat_config.h,v 1.1 2006/11/26 12:03:55 matthieu Exp $ */
+
+/* quick and dirty conf for OpenBSD */
+
+#define HAVE_MEMMOVE 1
+#define XML_CONTEXT_BYTES 1024
+#define XML_DTD 1
+#define XML_NS 1
diff --git a/lib/expat/shlib_version b/lib/expat/shlib_version
new file mode 100644
index 000000000..9c1551636
--- /dev/null
+++ b/lib/expat/shlib_version
@@ -0,0 +1,2 @@
+major=6
+minor=0