freebsd-ports/textproc/tinyxml2/Makefile
Mathieu Arnold fb4deed873 Update ports in the remaining categories to not use GH_COMMIT.
With minor cleanups to make things simpler.

With hat:	portmgr
Sponsored by:	Absolight
2015-05-07 20:24:15 +00:00

43 lines
902 B
Makefile

# Created by: b.f. <bf@FreeBSD.org>
# $FreeBSD$
PORTNAME= tinyxml2
PORTVERSION= 2.2.0
PORTEPOCH= 1
CATEGORIES= textproc
MAINTAINER= bf@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>