9f91684adb
svn path=/nixpkgs/trunk/; revision=366
19 lines
440 B
Bash
Executable file
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
|