nixpkgs/pkgs/libpng/libpng-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

19 lines
440 B
Bash
Executable file

#! /bin/sh
envpkgs="$zlib"
. $stdenv/setup || exit 1
export NIX_CFLAGS_COMPILE="-I$zlib/include $NIX_CFLAGS_COMPILE"
tar xvfj $src || exit 1
cd libpng-* || exit 1
make -f scripts/makefile.linux || exit 1
mkdir $out || exit 1
mkdir $out/bin || exit 1
mkdir $out/lib || exit 1
mkdir $out/include || exit 1
make -f scripts/makefile.linux install prefix=$out || exit 1
strip -S $out/lib/*.a || exit 1
echo $envpkgs > $out/envpkgs || exit 1