From 4a014fe4ddcf23fccd380629c3772ae76ebe1969 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 26 Nov 2006 12:03:56 +0000 Subject: build infrastructure for expat. Copied from /usr/src/lib/libexpat. --- lib/expat/.cvsignore | 12 ------------ lib/expat/Makefile | 29 +++++++++++++++++++++++++++++ lib/expat/expat_config.h | 8 ++++++++ lib/expat/shlib_version | 2 ++ 4 files changed, 39 insertions(+), 12 deletions(-) delete mode 100644 lib/expat/.cvsignore create mode 100644 lib/expat/Makefile create mode 100644 lib/expat/expat_config.h create mode 100644 lib/expat/shlib_version (limited to 'lib') 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 + +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 +.include + +.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 -- cgit v1.2.3