* Build splashutils properly.

svn path=/nixpkgs/trunk/; revision=7134
This commit is contained in:
Eelco Dolstra
2006-11-25 23:41:53 +00:00
parent 66b646d7e7
commit 88f1d8af8e
6 changed files with 132 additions and 59 deletions

View File

@@ -0,0 +1,28 @@
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

View File

@@ -0,0 +1,27 @@
{stdenv, fetchurl, libtool, static ? false}:
stdenv.mkDerivation {
name = "libjpeg-6b";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/jpegsrc.v6b.tar.gz;
md5 = "dbd5f3b47ed13132f04c685d608a7547";
};
inherit libtool;
configureFlags = "--enable-shared" +
(if static then " --enable-static" else "");
# Required for building of dynamic libraries on Darwin.
patches = [
(fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/patch-ltconfig;
md5 = "e6725fa4a09aa1de4ca75343fd0f61d5";
})
(fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/patch-ltmain.sh;
#md5 = "489986ad8e7a93aef036766b25f321d5";
md5 = "092a12aeb0c386dd7dae059109d950ba";
})
];
}