summaryrefslogtreecommitdiff
path: root/games/dustrac/Makefile
blob: f7065a2fcad143e302f14dde45cd0553c8639fd0 (plain)
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

PORTNAME=	dustrac
PORTVERSION=	2.0.3
CATEGORIES=	games

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

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libvorbisfile.so:audio/libvorbis

USE_GITHUB=	yes
GH_ACCOUNT=	juzzlin
GH_PROJECT=	DustRacing2D

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

PORTDATA=	*
PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

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

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dustrac-*

.include <bsd.port.mk>