nixpkgs/pkgs/libpng/libpng-build.sh

19 lines
440 B
Bash
Raw Normal View History

#! /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