Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 66 lines (59 sloc) 1.669 kb
edb8e1f @tj Added simple install script
tj authored
1 #!/bin/sh
2
c451997 @niftylettuce Updated dependencies and added one liner for install on OSX
niftylettuce authored
3 PKG_CONFIG="http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz"
4 PIXMAN="http://www.cairographics.org/releases/pixman-0.32.4.tar.gz"
5 CAIRO="http://cairographics.org/releases/cairo-1.12.16.tar.xz"
40593df @jviereck Update install file to fetch freetype library as well
jviereck authored
6 FREETYPE="http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz"
c451997 @niftylettuce Updated dependencies and added one liner for install on OSX
niftylettuce authored
7 LIBPNG="http://downloads.sourceforge.net/project/libpng/libpng16/1.6.10/libpng-1.6.10.tar.gz"
b368cb5 @TooTallNate install: use an even older version of giflib (v4.1.6)
TooTallNate authored
8 GIF_LIB="https://downloads.sourceforge.net/project/giflib/giflib-4.x/giflib-4.1.6/giflib-4.1.6.tar.gz"
a713911 @jviereck Revert build scripts and disable pango for now
jviereck authored
9 PREFIX=${1-/usr/local}
edb8e1f @tj Added simple install script
tj authored
10
11 require() {
5c0806e @tj Removed ansi escape sequences from install script
tj authored
12 echo "... checking for $1"
edb8e1f @tj Added simple install script
tj authored
13 if test `which $1`; then
5c0806e @tj Removed ansi escape sequences from install script
tj authored
14 echo "... found"
edb8e1f @tj Added simple install script
tj authored
15 else
5c0806e @tj Removed ansi escape sequences from install script
tj authored
16 echo "... not found"
edb8e1f @tj Added simple install script
tj authored
17 exit 1
18 fi
19 }
20
21 fetch() {
22 local tarball=`basename $1`
23 echo "... downloading $tarball"
609a551 @TooTallNate install: use more compatible sh syntax
TooTallNate authored
24 local dir=`basename $tarball .tar.gz`
edb8e1f @tj Added simple install script
tj authored
25 curl -# -L $1 -o $tarball \
26 && echo "... unpacking" \
27 && tar -zxf $tarball \
28 && echo "... removing tarball" \
29 && rm -fr $tarball \
30 && install $dir
31 }
32
df8c181 @jviereck New version of cairo have .xz file format
jviereck authored
33 fetch_xz() {
34 local tarball=`basename $1`
a713911 @jviereck Revert build scripts and disable pango for now
jviereck authored
35 echo "... downloading $tarball"
609a551 @TooTallNate install: use more compatible sh syntax
TooTallNate authored
36 local dir=`basename $tarball .tar.xz`
df8c181 @jviereck New version of cairo have .xz file format
jviereck authored
37 curl -# -L $1 -o $tarball \
38 && echo "... unpacking" \
39 && tar -xJf $tarball \
a713911 @jviereck Revert build scripts and disable pango for now
jviereck authored
40 && echo "... removing tarball" \
41 && rm -fr $tarball \
df8c181 @jviereck New version of cairo have .xz file format
jviereck authored
42 && install $dir
43 }
44
edb8e1f @tj Added simple install script
tj authored
45 install() {
46 local dir=$1
47 echo "... installing $1"
074c39c @tj Fixed install script
tj authored
48 cd $dir \
19b1c01 @tj Added install prefix
tj authored
49 && ./configure --disable-dependency-tracking --prefix=$PREFIX \
074c39c @tj Fixed install script
tj authored
50 && make \
a713911 @jviereck Revert build scripts and disable pango for now
jviereck authored
51 && make install \
52 && echo "... removing $dir" \
53 && cd .. && rm -fr $dir
edb8e1f @tj Added simple install script
tj authored
54 }
55
19b1c01 @tj Added install prefix
tj authored
56 echo "... installing to $PREFIX"
edb8e1f @tj Added simple install script
tj authored
57 require curl
58 require tar
59 test `which pkg-config` || fetch $PKG_CONFIG
60 require 'pkg-config'
beba827 @jviereck Tune intstall and make node-gyp expect to have build in sub directory
jviereck authored
61 fetch $LIBPNG
8853f81 @TooTallNate install: install `giflib`
TooTallNate authored
62 fetch $GIF_LIB
beba827 @jviereck Tune intstall and make node-gyp expect to have build in sub directory
jviereck authored
63 fetch $FREETYPE
edb8e1f @tj Added simple install script
tj authored
64 fetch $PIXMAN
df8c181 @jviereck New version of cairo have .xz file format
jviereck authored
65 fetch_xz $CAIRO
Something went wrong with that request. Please try again.