2009-04-23 14:26:14 +01:00
|
|
|
{stdenv, fetchurl, libtool, static ? false}:
|
2006-07-14 16:59:30 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2003-11-06 15:24:19 +00:00
|
|
|
name = "libjpeg-6b";
|
2009-04-23 14:26:14 +01:00
|
|
|
|
2003-11-06 15:24:19 +00:00
|
|
|
builder = ./builder.sh;
|
2009-04-23 14:26:14 +01:00
|
|
|
|
2003-11-06 15:24:19 +00:00
|
|
|
src = fetchurl {
|
2007-08-24 13:32:36 +01:00
|
|
|
url = http://www.ijg.org/files/jpegsrc.v6b.tar.gz;
|
2003-11-06 15:24:19 +00:00
|
|
|
md5 = "dbd5f3b47ed13132f04c685d608a7547";
|
|
|
|
};
|
2009-04-23 14:26:14 +01:00
|
|
|
|
2006-07-14 16:59:30 +01:00
|
|
|
inherit libtool;
|
|
|
|
|
2009-04-23 14:26:14 +01:00
|
|
|
configureFlags = "--enable-shared ${if static then " --enable-static" else ""}";
|
|
|
|
|
2006-07-14 16:59:30 +01:00
|
|
|
# Required for building of dynamic libraries on Darwin.
|
|
|
|
patches = [
|
|
|
|
(fetchurl {
|
2007-08-24 13:32:36 +01:00
|
|
|
url = http://svn.macports.org/repository/macports/trunk/dports/graphics/jpeg/files/patch-ltconfig;
|
2006-07-14 16:59:30 +01:00
|
|
|
md5 = "e6725fa4a09aa1de4ca75343fd0f61d5";
|
|
|
|
})
|
|
|
|
(fetchurl {
|
2007-08-24 13:32:36 +01:00
|
|
|
url = http://svn.macports.org/repository/macports/trunk/dports/graphics/jpeg/files/patch-ltmain.sh;
|
2006-09-01 18:28:25 +01:00
|
|
|
#md5 = "489986ad8e7a93aef036766b25f321d5";
|
|
|
|
md5 = "092a12aeb0c386dd7dae059109d950ba";
|
2006-07-14 16:59:30 +01:00
|
|
|
})
|
|
|
|
];
|
2003-11-06 15:24:19 +00:00
|
|
|
}
|