1104352Sphk# $FreeBSD: releng/10.2/lib/libexpat/Makefile 211243 2010-08-12 20:46:49Z will $ 2104352Sphk 3104461SruEXPAT= ${.CURDIR}/../../contrib/expat 4104352Sphk 5104461SruLIB= bsdxml 6119017SgordonSHLIBDIR?= /lib 7195767SkensmithSHLIB_MAJOR= 4 8104453SphkSRCS= xmlparse.c xmlrole.c xmltok.c 9178852ScokaneINCS= bsdxml.h bsdxml_external.h 10104453SphkMAN= libbsdxml.3 11104352Sphk 12104453Sphk.PATH: ${EXPAT}/lib 13104352Sphk 14178852ScokaneCFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H 15178852ScokaneCLEANFILES= bsdxml.h bsdxml_external.h 16104352Sphk 17201381SedWARNS?= 2 18201381Sed 19104453Sphk# OK, so it is not entirely unadultered: we ammend the COPYING 20104453Sphk# to point people to the right place, get rid of some VMS stuff 21178852Scokane# and use FreeBSD style indempotency #ifndefs. We also want to 22178852Scokane# point it at the new bsdxml_external.h rather than the old 23178852Scokane# expat_external.h file. 24104453Sphk# 25104461Srubsdxml.h: expat.h 26104453Sphk unifdef -U__VMS < ${.ALLSRC} | \ 27104453Sphk sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \ 28104453Sphk -e 's/COPYING/src\/contrib\/expat\/COPYING/' \ 29178852Scokane -e 's/expat_external/bsdxml_external/' \ 30104453Sphk > ${.TARGET} 31104352Sphk 32178852Scokanebsdxml_external.h: expat_external.h 33211243Swill cp -f ${.ALLSRC} ${.TARGET} 34178852Scokane 35104453Sphk.include <bsd.lib.mk> 36