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 { fetchurl, stdenv, libtool, gettext, zlib, bzip2, flac, libvorbis
, ffmpeg, exiv2, libgsf, rpm, pkgconfig , exiv2, libgsf, rpm, pkgconfig
, gtkSupport ? true, glib ? null, gtk ? null}: , gtkSupport ? true, glib ? null, gtk ? null
, videoSupport ? true, ffmpeg ? null, libmpeg2 ? null}:
assert gtkSupport -> glib != null && gtk != null; assert gtkSupport -> glib != null && gtk != null;
assert videoSupport -> ffmpeg != null && libmpeg2 != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libextractor-0.6.2"; name = "libextractor-0.6.2";
@ -22,7 +24,8 @@ stdenv.mkDerivation rec {
[ libtool gettext zlib bzip2 flac libvorbis libmpeg2 exiv2 ffmpeg [ libtool gettext zlib bzip2 flac libvorbis libmpeg2 exiv2 ffmpeg
libgsf rpm libgsf rpm
pkgconfig pkgconfig
] ++ stdenv.lib.optionals gtkSupport [ glib gtk ]; ] ++ stdenv.lib.optionals gtkSupport [ glib gtk ]
++ stdenv.lib.optionals videoSupport [ ffmpeg gtkSupport ];
configureFlags = "--disable-ltdl-install " configureFlags = "--disable-ltdl-install "
+ "--with-ltdl-include=${libtool}/include " + "--with-ltdl-include=${libtool}/include "