textproc/tinyxml2: Convert to meson

- Reapply part of 450aafcba5
- Bump PORTREVISION for package change
This commit is contained in:
Po-Chuan Hsieh 2024-03-10 01:10:52 +08:00
parent ec6f7ce16d
commit cf9d528182
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B
2 changed files with 18 additions and 16 deletions

View file

@ -1,28 +1,30 @@
PORTNAME= tinyxml2
DISTVERSION= 10.0.0
PORTREVISION= 2
PORTVERSION= 10.0.0
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= textproc
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Small C++ XML Parser
WWW= https://github.com/leethomason/tinyxml2
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
USES= compiler:c++11-lang cpe dos2unix meson pathfix
MESON_ARGS= --default-library=both \
-Ddebug=false \
-Dtests=true
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= leethomason
PLIST_SUB= PORTVERSION=${PORTVERSION}
CMAKE_TESTING_ON= tinyxml2_BUILD_TESTING
PLIST_SUB= DISTVERSION=${DISTVERSION}
GH_ACCOUNT= leethomason
USE_GITHUB= yes
CMAKE_OFF= tinyxml2_BUILD_TESTING
CMAKE_ON= BUILD_SHARED_LIBS
CPE_VENDOR= tinyxml2_project
OPTIONS_DEFINE= EXAMPLES
@ -30,4 +32,7 @@ post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/ && ${COPYTREE_SHARE} resources ${STAGEDIR}${EXAMPLESDIR}/
do-test:
cd ${WRKSRC}/ && _build/xmltest
.include <bsd.port.mk>

View file

@ -1,11 +1,8 @@
include/tinyxml2.h
lib/cmake/tinyxml2/tinyxml2-config-version.cmake
lib/cmake/tinyxml2/tinyxml2-config.cmake
lib/cmake/tinyxml2/tinyxml2-shared-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/tinyxml2/tinyxml2-shared-targets.cmake
lib/libtinyxml2.a
lib/libtinyxml2.so
lib/libtinyxml2.so.10
lib/libtinyxml2.so.%%DISTVERSION%%
lib/libtinyxml2.so.%%PORTVERSION%%
libdata/pkgconfig/tinyxml2.pc
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/resources/dream.xml
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/resources/empty.xml