14e07a41bSPoul-Henning Kamp# $FreeBSD$ 24e07a41bSPoul-Henning Kamp 34e07a41bSPoul-Henning KampEXPAT= ${.CURDIR}/../../contrib/expat 44e07a41bSPoul-Henning Kamp 58a349ed8SPoul-Henning KampLIB= bsdxml 641d8423fSGordon TetlowSHLIBDIR?= /lib 73ca3047aSKen SmithSHLIB_MAJOR= 4 88a349ed8SPoul-Henning KampSRCS= xmlparse.c xmlrole.c xmltok.c 9c4ca06b9SColeman KaneINCS= bsdxml.h bsdxml_external.h 108a349ed8SPoul-Henning KampMAN= libbsdxml.3 114e07a41bSPoul-Henning Kamp 124e07a41bSPoul-Henning Kamp.PATH: ${EXPAT}/lib 134e07a41bSPoul-Henning Kamp 14c4ca06b9SColeman KaneCFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H 15c4ca06b9SColeman KaneCLEANFILES= bsdxml.h bsdxml_external.h 164e07a41bSPoul-Henning Kamp 17daaf5759SEd SchoutenWARNS?= 2 18daaf5759SEd Schouten 197ce14e21SDag-Erling Smørgrav# OK, so it is not entirely unadulterated: we amend the COPYING to 207ce14e21SDag-Erling Smørgrav# point people to the right place, get rid of some VMS stuff and use 217ce14e21SDag-Erling Smørgrav# FreeBSD-style include guards. We also want to point it at the new 227ce14e21SDag-Erling Smørgrav# bsdxml_external.h rather than the old expat_external.h file. 238a349ed8SPoul-Henning Kampbsdxml.h: expat.h 248a349ed8SPoul-Henning Kamp unifdef -U__VMS < ${.ALLSRC} | \ 258a349ed8SPoul-Henning Kamp sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \ 268a349ed8SPoul-Henning Kamp -e 's/COPYING/src\/contrib\/expat\/COPYING/' \ 27c4ca06b9SColeman Kane -e 's/expat_external/bsdxml_external/' \ 288a349ed8SPoul-Henning Kamp > ${.TARGET} 294e07a41bSPoul-Henning Kamp 30c4ca06b9SColeman Kanebsdxml_external.h: expat_external.h 31*7a37b5fcSWill Andrews ${CP} ${.ALLSRC} ${.TARGET} 32c4ca06b9SColeman Kane 334e07a41bSPoul-Henning Kamp.include <bsd.lib.mk> 34