1*30975efbSEmmanuel VadotPACKAGE= runtime 22623a5acSEnji CooperEXPAT= ${SRCTOP}/contrib/expat 34e07a41bSPoul-Henning Kamp 48a349ed8SPoul-Henning KampLIB= bsdxml 541d8423fSGordon TetlowSHLIBDIR?= /lib 63ca3047aSKen SmithSHLIB_MAJOR= 4 78a349ed8SPoul-Henning KampSRCS= xmlparse.c xmlrole.c xmltok.c 8c4ca06b9SColeman KaneINCS= bsdxml.h bsdxml_external.h 98a349ed8SPoul-Henning KampMAN= libbsdxml.3 104e07a41bSPoul-Henning Kamp 114e07a41bSPoul-Henning Kamp.PATH: ${EXPAT}/lib 124e07a41bSPoul-Henning Kamp 13c4ca06b9SColeman KaneCFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H 14c4ca06b9SColeman KaneCLEANFILES= bsdxml.h bsdxml_external.h 154e07a41bSPoul-Henning Kamp 16daaf5759SEd SchoutenWARNS?= 2 17daaf5759SEd Schouten 187ce14e21SDag-Erling Smørgrav# OK, so it is not entirely unadulterated: we amend the COPYING to 1924c14ab8SAlex Richardson# point people to the right place and use FreeBSD-style include guards. 2024c14ab8SAlex Richardson# We also want to point it at the new bsdxml_external.h rather than the 2124c14ab8SAlex Richardson# old expat_external.h file. 228a349ed8SPoul-Henning Kampbsdxml.h: expat.h 238a349ed8SPoul-Henning Kamp sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \ 248a349ed8SPoul-Henning Kamp -e 's/COPYING/src\/contrib\/expat\/COPYING/' \ 2524c14ab8SAlex Richardson -e 's/expat_external/bsdxml_external/' ${.ALLSRC} \ 268a349ed8SPoul-Henning Kamp > ${.TARGET} 274e07a41bSPoul-Henning Kamp 28c4ca06b9SColeman Kanebsdxml_external.h: expat_external.h 297a37b5fcSWill Andrews ${CP} ${.ALLSRC} ${.TARGET} 30c4ca06b9SColeman Kane 314e07a41bSPoul-Henning Kamp.include <bsd.lib.mk> 32