~ salmonella-environment-setup (master) /system-setup/debian-wheezy.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-wheezy.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
 31### glfw3
 32
 33mkdir -p $tmpdir/glfw3
 34cd $tmpdir/glfw3
 35wget http://ufpr.dl.sourceforge.net/project/glfw/glfw/3.0.4/glfw-3.0.4.zip
 36unzip glfw-3.0.4.zip
 37cd glfw-3.0.4
 38cmake -D BUILD_SHARED_LIBS=1 .
 39make
 40sudo make install
 41
 42# Will install:
 43# -- Installing: /usr/local/include/GLFW
 44# -- Installing: /usr/local/include/GLFW/glfw3native.h
 45# -- Installing: /usr/local/include/GLFW/glfw3.h
 46# -- Installing: /usr/local/lib/cmake/glfw/glfwConfig.cmake
 47# -- Installing: /usr/local/lib/cmake/glfw/glfwConfigVersion.cmake
 48# -- Installing: /usr/local/lib/cmake/glfw/glfwTargets.cmake
 49# -- Installing: /usr/local/lib/cmake/glfw/glfwTargets-noconfig.cmake
 50# -- Installing: /usr/local/lib/pkgconfig/glfw3.pc
 51# -- Installing: /usr/local/lib/libglfw.so.3.0
 52# -- Installing: /usr/local/lib/libglfw.so.3
 53# -- Installing: /usr/local/lib/libglfw.so
 54
 55
 56### nanomsg
 57
 58mkdir -p $tmpdir/nanomsg
 59cd $tmpdir/nanomsg
 60wget http://download.nanomsg.org/nanomsg-0.4-beta.tar.gz
 61tar xzvf nanomsg-0.4-beta.tar.gz
 62cd nanomsg-0.4-beta
 63./configure --prefix=/usr/local
 64make
 65sudo make install
 66
 67
 68### libsass
 69
 70mkdir -p $tmpdir/libsass
 71cd $tmpdir/libsass
 72wget https://github.com/sass/libsass/archive/3.2.5.tar.gz -O libsass-3.2.5.tar.gz
 73tar xzvf libsass-3.2.5.tar.gz
 74cd libsass-3.2.5/
 75make
 76sudo make install install-shared
 77
 78
 79### lmdb
 80
 81mkdir -p $tmpdir/lmdb
 82cd $tmpdir/lmdb
 83git clone https://github.com/LMDB/lmdb.git
 84cd lmdb/libraries/liblmdb
 85make
 86sudo make install
 87
 88
 89### ola
 90echo 'deb   http://apt.openlighting.org/debian  wheezy main' >> /etc/apt/sources.list
 91sudo apt-get update
 92sudo apt-get install -y ola-dev
 93
 94
 95### libnova
 96cd $tmpdir
 97git clone git://git.code.sf.net/p/libnova/libnova
 98cd libnova
 99./autogen.sh
100./configure
101make
102sudo make install
103
104
105### libsodium
106cd $tmpdir
107git clone https://github.com/jedisct1/libsodium.git
108cd libsodium
109git checkout 1.0.11
110./autogen.sh
111./configure
112make
113sudo make install
114
115
116### Finishing
117sudo ldconfig
Trap