forked from Lainports/freebsd-ports
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3 to GCC 9.1 under most circumstances now after revision 507371. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, everything INDEX-11 shows with a dependency on lang/gcc9 now. PR: 238330
41 lines
922 B
Makefile
41 lines
922 B
Makefile
# Created by: b.f. <bf@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tinyxml2
|
|
PORTVERSION= 7.0.1
|
|
PORTREVISION= 2
|
|
PORTEPOCH= 1
|
|
CATEGORIES= textproc
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Small C++ XML Parser
|
|
|
|
LICENSE= ZLIB
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
CMAKE_OFF= BUILD_TESTS
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
USES= cmake:insource compiler:c++11-lang dos2unix pathfix
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
PORTEXAMPLES= *
|
|
|
|
GH_ACCOUNT= leethomason
|
|
USE_GITHUB= yes
|
|
|
|
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>
|