textproc/tinyxml2: Switch back to CMake

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)
This commit is contained in:
Daniel Engberg 2025-04-18 23:28:51 +02:00
parent 0d3fd1df08
commit dfc35ba82f
3 changed files with 14 additions and 13 deletions

View file

@ -1,5 +1,6 @@
PORTNAME= tinyxml2 PORTNAME= tinyxml2
PORTVERSION= 11.0.0 PORTVERSION= 11.0.0
PORTREVISION= 1
PORTEPOCH= 1 PORTEPOCH= 1
CATEGORIES= textproc CATEGORIES= textproc
@ -11,19 +12,19 @@ WWW= https://leethomason.github.io/tinyxml2/ \
LICENSE= ZLIB LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.txt LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES= compiler:c++11-lang cpe dos2unix meson pathfix USES= cmake:testing compiler:c++11-lang cpe dos2unix pathfix
CPE_VENDOR= tinyxml2_project
MESON_ARGS= --default-library=both \
-Ddebug=false \
-Dtests=true
USE_LDCONFIG= yes USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= leethomason
PLIST_SUB= PORTVERSION=${PORTVERSION} PLIST_SUB= PORTVERSION=${PORTVERSION}
GH_ACCOUNT= leethomason CMAKE_TESTING_ON= tinyxml2_BUILD_TESTING
USE_GITHUB= yes
CPE_VENDOR= tinyxml2_project CMAKE_OFF= tinyxml2_BUILD_TESTING
CMAKE_ON= BUILD_SHARED_LIBS
OPTIONS_DEFINE= EXAMPLES OPTIONS_DEFINE= EXAMPLES
@ -31,7 +32,4 @@ post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/ && ${COPYTREE_SHARE} resources ${STAGEDIR}${EXAMPLESDIR}/ cd ${WRKSRC}/ && ${COPYTREE_SHARE} resources ${STAGEDIR}${EXAMPLESDIR}/
do-test:
cd ${WRKSRC}/ && _build/xmltest
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1742340913 TIMESTAMP = 1744978776
SHA256 (leethomason-tinyxml2-11.0.0_GH0.tar.gz) = 5556deb5081fb246ee92afae73efd943c889cef0cafea92b0b82422d6a18f289 SHA256 (leethomason-tinyxml2-11.0.0_GH0.tar.gz) = 5556deb5081fb246ee92afae73efd943c889cef0cafea92b0b82422d6a18f289
SIZE (leethomason-tinyxml2-11.0.0_GH0.tar.gz) = 642878 SIZE (leethomason-tinyxml2-11.0.0_GH0.tar.gz) = 642878

View file

@ -1,5 +1,8 @@
include/tinyxml2.h include/tinyxml2.h
lib/libtinyxml2.a 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.so lib/libtinyxml2.so
lib/libtinyxml2.so.11 lib/libtinyxml2.so.11
lib/libtinyxml2.so.%%PORTVERSION%% lib/libtinyxml2.so.%%PORTVERSION%%