Skip to content

Commit

Permalink
textproc/tinyxml2: Convert to meson
Browse files Browse the repository at this point in the history
- Reapply part of 450aafc
- Bump PORTREVISION for package change
  • Loading branch information
sunpoet committed Mar 9, 2024
1 parent ec6f7ce commit cf9d528
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
27 changes: 16 additions & 11 deletions textproc/tinyxml2/Makefile
@@ -1,33 +1,38 @@
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

post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
cd ${WRKSRC}/ && ${COPYTREE_SHARE} resources ${STAGEDIR}${EXAMPLESDIR}/

do-test:
cd ${WRKSRC}/ && _build/xmltest

.include <bsd.port.mk>
7 changes: 2 additions & 5 deletions textproc/tinyxml2/pkg-plist
@@ -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
Expand Down

0 comments on commit cf9d528

Please sign in to comment.