/
build_rrdtool-1.4.5.sh
executable file
·57 lines (41 loc) · 1.92 KB
/
build_rrdtool-1.4.5.sh
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
#!/bin/bash
. `dirname $0`/sdbs.inc
if [ x`which pkg-config` = x ]; then
echo "Cannot find pkg-config in PATH. Aborting."
exit 1
fi
# make our own zlib.
# Other packages do not use pkg-config for finding zlib, so we
# have to set LDFLAGS and CPPFLAGS explicitly
if prepare http://switch.dl.sourceforge.net/project/libpng/zlib/1.2.5/ \
zlib-1.2.5.tar.gz; then
CFLAGS="-O3 -fPIC" ./configure --prefix=$PREFIX
CFLAGS="-O3 -fPIC" make install
touch $WORKDIR/zlib-1.2.5.tar.gz.ok
fi
simplebuild http://ftp.gnu.org/pub/gnu/gettext/ gettext-0.18.1.1.tar.gz \
CFLAGS="-O3 -fPIC" --disable-java
simplebuild http://xmlsoft.org/sources/ libxml2-2.7.8.tar.gz --without-python
simplebuild \
http://switch.dl.sourceforge.net/project/libpng/libpng14/older-releases/1.4.9/ \
libpng-1.4.9.tar.gz CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib"
simplebuild http://switch.dl.sourceforge.net/project/expat/expat/2.0.1/ \
expat-2.0.1.tar.gz
simplebuild http://download.savannah.gnu.org/releases/freetype/ \
freetype-2.4.6.tar.gz CFLAGS="-O3 -fPIC"
simplebuild http://www.freedesktop.org/software/fontconfig/release/ \
fontconfig-2.8.0.tar.gz CFLAGS="-O3 -fPIC"
simplebuild http://cairographics.org/releases/ pixman-0.22.2.tar.gz \
CFLAGS="-O3 -fPIC" \
--disable-static-testprogs \
--disable-gtk
simplebuild http://cairographics.org/releases/ cairo-1.10.2.tar.gz \
--enable-xlib=no --enable-xlib-render=no --enable-win32=no \
CFLAGS="-O3 -fPIC" CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib"
simplebuild http://ftp.gnome.org/pub/gnome/sources/glib/2.28/ \
glib-2.28.7.tar.gz CFLAGS="-O3 -fPIC" \
CPPFLAGS="-I${PREFIX}/include" LDFLAGS="-L${PREFIX}/lib"
simplebuild http://ftp.gnome.org/pub/GNOME/sources/pango/1.28/ \
pango-1.28.4.tar.gz --without-x CFLAGS="-O3 -fPIC"
simplebuild http://oss.oetiker.ch/rrdtool/pub/ rrdtool-1.4.5.tar.gz \
--with-perl-options="PREFIX=$PREFIX LIB=$PREFIX/lib/perl5"