Tj Holowaychuk
14 years ago
1 changed files with 44 additions and 0 deletions
@ -0,0 +1,44 @@ |
|||
#!/bin/sh |
|||
|
|||
PKG_CONFIG="http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz" |
|||
PIXMAN="http://www.cairographics.org/releases/pixman-0.20.0.tar.gz" |
|||
CAIRO="http://cairographics.org/releases/cairo-1.10.0.tar.gz" |
|||
LIBPNG="ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.40.tar.gz" |
|||
|
|||
require() { |
|||
echo "... checking for \x1b[33m$1\x1b[0m" |
|||
if test `which $1`; then |
|||
echo "... \x1b[32mfound\x1b[0m" |
|||
else |
|||
echo "... \x1b[31mnot found\x1b[0m" |
|||
exit 1 |
|||
fi |
|||
} |
|||
|
|||
fetch() { |
|||
local tarball=`basename $1` |
|||
echo "... downloading $tarball" |
|||
local dir=${tarball/.tar.gz/} |
|||
curl -# -L $1 -o $tarball \ |
|||
&& echo "... unpacking" \ |
|||
&& tar -zxf $tarball \ |
|||
&& echo "... removing tarball" \ |
|||
&& rm -fr $tarball \ |
|||
&& install $dir |
|||
} |
|||
|
|||
install() { |
|||
local dir=$1 |
|||
echo "... installing $1" |
|||
# cd $dir \ |
|||
# && ./configure --disable-dependency-tracking \ |
|||
# && make \ |
|||
# && make install |
|||
} |
|||
|
|||
require curl |
|||
require tar |
|||
test `which pkg-config` || fetch $PKG_CONFIG |
|||
require 'pkg-config' |
|||
fetch $PIXMAN |
|||
fetch $CAIRO |
Loading…
Reference in new issue