* libjpeg fixes on Mac OS X.
svn path=/nixpkgs/trunk/; revision=5711
This commit is contained in:
@@ -2,6 +2,15 @@ source $stdenv/setup
|
||||
|
||||
configureFlags="--enable-shared"
|
||||
|
||||
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
|
||||
@@ -10,6 +19,12 @@ preInstall() {
|
||||
mkdir $out/man
|
||||
mkdir $out/man/man1
|
||||
}
|
||||
preInstall=preInstall
|
||||
|
||||
patchPhase=patchPhase
|
||||
patchPhase() {
|
||||
for i in $patches; do
|
||||
patch < $i
|
||||
done
|
||||
}
|
||||
|
||||
genericBuild
|
||||
Reference in New Issue
Block a user