d74192ee38
svn path=/nixpkgs/trunk/; revision=823
18 lines
322 B
Bash
Executable file
18 lines
322 B
Bash
Executable file
#! /bin/sh -e
|
|
|
|
buildinputs="$zlib"
|
|
. $stdenv/setup
|
|
|
|
tar xvfj $src
|
|
cd libpng-*
|
|
make -f scripts/makefile.linux
|
|
mkdir $out
|
|
mkdir $out/bin
|
|
mkdir $out/lib
|
|
mkdir $out/include
|
|
make -f scripts/makefile.linux install prefix=$out
|
|
strip -S $out/lib/*.a
|
|
|
|
mkdir $out/nix-support
|
|
echo "$zlib" > $out/nix-support/propagated-build-inputs
|