libextractor: allow disabling video support.

This commit is contained in:
Lluís Batlle i Rossell 2012-07-11 20:20:14 +02:00
parent 6163742ea4
commit b4e0565a86

View File

@ -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 "