aboutsummaryrefslogtreecommitdiff
path: root/games/dustrac/Makefile
blob: 4c04e36a1356e464bb1d47d91f09b9a4b59b07a7 (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
# $FreeBSD$

PORTNAME=	dustrac
PORTVERSION=	1.11.0
PORTREVISION=	3
CATEGORIES=	games

MAINTAINER=	ports@FreeBSD.org
COMMENT=	2D top-view racing game

LIB_DEPENDS=	libvorbisfile.so:audio/libvorbis

USES=		compiler:c++11-lib cmake:outsource openal pkgconfig qt:5
USE_GL=		glu
USE_QT=		core opengl xml widgets \
		buildtools_build linguisttools_build qmake_build
CMAKE_ARGS=	-DReleaseBuild=on \
		-DDATA_PATH=${DATADIR} \
		-DDOC_PATH=${DOCSDIR}
LDFLAGS+=	-L${LOCALBASE}/lib

USE_GITHUB=	yes
GH_ACCOUNT=	juzzlin
GH_PROJECT=	DustRacing2D

OPTIONS_DEFINE=	DOCS

STRIP_FILES=	bin/dustrac-game \
		bin/dustrac-editor

post-patch:
	${REINPLACE_CMD} -e '/add_subdirectory(UnitTests)/d' \
		${WRKSRC}/src/game/MiniCore/CMakeLists.txt

post-install:
	${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}

.include <bsd.port.mk>