forked from Lainports/freebsd-ports
Rework Makefile to more closely follow Porters Handbook and utilize framework helpers Changelog: https://github.com/leethomason/tinyxml2/compare/9.0.0...10.0.0 PR: 276061 Approved by: portmgr (maintainer timeout, 2+ weeks)
32 lines
722 B
Makefile
32 lines
722 B
Makefile
PORTNAME= tinyxml2
|
|
DISTVERSION= 10.0.0
|
|
PORTEPOCH= 1
|
|
CATEGORIES= textproc
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Small C++ XML Parser
|
|
WWW= 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
|
|
|
|
CMAKE_TESTING_ON= tinyxml2_BUILD_TESTING
|
|
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
|
|
|
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>
|