aboutsummaryrefslogtreecommitdiff
path: root/textproc/tinyxml2/Makefile
blob: efa8b82fd26dc497f1e513178a0d8ae14643cbda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PORTNAME=	tinyxml2
PORTVERSION=	10.0.0
PORTREVISION=	3
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=		compiler:c++11-lang cpe dos2unix meson pathfix

MESON_ARGS=	--default-library=both \
		-Ddebug=false \
		-Dtests=true
USE_LDCONFIG=	yes

PLIST_SUB=	PORTVERSION=${PORTVERSION}

GH_ACCOUNT=	leethomason
USE_GITHUB=	yes

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>