diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-09-22 21:36:55 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-09-22 21:36:55 +0000 |
commit | e732a34ca21a48b24b9d61e422e48d51f536ff95 (patch) | |
tree | f07f787924e3f0a73fdb1f880250a4041af943fe /lib/libexpat | |
parent | 27af6b4586f843b9dee6e1e178a36ecc03f857c2 (diff) |
OpenBSD infrastructure to compile simply, and install include files.
Diffstat (limited to 'lib/libexpat')
-rw-r--r-- | lib/libexpat/Makefile | 12 | ||||
-rw-r--r-- | lib/libexpat/expat_config.h | 8 | ||||
-rw-r--r-- | lib/libexpat/shlib_version | 2 |
3 files changed, 22 insertions, 0 deletions
diff --git a/lib/libexpat/Makefile b/lib/libexpat/Makefile new file mode 100644 index 00000000000..415fb3019bd --- /dev/null +++ b/lib/libexpat/Makefile @@ -0,0 +1,12 @@ +.PATH: ${.CURDIR}/lib + +LIB= expat +SRCS= xmlparse.c xmltok.c xmlrole.c +CFLAGS+=-I${.CURDIR} + +includes: + @cmp -s ${DESTDIR}/usr/include/expat.h ${.CURDIR}/lib/expat.h || \ + ${INSTALL} ${INSTALL_COPY} -m 444 -o $(BINOWN) -g $(BINGRP) \ + ${.CURDIR}/lib/expat.h ${DESTDIR}/usr/include/expat.h + +.include <bsd.lib.mk> diff --git a/lib/libexpat/expat_config.h b/lib/libexpat/expat_config.h new file mode 100644 index 00000000000..810c42fee84 --- /dev/null +++ b/lib/libexpat/expat_config.h @@ -0,0 +1,8 @@ +/* $OpenBSD: expat_config.h,v 1.1 2004/09/22 21:36:54 espie 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/libexpat/shlib_version b/lib/libexpat/shlib_version new file mode 100644 index 00000000000..3066b9771e7 --- /dev/null +++ b/lib/libexpat/shlib_version @@ -0,0 +1,2 @@ +major=5 +minor=0 |