4 EXPAT= ${SRCTOP}/contrib/expat
9 SRCS= xmlparse.c xmlrole.c xmltok.c
10 INCS= bsdxml.h bsdxml_external.h
15 CFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
16 CLEANFILES= bsdxml.h bsdxml_external.h
20 # OK, so it is not entirely unadulterated: we amend the COPYING to
21 # point people to the right place and use FreeBSD-style include guards.
22 # We also want to point it at the new bsdxml_external.h rather than the
23 # old expat_external.h file.
25 sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
26 -e 's/COPYING/src\/contrib\/expat\/COPYING/' \
27 -e 's/expat_external/bsdxml_external/' ${.ALLSRC} \
30 bsdxml_external.h: expat_external.h
31 ${CP} ${.ALLSRC} ${.TARGET}