blob: 2127f3e260b1588ca2023faeeef24b31358348ea (
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
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= sdl2pp
PORTVERSION= 0.9.0
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 mixer2 ttf2
PORTDOCS= *
OPTIONS_DEFINE= DOCS DOXYGEN
DOXYGEN_BUILD_DEPENDS= doxygen:${PORTSDIR}/devel/doxygen
DOXYGEN_ALL_TARGET= all doxygen
DOXYGEN_IMPLIES= DOCS
.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}/
post-install-DOXYGEN-on:
cd ${CONFIGURE_WRKSRC} && ${COPYTREE_SHARE} doxygen ${STAGEDIR}${DOCSDIR}/
regression-test: build
cd ${WRKSRC} && ${DO_MAKE_BUILD} test
.include <bsd.port.post.mk>
|