summaryrefslogtreecommitdiff
path: root/textproc/tinyxml2/Makefile
blob: efc9fee81e76587220861a7168182b728e6b4e6d (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
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: b.f. <bf@FreeBSD.org>
# $FreeBSD$

PORTNAME=	tinyxml2
PORTVERSION=	20131105
CATEGORIES=	textproc
MASTER_SITES=	LOCAL/bf GH

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

LICENSE=	ZLIB

USE_DOS2UNIX=	yes
USE_GITHUB=	yes
USE_LDCONFIG=	yes
USES=		cmake

GH_ACCOUNT=	leethomason
GH_COMMIT=	370761b
GH_TAGNAME=	${GH_COMMIT}

PLIST_FILES=	include/tinyxml2.h \
		lib/libtinyxml2.a \
		lib/libtinyxml2.so \
		lib/libtinyxml2.so.1 \
		lib/libtinyxml2.so.1.0.12 \
		libdata/pkgconfig/tinyxml2.pc

NO_STAGE=	yes
.include <bsd.port.options.mk>

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

.if ${PORT_OPTIONS:MEXAMPLES}
PORTEXAMPLES=	xmltest.cpp resources

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

.endif

.include <bsd.port.mk>