blob: e910e665b9a7f2dac87961ce97ec046fdab67d50 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= stuntrally
PORTVERSION= 2.6
PORTREVISION= 8
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 3D racing game based on VDrift and OGRE with track editor
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= f7703d8d3f30.patch:-p1
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/License.txt
LIB_DEPENDS= libboost_thread.so:devel/boost-libs
USE_GITHUB= yes
GH_TUPLE= stuntrally:tracks:${PORTVERSION}:tracks/data/tracks
USES= compiler:c++11-lib cmake dos2unix pkgconfig
USE_CXXSTD= gnu++11
DOS2UNIX_FILES= source/ogre/BaseApp_Create.cpp
CMAKE_ARGS= -DSHARE_INSTALL="${DATADIR_REL}" \
-DBULLET_ROOT="${LOCALBASE}"
LLD_UNSAFE= yes
PORTDOCS= Readme.txt
PORTDATA= *
OPTIONS_DEFINE= GAME EDITOR MASTER_SERVER DOCS
OPTIONS_DEFAULT=GAME EDITOR
OPTIONS_SUB= yes
GAME_DESC= Build the game binary
GAME_CMAKE_BOOL= BUILD_GAME
GAME_LIB_DEPENDS= libOgreMain.so:graphics/ogre3d \
libBulletDynamics.so:devel/bullet \
libMyGUIEngine.so:x11-toolkits/mygui \
libogg.so:audio/libogg \
libvorbisfile.so:audio/libvorbis \
libenet.so:net/enet
GAME_BUILD_DEPENDS= ${LOCALBASE}/include/MYGUI/MyGUI_OgreTexture.h:x11-toolkits/mygui-ogre
GAME_USE= SDL=sdl2
GAME_USES= openal
EDITOR_DESC= Build the track editor
EDITOR_CMAKE_BOOL= BUILD_EDITOR
EDITOR_LIB_DEPENDS= libOgreMain.so:graphics/ogre3d \
libBulletDynamics.so:devel/bullet \
libMyGUIEngine.so:x11-toolkits/mygui \
libogg.so:audio/libogg \
libvorbisfile.so:audio/libvorbis
EDITOR_USE= SDL=sdl2
EDITOR_BUILD_DEPENDS= ${LOCALBASE}/include/MYGUI/MyGUI_OgreTexture.h:x11-toolkits/mygui-ogre
MASTER_SERVER_CMAKE_BOOL= BUILD_MASTER_SERVER
MASTER_SERVER_DESC= Build the master server
MASTER_SERVER_LIB_DEPENDS= libenet.so:net/enet
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Readme.txt ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
|