Tweak games/kreversi version 4.14.3
[dports.git] / games / dustrac / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       dustrac
4 PORTVERSION=    1.11.0
5 CATEGORIES=     games
6
7 MAINTAINER=     makc@FreeBSD.org
8 COMMENT=        2D top-view racing game
9
10 LIB_DEPENDS=    libvorbisfile.so:audio/libvorbis
11
12 USES=           compiler:c++11-lib cmake:outsource openal pkgconfig
13 USE_GL=         glu
14 USE_QT5=        core opengl xml widgets \
15                 buildtools_build linguisttools_build qmake_build
16 CMAKE_ARGS=     -DReleaseBuild=on \
17                 -DDATA_PATH=${DATADIR} \
18                 -DDOC_PATH=${DOCSDIR}
19 LDFLAGS+=       -L${LOCALBASE}/lib
20
21 USE_GITHUB=     yes
22 GH_ACCOUNT=     juzzlin
23 GH_PROJECT=     DustRacing2D
24
25 OPTIONS_DEFINE= DOCS
26
27 STRIP_FILES=    bin/dustrac-game \
28                 bin/dustrac-editor
29
30 post-patch:
31         ${REINPLACE_CMD} -e '/add_subdirectory(UnitTests)/d' \
32                 ${WRKSRC}/src/game/MiniCore/CMakeLists.txt
33
34 post-install:
35         ${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
36
37 .include <bsd.port.mk>