-
Notifications
You must be signed in to change notification settings - Fork 37
/
snapcraft.yaml
152 lines (142 loc) · 4.37 KB
/
snapcraft.yaml
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: possumwood
version: '0.1+git'
summary: Possumwood is a graph-based procedural authoring sandbox.
description: |
Possumwood is a graph-based procedural authoring tool, in concept not dissimilar to popular CG
packages like Houdini, Blender or Maya. It is intended to serve as a sandbox for computer graphics
algorithms and libraries, providing a user-friendly and coding-free UI for libraries that would
otherwise be inaccessible for an average user.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
base: core18
architectures:
- build-on: amd64
run-on: amd64
build-packages:
- gcc
- libc6-dev
- libboost-filesystem1.65-dev
- libboost-serialization1.65-dev
- libboost-regex1.65-dev
- libboost-thread1.65-dev
- libboost-test1.65-dev
- libboost-system1.65-dev
- libboost-program-options1.65-dev
- libopenexr-dev
- libqt5opengl5-dev
- freeglut3-dev
- libgmp-dev
- libmpfr-dev
- libeigen3-dev
- libxi-dev
- libxmu-dev
- libluabind-dev
- libglew-dev
- libglfw3-dev
- libpng-dev
- libtbb-dev
- software-properties-common
- dirmngr
- libjemalloc-dev
- nlohmann-json-dev
apps:
possumwood:
command: desktop-launch possumwood
plugs: [opengl, home, desktop, gsettings, wayland, x11]
environment:
LD_LIBRARY_PATH: $LD_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu/blas:$SNAP/usr/lib/x86_64-linux-gnu/lapack
run-bash:
command: desktop-launch bash
plugs: [opengl, home, desktop, gsettings, wayland, x11]
plugs:
gtk-3-themes:
interface: content
target: $SNAP/share/themes
default-provider: gtk-common-themes:gtk-3-themes
icon-themes:
interface: content
target: $SNAP/share/icons
default-provider: gtk-common-themes:icon-themes
sound-themes:
interface: content
target: $SNAP/share/sounds
default-provider: gtk-common-themes:sounds-themes
parts:
add-ppa:
plugin: nil
override-pull: |
echo "deb http://ppa.launchpad.net/cgi-daily-devs/cgi-daily/ubuntu bionic main" | tee /etc/apt/sources.list.d/cgi-daily-devs-ubuntu-cgi-daily-bionic.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 76D7D91361199D07AA54B3C8C5CA855DF9AF9AC9
apt update
apt upgrade -yy
yes | apt install libopencv-daily-dev libopenimageio-daily-dev libcgal-daily-dev
desktop-qt5:
source-type: git
source: https://github.com/ubuntu/snapcraft-desktop-helpers
source-subdir: qt
plugin: make
make-parameters: ["FLAVOR=qt5"]
build-packages:
- build-essential
- qtbase5-dev
- dpkg-dev
stage-packages:
- libxkbcommon0
- ttf-ubuntu-font-family
- dmz-cursor-theme
- light-themes
- adwaita-icon-theme
- gnome-themes-standard
- shared-mime-info
- libqt5gui5
- libgdk-pixbuf2.0-0
- libqt5svg5 # for loading icon themes which are svg
- try: [appmenu-qt5] # not available on core18
- locales-all
- xdg-user-dirs
- fcitx-frontend-qt5
core:
after: [add-ppa]
plugin: cmake
source: .
configflags:
- -DCMAKE_BUILD_TYPE=Release
- -DCONF_PATH='$SNAP/share/possumwood/possumwood.conf'
- -DMAKE_CONF_FILE=OFF
stage-packages:
- libboost-filesystem1.65.1
- libboost-serialization1.65.1
- libboost-system1.65.1
- libboost-regex1.65.1
- libboost-thread1.65.1
- libboost-test1.65.1
- libboost-program-options1.65.1
- libarmadillo8
- libcharls1
- libgdal20
- libglew2.0
- libglfw3
- libglu1
- libilmbase12
- libluabind0.9.1v5
- libogdi3.2
- libopencolorio1v5
- libopencv-core3.2
- libopencv-imgcodecs3.2
- libopencv-imgproc3.2
- libopencv-videoio3.2
- libraw1394-11
- libraw16
- libtbb2
- libusb-1.0-0
- libxinerama1
- libxrandr2
#- libopencv-daily
#- libopenimageio-daily
#- libcgal-daily
config:
plugin: nil
after: [core]
override-build: |
printf 'EXAMPLES $SNAP/share/possumwood/examples\nTOOLBARS $SNAP/share/possumwood/toolbars\nPLUGINS $SNAP/lib/possumwood/plugins\n' > $SNAPCRAFT_STAGE/share/possumwood/possumwood.conf
mkdir -p $SNAPCRAFT_PART_INSTALL/share/possumwood && cp -p $SNAPCRAFT_STAGE/share/possumwood/possumwood.conf $SNAPCRAFT_PART_INSTALL/share/possumwood