summaryrefslogtreecommitdiffstats
path: root/textproc/tinyxml2/Makefile
blob: d639fc047474ac0a1102e56b425a4ee77bcc04e0 (plain)
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
39
40
41
42
43
# Created by: b.f. <bf@FreeBSD.org>
# $FreeBSD$

PORTNAME=	tinyxml2
PORTVERSION=	2.2.0
PORTEPOCH=	1
CATEGORIES=	textproc

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Small C++ XML Parser

LICENSE=	ZLIB

USE_GITHUB=	yes
USE_LDCONFIG=	yes
USES=		cmake dos2unix

GH_ACCOUNT=	leethomason

PLIST_FILES=	include/tinyxml2.h \
		lib/libtinyxml2.a \
		lib/libtinyxml2.so \
		lib/libtinyxml2.so.2 \
		lib/libtinyxml2.so.2.2.0 \
		libdata/pkgconfig/tinyxml2.pc
PORTEXAMPLES=	xmltest.cpp resources

OPTIONS_DEFINE=	EXAMPLES

post-patch:
	@${REINPLACE_CMD} -E \
		-e 's@(DESTINATION )(.*)(/pkgconfig)@\1${PREFIX}/libdata\3@' \
		${WRKSRC}/CMakeLists.txt

check regression-test test: build
	@cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test ; \
	./test

post-install:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	@cd ${WRKSRC}; ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud