Consumers depends on .cmake files (helpers) and currently the most reliable way to generate these. While at it utilize cmake:testing and apply some Makefile changes PR: 284806, 285300 Approved by: portmgr (PR 284806)
36 lines
783 B
Makefile
36 lines
783 B
Makefile
PORTNAME= tinyxml2
|
|
PORTVERSION= 11.0.0
|
|
PORTREVISION= 1
|
|
PORTEPOCH= 1
|
|
CATEGORIES= textproc
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Small C++ XML Parser
|
|
WWW= https://leethomason.github.io/tinyxml2/ \
|
|
https://github.com/leethomason/tinyxml2
|
|
|
|
LICENSE= ZLIB
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
USES= cmake:testing compiler:c++11-lang cpe dos2unix pathfix
|
|
CPE_VENDOR= tinyxml2_project
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= leethomason
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
|
|
CMAKE_TESTING_ON= tinyxml2_BUILD_TESTING
|
|
|
|
CMAKE_OFF= tinyxml2_BUILD_TESTING
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
post-install-EXAMPLES-on:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
|
|
cd ${WRKSRC}/ && ${COPYTREE_SHARE} resources ${STAGEDIR}${EXAMPLESDIR}/
|
|
|
|
.include <bsd.port.mk>
|