build infrastructure for expat. Copied from /usr/src/lib/libexpat.

This commit is contained in:
matthieu 2006-11-26 12:03:55 +00:00
parent f956426aeb
commit 640431fed0
4 changed files with 39 additions and 12 deletions

View File

@ -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

29
lib/expat/Makefile Normal file
View File

@ -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

8
lib/expat/expat_config.h Normal file
View File

@ -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

2
lib/expat/shlib_version Normal file
View File

@ -0,0 +1,2 @@
major=6
minor=0