~ salmonella-environment-setup (master) /system-setup/debian-jessie.sh


 1#! /bin/sh
 2
 3## Quick&dirty script to install libraries required by eggs.
 4
 5set -ex
 6
 7anchor=$(readlink -f $(dirname "$0"))
 8. "$anchor/debian-common.sh"
 9
10to_install="\
11  packages/debian-jessie.sh   \
12  agar.sh                     \
13  bvspis.sh                   \
14  cmark.sh                    \
15  cryptlib.sh                 \
16  epeg.sh                     \
17  iup.sh                      \
18  canvas_draw.sh              \
19  kiwi.sh                     \
20  libgit2.sh                  \
21  proccpuinfo.sh              \
22  tcc.sh                      \
23"
24
25for script in $to_install; do
26    cd "$tmpdir"
27    . "$installers_dir/$script"
28done
29
30### glfw3
31
32mkdir -p $tmpdir/glfw3
33cd $tmpdir/glfw3
34wget http://ufpr.dl.sourceforge.net/project/glfw/glfw/3.0.4/glfw-3.0.4.zip
35unzip glfw-3.0.4.zip
36cd glfw-3.0.4
37cmake -D BUILD_SHARED_LIBS=1 .
38make
39sudo make install
40
41# Will install:
42# -- Installing: /usr/local/include/GLFW
43# -- Installing: /usr/local/include/GLFW/glfw3native.h
44# -- Installing: /usr/local/include/GLFW/glfw3.h
45# -- Installing: /usr/local/lib/cmake/glfw/glfwConfig.cmake
46# -- Installing: /usr/local/lib/cmake/glfw/glfwConfigVersion.cmake
47# -- Installing: /usr/local/lib/cmake/glfw/glfwTargets.cmake
48# -- Installing: /usr/local/lib/cmake/glfw/glfwTargets-noconfig.cmake
49# -- Installing: /usr/local/lib/pkgconfig/glfw3.pc
50# -- Installing: /usr/local/lib/libglfw.so.3.0
51# -- Installing: /usr/local/lib/libglfw.so.3
52# -- Installing: /usr/local/lib/libglfw.so
53
54
55### nanomsg
56
57mkdir -p $tmpdir/nanomsg
58cd $tmpdir/nanomsg
59wget http://download.nanomsg.org/nanomsg-0.4-beta.tar.gz
60tar xzvf nanomsg-0.4-beta.tar.gz
61cd nanomsg-0.4-beta
62./configure --prefix=/usr/local
63make
64sudo make install
65
66### libsass
67
68mkdir -p $tmpdir/libsass
69cd $tmpdir/libsass
70wget https://github.com/sass/libsass/archive/3.2.5.tar.gz -O libsass-3.2.5.tar.gz
71tar xzvf libsass-3.2.5.tar.gz
72cd libsass-3.2.5/
73make
74sudo make install install-shared
75
76
77### Finishing
78sudo ldconfig
Trap