* Merge libjpeg and libjpeg-static.
svn path=/nixpkgs/branches/stdenv-updates/; revision=15275
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
source $stdenv/setup
|
||||
|
||||
configureFlags="--enable-shared"
|
||||
|
||||
preConfigure=preConfigure
|
||||
preConfigure() {
|
||||
# Workarounds for the ancient libtool shipped by libjpeg.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user