1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/devel/sdl2pp/Makefile
2015-03-27 09:33:31 +00:00

46 lines
998 B
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= sdl2pp
PORTVERSION= 0.7.1
CATEGORIES= devel
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= C++11 bindings/wrapper for SDL2
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/COPYING.txt
USE_GITHUB= yes
GH_ACCOUNT= AMDmi3
GH_PROJECT= libSDL2pp
USES= compiler:c++11-lib cmake
CMAKE_ARGS= -DRUN_GUI_TESTS=OFF \
-DSDL2PP_WITH_WERROR=ON
USE_SDL= sdl2 image2 ttf2
PORTDOCS= *
OPTIONS_DEFINE= DOCS DOXYGEN
DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
DOXYGEN_ALL_TARGET= all doxygen
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == gcc
CXXFLAGS+= -D_GLIBCXX_USE_C99 # gcc c++11 support is broken on FreeBSD
.endif
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}/
.if ${PORT_OPTIONS:MDOXYGEN}
cd ${CONFIGURE_WRKSRC} && ${COPYTREE_SHARE} doxygen ${STAGEDIR}${DOCSDIR}/
.endif
regression-test: build
cd ${WRKSRC} && ${DO_MAKE_BUILD} test
.include <bsd.port.post.mk>