mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
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
|
{ 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 "
|
||||||
|
Loading…
Reference in New Issue
Block a user