mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
52 lines
1.0 KiB
Makefile
52 lines
1.0 KiB
Makefile
# Created by: b.f. <bf@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= tinyxml2
|
|
PORTVERSION= 20140124
|
|
CATEGORIES= textproc
|
|
MASTER_SITES= LOCAL/bf GH
|
|
|
|
MAINTAINER= bf@FreeBSD.org
|
|
COMMENT= Small C++ XML Parser
|
|
|
|
LICENSE= ZLIB
|
|
|
|
USE_GITHUB= yes
|
|
USE_LDCONFIG= yes
|
|
USES= cmake dos2unix
|
|
|
|
GH_ACCOUNT= leethomason
|
|
GH_COMMIT= 5bb2d80
|
|
GH_TAGNAME= ${GH_COMMIT}
|
|
|
|
PLIST_FILES= include/tinyxml2.h \
|
|
lib/libtinyxml2.a \
|
|
lib/libtinyxml2.so \
|
|
lib/libtinyxml2.so.1 \
|
|
lib/libtinyxml2.so.1.0.14 \
|
|
libdata/pkgconfig/tinyxml2.pc
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
.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} ${STAGEDIR}${EXAMPLESDIR}
|
|
@cd ${WRKSRC}; ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|