nixpkgs/pkgs/development/libraries/libjpeg/builder.sh
Eelco Dolstra 0f10222e4e * Merge libjpeg and libjpeg-static.
svn path=/nixpkgs/branches/stdenv-updates/; revision=15275
2009-04-23 13:26:14 +00:00

28 lines
509 B
Bash

source $stdenv/setup
preConfigure=preConfigure
preConfigure() {
# Workarounds for the ancient libtool shipped by libjpeg.
ln -s $libtool/bin/libtool .
cp $libtool/share/libtool/config.guess .
cp $libtool/share/libtool/config.sub .
}
preInstall=preInstall
preInstall() {
mkdir $out
mkdir $out/bin
mkdir $out/lib
mkdir $out/include
mkdir $out/man
mkdir $out/man/man1
}
patchPhase=patchPhase
patchPhase() {
for i in $patches; do
patch < $i
done
}
genericBuild