1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/textproc/tinyxml2/Makefile
Sunpoet Po-Chuan Hsieh 5de82e6019 Update to 7.1.0
- Add LICENSE_FILE
- Convert PORTEXAMPLES to PLIST entries

Changes:	https://github.com/leethomason/tinyxml2/commits/master
2019-08-12 19:39:59 +00:00

42 lines
927 B
Makefile

# Created by: b.f. <bf@FreeBSD.org>
# $FreeBSD$
PORTNAME= tinyxml2
PORTVERSION= 7.1.0
PORTEPOCH= 1
CATEGORIES= textproc
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Small C++ XML Parser
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= cmake:insource compiler:c++11-lang dos2unix pathfix
CMAKE_OFF= BUILD_TESTS
CMAKE_ON= BUILD_SHARED_LIBS
USE_LDCONFIG= yes
PLIST_SUB= PORTVERSION=${PORTVERSION}
GH_ACCOUNT= leethomason
USE_GITHUB= yes
OPTIONS_DEFINE= EXAMPLES
post-patch:
@${REINPLACE_CMD} -e '/CMAKE_DEBUG_POSTFIX/d' ${WRKSRC}/CMakeLists.txt
post-install:
${AR} cq ${STAGEDIR}${PREFIX}/lib/libtinyxml2.a ${WRKSRC}/CMakeFiles/tinyxml2.dir/tinyxml2.cpp.o
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/ && ${COPYTREE_SHARE} resources ${STAGEDIR}${EXAMPLESDIR}/
do-test:
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xmltest && ./xmltest
.include <bsd.port.mk>