mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
a01b22a052
PR: 210474 Submitted by: jbeich With hat: portmgr-secretary
44 lines
905 B
Makefile
44 lines
905 B
Makefile
# 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>
|