14e07a41bSPoul-Henning Kamp# $FreeBSD$ 24e07a41bSPoul-Henning Kamp 3a70cba95SGlen BarberPACKAGE=lib${LIB} 42623a5acSEnji CooperEXPAT= ${SRCTOP}/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 21*24c14ab8SAlex Richardson# point people to the right place and use FreeBSD-style include guards. 22*24c14ab8SAlex Richardson# We also want to point it at the new bsdxml_external.h rather than the 23*24c14ab8SAlex Richardson# old expat_external.h file. 248a349ed8SPoul-Henning Kampbsdxml.h: expat.h 258a349ed8SPoul-Henning Kamp sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \ 268a349ed8SPoul-Henning Kamp -e 's/COPYING/src\/contrib\/expat\/COPYING/' \ 27*24c14ab8SAlex Richardson -e 's/expat_external/bsdxml_external/' ${.ALLSRC} \ 288a349ed8SPoul-Henning Kamp > ${.TARGET} 294e07a41bSPoul-Henning Kamp 30c4ca06b9SColeman Kanebsdxml_external.h: expat_external.h 317a37b5fcSWill Andrews ${CP} ${.ALLSRC} ${.TARGET} 32c4ca06b9SColeman Kane 334e07a41bSPoul-Henning Kamp.include <bsd.lib.mk> 34