libextractor: allow disabling video support.
This commit is contained in:
parent
6163742ea4
commit
b4e0565a86
@ -1,8 +1,10 @@
|
||||
{ fetchurl, stdenv, libtool, gettext, zlib, bzip2, flac, libvorbis, libmpeg2
|
||||
, ffmpeg, exiv2, libgsf, rpm, pkgconfig
|
||||
, gtkSupport ? true, glib ? null, gtk ? null}:
|
||||
{ fetchurl, stdenv, libtool, gettext, zlib, bzip2, flac, libvorbis
|
||||
, exiv2, libgsf, rpm, pkgconfig
|
||||
, gtkSupport ? true, glib ? null, gtk ? null
|
||||
, videoSupport ? true, ffmpeg ? null, libmpeg2 ? null}:
|
||||
|
||||
assert gtkSupport -> glib != null && gtk != null;
|
||||
assert videoSupport -> ffmpeg != null && libmpeg2 != null;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libextractor-0.6.2";
|
||||
@ -22,7 +24,8 @@ stdenv.mkDerivation rec {
|
||||
[ libtool gettext zlib bzip2 flac libvorbis libmpeg2 exiv2 ffmpeg
|
||||
libgsf rpm
|
||||
pkgconfig
|
||||
] ++ stdenv.lib.optionals gtkSupport [ glib gtk ];
|
||||
] ++ stdenv.lib.optionals gtkSupport [ glib gtk ]
|
||||
++ stdenv.lib.optionals videoSupport [ ffmpeg gtkSupport ];
|
||||
|
||||
configureFlags = "--disable-ltdl-install "
|
||||
+ "--with-ltdl-include=${libtool}/include "
|
||||
|
Loading…
Reference in New Issue
Block a user