2006-11-26 00:41:53 +01:00
|
|
|
{stdenv, fetchurl, libtool, static ? false}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "libjpeg-6b";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2008-11-14 17:57:19 +01:00
|
|
|
url = http://nixos.org/tarballs/jpegsrc.v6b.tar.gz;
|
2006-11-26 00:41:53 +01:00
|
|
|
md5 = "dbd5f3b47ed13132f04c685d608a7547";
|
|
|
|
};
|
|
|
|
inherit libtool;
|
|
|
|
|
|
|
|
configureFlags = "--enable-shared" +
|
|
|
|
(if static then " --enable-static" else "");
|
|
|
|
|
|
|
|
# Required for building of dynamic libraries on Darwin.
|
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
2008-11-14 17:57:19 +01:00
|
|
|
url = http://nixos.org/tarballs/patch-ltconfig;
|
2006-11-26 00:41:53 +01:00
|
|
|
md5 = "e6725fa4a09aa1de4ca75343fd0f61d5";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
2008-11-14 17:57:19 +01:00
|
|
|
url = http://nixos.org/tarballs/patch-ltmain.sh;
|
2006-11-26 00:41:53 +01:00
|
|
|
#md5 = "489986ad8e7a93aef036766b25f321d5";
|
|
|
|
md5 = "092a12aeb0c386dd7dae059109d950ba";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|