summary refs log tree commit diff
path: root/pkgs/development/libraries/libpng/builder.sh
blob: d601bfa5fbf09653dda4ecb6d11c55343b154e52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

buildinputs="$zlib"
. $stdenv/setup || exit 1

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 "$zlib" > $out/propagated-build-inputs || exit 1