nixpkgs/pkgs/libtiff/libtiff-build.sh
Eelco Dolstra 9f91684adb * A bunch of image file format libraries required by gtk.
svn path=/nixpkgs/trunk/; revision=366
2003-08-27 15:17:15 +00:00

17 lines
374 B
Bash
Executable file

#! /bin/sh
envpkgs="$zlib $jpeg"
. $stdenv/setup || exit 1
tar xvfz $src || exit 1
cd tiff-* || exit 1
./configure --prefix=$out --with-DIR_MAN=$out/man \
--with-ZIP --with-JPEG \
--with-DIRS_LIBINC="$zlib/include $jpeg/include" || exit 1
make || exit 1
mkdir $out || exit 1
make install || exit 1
strip -S $out/lib/*.a || exit 1
echo $envpkgs > $out/envpkgs || exit 1