libgsf and libextractor: allow build without gtk/gnome

I leave them enabled by default though; I don't really know how much it helps,
having them built with gtk or gnome support.

I head towards building gnunet without gtk dependencies.
This commit is contained in:
Lluís Batlle i Rossell
2012-07-11 20:05:36 +02:00
parent 945a3480d4
commit db46c668b8
2 changed files with 15 additions and 7 deletions
@@ -1,5 +1,8 @@
{ fetchurl, stdenv, libtool, gettext, zlib, bzip2, flac, libvorbis, libmpeg2
, ffmpeg, exiv2, libgsf, rpm, pkgconfig, glib, gtk }:
, ffmpeg, exiv2, libgsf, rpm, pkgconfig
, gtkSupport ? true, glib ? null, gtk ? null}:
assert gtkSupport -> glib != null && gtk != null;
stdenv.mkDerivation rec {
name = "libextractor-0.6.2";
@@ -18,8 +21,8 @@ stdenv.mkDerivation rec {
buildInputs =
[ libtool gettext zlib bzip2 flac libvorbis libmpeg2 exiv2 ffmpeg
libgsf rpm
pkgconfig glib gtk
];
pkgconfig
] ++ stdenv.lib.optionals gtkSupport [ glib gtk ];
configureFlags = "--disable-ltdl-install "
+ "--with-ltdl-include=${libtool}/include "