|
@ -4,8 +4,7 @@ PKG_CONFIG="http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz" |
|
|
PIXMAN="http://www.cairographics.org/releases/pixman-0.28.0.tar.gz" |
|
|
PIXMAN="http://www.cairographics.org/releases/pixman-0.28.0.tar.gz" |
|
|
CAIRO="http://cairographics.org/releases/cairo-1.12.8.tar.xz" |
|
|
CAIRO="http://cairographics.org/releases/cairo-1.12.8.tar.xz" |
|
|
FREETYPE="http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz" |
|
|
FREETYPE="http://download.savannah.gnu.org/releases/freetype/freetype-2.4.10.tar.gz" |
|
|
LIBPNG="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.40.tar.gz" |
|
|
LIBPNG="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.5.13.tar.gz" |
|
|
PREFIX=${1-/usr/local} |
|
|
|
|
|
|
|
|
|
|
|
require() { |
|
|
require() { |
|
|
echo "... checking for $1" |
|
|
echo "... checking for $1" |
|
@ -31,13 +30,11 @@ fetch() { |
|
|
|
|
|
|
|
|
fetch_xz() { |
|
|
fetch_xz() { |
|
|
local tarball=`basename $1` |
|
|
local tarball=`basename $1` |
|
|
echo "... downloading $tarball" |
|
|
|
|
|
local dir=${tarball/.tar.xz/} |
|
|
local dir=${tarball/.tar.xz/} |
|
|
|
|
|
echo "... downloading $tarball"; |
|
|
curl -# -L $1 -o $tarball \ |
|
|
curl -# -L $1 -o $tarball \ |
|
|
&& echo "... unpacking" \ |
|
|
&& echo "... unpacking" \ |
|
|
&& tar -xJf $tarball \ |
|
|
&& tar -xJf $tarball \ |
|
|
&& echo "... removing tarball" \ |
|
|
|
|
|
&& rm -fr $tarball \ |
|
|
|
|
|
&& install $dir |
|
|
&& install $dir |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -47,16 +44,20 @@ install() { |
|
|
cd $dir \ |
|
|
cd $dir \ |
|
|
&& ./configure --disable-dependency-tracking --prefix=$PREFIX \ |
|
|
&& ./configure --disable-dependency-tracking --prefix=$PREFIX \ |
|
|
&& make \ |
|
|
&& make \ |
|
|
&& make install \ |
|
|
&& make install |
|
|
&& echo "... removing $dir" \ |
|
|
|
|
|
&& cd .. && rm -fr $dir |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mkdir -p build_cairo |
|
|
|
|
|
PREFIX=$(cd "$(dirname "$0")"; pwd)/build_cairo |
|
|
|
|
|
cd build_cairo |
|
|
|
|
|
|
|
|
echo "... installing to $PREFIX" |
|
|
echo "... installing to $PREFIX" |
|
|
require curl |
|
|
require curl |
|
|
require tar |
|
|
require tar |
|
|
test `which pkg-config` || fetch $PKG_CONFIG |
|
|
test `which pkg-config` || fetch $PKG_CONFIG |
|
|
require 'pkg-config' |
|
|
require 'pkg-config' |
|
|
|
|
|
fetch $LIBPNG |
|
|
|
|
|
fetch $FREETYPE |
|
|
fetch $FREETYPE |
|
|
fetch $FREETYPE |
|
|
fetch $PIXMAN |
|
|
fetch $PIXMAN |
|
|
fetch_xz $CAIRO |
|
|
fetch_xz $CAIRO |
|
|