2002-10-02 07:35:35 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2016-02-04 21:16:35 +00:00
|
|
|
PACKAGE=lib${LIB}
|
2017-01-20 04:53:45 +00:00
|
|
|
EXPAT= ${SRCTOP}/contrib/expat
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2002-10-04 11:20:18 +00:00
|
|
|
LIB= bsdxml
|
2003-08-17 08:28:46 +00:00
|
|
|
SHLIBDIR?= /lib
|
2009-07-19 17:25:24 +00:00
|
|
|
SHLIB_MAJOR= 4
|
2002-10-04 11:20:18 +00:00
|
|
|
SRCS= xmlparse.c xmlrole.c xmltok.c
|
2008-05-08 14:01:42 +00:00
|
|
|
INCS= bsdxml.h bsdxml_external.h
|
2002-10-04 11:20:18 +00:00
|
|
|
MAN= libbsdxml.3
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2002-10-04 11:20:18 +00:00
|
|
|
.PATH: ${EXPAT}/lib
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2008-05-08 14:01:42 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -DHAVE_EXPAT_CONFIG_H
|
|
|
|
CLEANFILES= bsdxml.h bsdxml_external.h
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2010-01-02 09:58:07 +00:00
|
|
|
WARNS?= 2
|
|
|
|
|
2014-11-12 16:07:33 +00:00
|
|
|
# OK, so it is not entirely unadulterated: we amend the COPYING to
|
2018-08-22 11:56:42 +00:00
|
|
|
# point people to the right place and use FreeBSD-style include guards.
|
|
|
|
# We also want to point it at the new bsdxml_external.h rather than the
|
|
|
|
# old expat_external.h file.
|
2002-10-04 15:06:44 +00:00
|
|
|
bsdxml.h: expat.h
|
2002-10-04 11:20:18 +00:00
|
|
|
sed -e 's/XmlParse_INCLUDED/_BSD_XML_H_/' \
|
|
|
|
-e 's/COPYING/src\/contrib\/expat\/COPYING/' \
|
2018-08-22 11:56:42 +00:00
|
|
|
-e 's/expat_external/bsdxml_external/' ${.ALLSRC} \
|
2002-10-04 11:20:18 +00:00
|
|
|
> ${.TARGET}
|
2002-10-02 07:35:35 +00:00
|
|
|
|
2008-05-08 14:01:42 +00:00
|
|
|
bsdxml_external.h: expat_external.h
|
2015-01-16 21:39:08 +00:00
|
|
|
${CP} ${.ALLSRC} ${.TARGET}
|
2008-05-08 14:01:42 +00:00
|
|
|
|
2002-10-02 07:35:35 +00:00
|
|
|
.include <bsd.lib.mk>
|