zbar: Enable building on darwin by disabling video support there
This commit is contained in:
parent
0d407b7e52
commit
7147ef8e80
@ -1,5 +1,6 @@
|
|||||||
{ stdenv, fetchurl, imagemagickBig, pkgconfig, python2Packages, perl
|
{ stdenv, fetchurl, imagemagickBig, pkgconfig, python2Packages, perl
|
||||||
, libX11, libv4l, qt4, lzma, gtk2, fetchpatch, autoreconfHook
|
, libX11, libv4l, qt4, lzma, gtk2, fetchpatch, autoreconfHook
|
||||||
|
, enableVideo ? stdenv.isLinux
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -38,7 +39,12 @@ in stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ imagemagickBig pkgconfig python pygtk perl libX11
|
[ imagemagickBig pkgconfig python pygtk perl libX11
|
||||||
libv4l qt4 lzma gtk2 autoreconfHook ];
|
lzma autoreconfHook ] ++
|
||||||
|
stdenv.lib.optionals enableVideo [ libv4l gtk2 qt4 ];
|
||||||
|
|
||||||
|
configureFlags = stdenv.lib.optionals (!enableVideo) [
|
||||||
|
"--disable-video" "--without-gtk" "--without-qt"
|
||||||
|
];
|
||||||
|
|
||||||
hardeningDisable = [ "fortify" ];
|
hardeningDisable = [ "fortify" ];
|
||||||
|
|
||||||
@ -52,7 +58,7 @@ in stdenv.mkDerivation rec {
|
|||||||
Code.
|
Code.
|
||||||
'';
|
'';
|
||||||
maintainers = with maintainers; [ raskin ];
|
maintainers = with maintainers; [ raskin ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21;
|
||||||
homepage = http://zbar.sourceforge.net/;
|
homepage = http://zbar.sourceforge.net/;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user