14e07a41bSPoul-Henning Kamp# $FreeBSD$ 24e07a41bSPoul-Henning Kamp 3*a70cba95SGlen BarberPACKAGE=lib${LIB} 44e07a41bSPoul-Henning KampEXPAT= ${.CURDIR}/../../contrib/expat 54e07a41bSPoul-Henning Kamp 68a349ed8SPoul-Henning KampLIB= bsdxml 741d8423fSGordon TetlowSHLIBDIR?= /lib 83ca3047aSKen SmithSHLIB_MAJOR= 4 98a349ed8SPoul-Henning KampSRCS= xmlparse.c xmlrole.c xmltok.c 10c4ca06b9SColeman KaneINCS= bsdxml.h bsdxml_external.h 118a349ed8SPoul-Henning KampMAN= libbsdxml.3 124e07a41bSPoul-Henning Kamp 134e07a41bSPoul-Henning Kamp.PATH: ${EXPAT}/lib 144e07a41bSPoul-Henning Kamp 15c4ca06b9SColeman KaneCFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H 16c4ca06b9SColeman KaneCLEANFILES= bsdxml.h bsdxml_external.h 174e07a41bSPoul-Henning Kamp 18daaf5759SEd SchoutenWARNS?= 2 19daaf5759SEd Schouten 207ce14e21SDag-Erling Smørgrav# OK, so it is not entirely unadulterated: we amend the COPYING to 217ce14e21SDag-Erling Smørgrav# point people to the right place, get rid of some VMS stuff and use 227ce14e21SDag-Erling Smørgrav# FreeBSD-style include guards. We also want to point it at the new 237ce14e21SDag-Erling Smørgrav# bsdxml_external.h rather than the old expat_external.h file. 248a349ed8SPoul-Henning Kampbsdxml.h: expat.h 258a349ed8SPoul-Henning Kamp unifdef -U__VMS < ${.ALLSRC} | \ 268a349ed8SPoul-Henning Kamp sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \ 278a349ed8SPoul-Henning Kamp -e 's/COPYING/src\/contrib\/expat\/COPYING/' \ 28c4ca06b9SColeman Kane -e 's/expat_external/bsdxml_external/' \ 298a349ed8SPoul-Henning Kamp > ${.TARGET} 304e07a41bSPoul-Henning Kamp 31c4ca06b9SColeman Kanebsdxml_external.h: expat_external.h 327a37b5fcSWill Andrews ${CP} ${.ALLSRC} ${.TARGET} 33c4ca06b9SColeman Kane 344e07a41bSPoul-Henning Kamp.include <bsd.lib.mk> 35