forked from OpenDungeons/OpenDungeons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnapcraft.yaml
More file actions
116 lines (115 loc) · 4.26 KB
/
snapcraft.yaml
File metadata and controls
116 lines (115 loc) · 4.26 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: opendungeons
version: 0.8.0
confinement: strict
summary: OpenDungeons
description: Open source game inspired by Dungeon Keeper - Dark, damp and dangerous.
apps:
opendungeons:
command: desktop-launch $SNAP/usr/games/opendungeons
environment:
CEGUI_MODULE_DIR: $SNAP/usr/lib/cegui-0.8
plugs: [opengl, x11, pulseaudio, network, network-bind]
parts:
ogre:
plugin: cmake
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -DOGRE_CONFIG_THREAD_PROVIDER=std
- -DOGRE_CONFIG_THREADS=3
- -DOGRE_STATIC=FALSE
- -DOGRE_BUILD_DEPENDENCIES=FALSE
- -DOGRE_BUILD_RENDERSYSTEM_GL=TRUE
- -DOGRE_RESOURCEMANAGER_STRICT=0
# stuff we dont need
- -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS=FALSE
- -DOGRE_BUILD_RENDERSYSTEM_GLES2=FALSE
- -DOGRE_BUILD_TOOLS=FALSE
- -DOGRE_BUILD_SAMPLES=FALSE
- -DOGRE_BUILD_PLUGIN_FREEIMAGE=FALSE
- -DOGRE_BUILD_PLUGIN_EXRCODEC=FALSE
- -DOGRE_BUILD_PLUGIN_BSP=FALSE
- -DOGRE_BUILD_PLUGIN_PCZ=FALSE
- -DOGRE_BUILD_COMPONENT_JAVA=FALSE
- -DOGRE_BUILD_COMPONENT_VOLUME=FALSE
- -DOGRE_BUILD_COMPONENT_PAGING=FALSE
- -DOGRE_BUILD_COMPONENT_TERRAIN=FALSE
- -DOGRE_BUILD_COMPONENT_PROPERTY=FALSE
- -DOGRE_BUILD_COMPONENT_MESHLODGENERATOR=FALSE
- -DOGRE_BUILD_COMPONENT_HLMS=FALSE
- -DCMAKE_INSTALL_PREFIX=/usr/
source: https://github.com/OGRECave/ogre.git
source-tag: stable
source-depth: 1
build-packages:
- libxaw7-dev
- libzzip-dev
- libxrandr-dev
- libfreetype6-dev
- libxt-dev
- libgl1-mesa-dev
- libglu1-mesa-dev
stage-packages:
- libfreetype6
- libzzip-0-13
- libxaw7
- libxt6
stage:
- -usr/share/OGRE/Media/volumeTerrain
- -usr/share/OGRE/Media/materials
- -usr/share/OGRE/Media/models
- -usr/share/OGRE/Media/thumbnails
- -usr/share/OGRE/Media/packs/chiropteraDM.pk3
- -usr/share/OGRE/Media/packs/fresneldemo.zip
- -usr/share/OGRE/Media/packs/DamagedHelmet.zip
- -usr/share/OGRE/resources.cfg
cegui:
plugin: cmake
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/usr/
- -DCMAKE_CXX_FLAGS=-std=c++11
- -DCEGUI_BUILD_IMAGECODEC_STB=TRUE # we dont use it, silence cmake warning
- -DCEGUI_OPTION_DEFAULT_IMAGECODEC=OgreRenderer-0
- -DCEGUI_BUILD_XMLPARSER_RAPIDXML=TRUE
- -DCEGUI_SAMPLES_ENABLED=FALSE
source: https://bitbucket.org/cegui/cegui
source-type: hg
source-tag: v0-8
build-packages:
- librapidxml-dev
override-pull: |
snapcraftctl pull
sed -i -e 's/target_compile_features/\#target_compile_features/g' cegui/src/RendererModules/Ogre/CMakeLists.txt
after: [ogre]
opendungeons:
plugin: cmake
source: https://github.com/OpenDungeons/OpenDungeons.git
source-tag: development
source-depth: 1
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/usr/
- -DCMAKE_CXX_FLAGS=-std=c++11
override-build: |
snapcraftctl build
sed -i -e 's/\/.*\/stage//g' $SNAPCRAFT_PART_INSTALL/etc/opendungeons/plugins.cfg # drop stage prefix
build-packages:
- libsfml-dev
- libois-dev
- libboost-thread-dev
- libboost-locale-dev
- libboost-filesystem-dev
- libboost-program-options-dev
stage-packages:
- libsfml-window2.3v5
- libsfml-audio2.3v5
- libsfml-system2.3v5
- libsfml-network2.3v5
- libboost-thread1.58.0
- libboost-program-options1.58.0
- libboost-filesystem1.58.0
- libboost-system1.58.0
- libboost-locale1.58.0
- libois-1.3.0v5
- libpulse0
after: [ogre, cegui, desktop-glib-only]