Sibi napisal:
#!/bin/sh
# sciaga, instaluje i kompiluje RRDTOOL
BUILD_DIR=/tmp/rrdbuild
INSTALL_DIR=/usr/local/rrdtool-1.2.11
mkdir -p $BUILD_DIR
# przygotowanei cgilib
cd $BUILD_DIR
wget
http://people.ee.ethz.ch/oetiker/webtoo ... 0.5.tar.gz
tar zxf cgilib-0.5.tar.gz
cd cgilib-0.5
make CC=gcc CFLAGS="-O3 -fPIC -I."
mkdir -p $BUILD_DIR/lb/include
cp *.h $BUILD_DIR/lb/include
mkdir -p $BUILD_DIR/lb/lib
cp libcgi* $BUILD_DIR/lb/lib
# przygotowanie zlib
cd $BUILD_DIR
wget
http://people.ee.ethz.ch/oetiker/webtoo ... 2.2.tar.gz
tar zxf zlib-1.2.2.tar.gz
cd zlib-1.2.2
env CFLAGS="-O3 -fPIC" ./configure --prefix=$BUILD_DIR/lb
make
make install
# przygotowanie libpng
cd $BUILD_DIR
wget
http://people.ee.ethz.ch/oetiker/webtoo ... fig.tar.gz
tar zxvf libpng-1.2.8-config.tar.gz
cd libpng-1.2.8-config
env CPPFLAGS="-I$BUILD_DIR/lb/include" LDFLAGS="-L$BUILD_DIR/lb/lib" CFLAGS="-O3 -fPIC" \
./configure --disable-shared --prefix=$BUILD_DIR/lb
make
make install
# przygotowanie freetype (na nnd juz powinno byc)
cd $BUILD_DIR
wget
http://people.ee.ethz.ch/oetiker/webtoo ... 1.9.tar.gz
tar zxvf freetype-2.1.9.tar.gz
cd freetype-2.1.9
env CPPFLAGS="-I$BUILD_DIR/lb/include" LDFLAGS="-L$BUILD_DIR/lb/lib" CFLAGS="-O3 -fPIC" \
./configure --disable-shared --prefix=$BUILD_DIR/lb
make
make install
# przygotowanie libart
cd $BUILD_DIR
wget
http://people.ee.ethz.ch/oetiker/webtoo ... .17.tar.gz
tar zxvf libart_lgpl-2.3.17.tar.gz
cd libart_lgpl-2.3.17
env CFLAGS="-O3 -fPIC" ./configure --disable-shared --prefix=$BUILD_DIR/lb
make
make install
# poniewaz powyzsze bibloteki sa statyczne, nalezy zrobic
ranlib $BUILD_DIR/lb/lib/*.a
IR=-I$BUILD_DIR/lb/include
CPPFLAGS="$IR $IR/libart-2.0 $IR/freetype2 $IR/libpng"
LDFLAGS="-L$BUILD_DIR/lb/lib"
CFLAGS=-O3
export CPPFLAGS LDFLAGS CFLAGS
# Robienie wlasciwego RRDTOOLa
cd $BUILD_DIR
wget
http://people.ee.ethz.ch/oetiker/webtoo ... .11.tar.gz #sciagniecie rrdtool najnowszego
tar zxf rrdtool-1.2.11.tar.gz#rozpakowanie
cd rrdtool-1.2.11# do katalogu..
./configure --prefix=$INSTALL_DIR --disable-python --disable-tcl
make clean
make
make install
ja sprawdzilem i dziala.
Czy moglby ktos to ladnie podzielic i zapaczkowac??
nie wiem czy jest jakas roznica pomiedzy:
freetype a freetype2 (to jest w NND)
dalej w NND jest juz:
zlib
libpng
no i freetype??