|
|
@ -1,10 +1,10 @@ |
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool |
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool |
|
|
|
, threadingSupport ? true # multi-threading |
|
|
|
, threadingSupport ? true # multi-threading |
|
|
|
, openglSupport ? false, freeglut ? null, libGL ? null, libGLU ? null # OpenGL (required for vwebp) |
|
|
|
, openglSupport ? false, freeglut, libGL, libGLU # OpenGL (required for vwebp) |
|
|
|
, pngSupport ? true, libpng ? null # PNG image format |
|
|
|
, pngSupport ? true, libpng # PNG image format |
|
|
|
, jpegSupport ? true, libjpeg ? null # JPEG image format |
|
|
|
, jpegSupport ? true, libjpeg # JPEG image format |
|
|
|
, tiffSupport ? true, libtiff ? null # TIFF image format |
|
|
|
, tiffSupport ? true, libtiff # TIFF image format |
|
|
|
, gifSupport ? true, giflib ? null # GIF image format |
|
|
|
, gifSupport ? true, giflib # GIF image format |
|
|
|
#, wicSupport ? true # Windows Imaging Component |
|
|
|
#, wicSupport ? true # Windows Imaging Component |
|
|
|
, alignedSupport ? false # Force aligned memory operations |
|
|
|
, alignedSupport ? false # Force aligned memory operations |
|
|
|
, swap16bitcspSupport ? false # Byte swap for 16bit color spaces |
|
|
|
, swap16bitcspSupport ? false # Byte swap for 16bit color spaces |
|
|
@ -14,12 +14,6 @@ |
|
|
|
, libwebpdecoderSupport ? true # Build libwebpdecoder |
|
|
|
, libwebpdecoderSupport ? true # Build libwebpdecoder |
|
|
|
}: |
|
|
|
}: |
|
|
|
|
|
|
|
|
|
|
|
assert openglSupport -> freeglut != null && libGL != null && libGLU != null; |
|
|
|
|
|
|
|
assert pngSupport -> (libpng != null); |
|
|
|
|
|
|
|
assert jpegSupport -> (libjpeg != null); |
|
|
|
|
|
|
|
assert tiffSupport -> (libtiff != null); |
|
|
|
|
|
|
|
assert gifSupport -> (giflib != null); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let |
|
|
|
let |
|
|
|
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}"; |
|
|
|
mkFlag = optSet: flag: if optSet then "--enable-${flag}" else "--disable-${flag}"; |
|
|
|
in |
|
|
|
in |
|
|
|