2003-07-12 15:04:41 +02:00
|
|
|
#! /bin/sh
|
|
|
|
|
2003-08-29 16:43:45 +02:00
|
|
|
envpkgs="$glib $atk $pango $tiff $jpeg $png $x11"
|
2003-07-25 22:43:25 +02:00
|
|
|
. $stdenv/setup || exit 1
|
2003-08-20 13:15:07 +02:00
|
|
|
export PATH=$pkgconfig/bin:$perl/bin:$PATH
|
2003-07-12 15:04:41 +02:00
|
|
|
|
2003-08-28 13:15:48 +02:00
|
|
|
# !!! abstraction problem: libtiff optionally needs libjpeg's headers.
|
|
|
|
# idem for libpng depending on zlib
|
|
|
|
export NIX_CFLAGS_COMPILE="-I$tiff/include -I$jpeg/include -I$png/include -I$zlib/include $NIX_CFLAGS_COMPILE"
|
|
|
|
|
2003-07-12 15:04:41 +02:00
|
|
|
tar xvfj $src || exit 1
|
|
|
|
cd gtk+-* || exit 1
|
2003-08-29 16:43:45 +02:00
|
|
|
./configure --prefix=$out --x-includes=$x11/include --x-libraries=$x11/lib \
|
2003-08-28 13:15:48 +02:00
|
|
|
--with-libtiff=$tiff || exit 1
|
2003-07-12 15:04:41 +02:00
|
|
|
make || exit 1
|
|
|
|
make install || exit 1
|
2003-07-26 22:38:23 +02:00
|
|
|
|
2003-07-12 15:04:41 +02:00
|
|
|
echo $envpkgs > $out/envpkgs || exit 1
|