freebsd-ports/textproc/tinyxml2/Makefile
Sunpoet Po-Chuan Hsieh 9977149e7d - Update to 2.2.0
- Simplify Makefile
- Bump PORTREVISION for textproc/tinyxml2 shlib change

Changes:	https://github.com/leethomason/tinyxml2/commits/master
PR:		196884
Submitted by:	sunpoet (myself)
Approved by:	maintainer (timeout, 1 month)
2015-02-19 20:07:32 +00:00

44 lines
921 B
Makefile

# Created by: b.f. <bf@FreeBSD.org>
# $FreeBSD$
PORTNAME= tinyxml2
PORTVERSION= 2.2.0
PORTEPOCH= 1
CATEGORIES= textproc
MAINTAINER= bf@FreeBSD.org
COMMENT= Small C++ XML Parser
LICENSE= ZLIB
USE_GITHUB= yes
USE_LDCONFIG= yes
USES= cmake dos2unix
GH_ACCOUNT= leethomason
GH_COMMIT= 5321a0e
PLIST_FILES= include/tinyxml2.h \
lib/libtinyxml2.a \
lib/libtinyxml2.so \
lib/libtinyxml2.so.2 \
lib/libtinyxml2.so.2.2.0 \
libdata/pkgconfig/tinyxml2.pc
PORTEXAMPLES= xmltest.cpp resources
OPTIONS_DEFINE= EXAMPLES
post-patch:
@${REINPLACE_CMD} -E \
-e 's@(DESTINATION )(.*)(/pkgconfig)@\1${PREFIX}/libdata\3@' \
${WRKSRC}/CMakeLists.txt
check regression-test test: build
@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test ; \
./test
post-install:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}; ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>