* Merge libjpeg and libjpeg-static.

svn path=/nixpkgs/branches/stdenv-updates/; revision=15275
This commit is contained in:
Eelco Dolstra
2009-04-23 13:26:14 +00:00
parent 6e32a4cea8
commit 0f10222e4e
5 changed files with 8 additions and 62 deletions

View File

@@ -1,7 +1,5 @@
source $stdenv/setup
configureFlags="--enable-shared"
preConfigure=preConfigure
preConfigure() {
# Workarounds for the ancient libtool shipped by libjpeg.

View File

@@ -1,14 +1,19 @@
{stdenv, fetchurl, libtool}:
{stdenv, fetchurl, libtool, static ? false}:
stdenv.mkDerivation {
name = "libjpeg-6b";
builder = ./builder.sh;
src = fetchurl {
url = http://www.ijg.org/files/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 {