forked from mirrors/nixpkgs
wxGTK*: avoid the mesa attribute
Tested building all wxGTK* and execution of codeblocks.
This commit is contained in:
parent
2065eea424
commit
98777646f9
|
@ -1,9 +1,10 @@
|
|||
{ stdenv, fetchurl, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm, xf86vidmodeproto
|
||||
, gstreamer, gst-plugins-base, GConf, libX11, cairo
|
||||
, withMesa ? true, mesa ? null, compat24 ? false, compat26 ? true, unicode ? true,
|
||||
, withMesa ? true, mesa_glu ? null, mesa_noglu ? null
|
||||
, compat24 ? false, compat26 ? true, unicode ? true,
|
||||
}:
|
||||
|
||||
assert withMesa -> mesa != null;
|
||||
assert withMesa -> mesa_glu != null && mesa_noglu != null;
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
|
@ -17,7 +18,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
|
||||
buildInputs = [ gtk2 libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer gst-plugins-base GConf libX11 cairo ]
|
||||
++ optional withMesa mesa;
|
||||
++ optional withMesa mesa_glu;
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
|
@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
|
|||
"${libXinerama.dev}/include ${libSM.dev}/include ${libXxf86vm.dev}/include";
|
||||
SEARCH_LIB =
|
||||
"${libXinerama.out}/lib ${libSM.out}/lib ${libXxf86vm.out}/lib "
|
||||
+ optionalString withMesa "${mesa.out}/lib ";
|
||||
+ optionalString withMesa "${mesa_glu.out}/lib ${mesa_noglu.out}/lib ";
|
||||
|
||||
# Work around a bug in configure.
|
||||
NIX_CFLAGS_COMPILE = [ "-DHAVE_X11_XLIB_H=1" "-lX11" "-lcairo" "-Wno-narrowing" ];
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
{ stdenv, fetchurl, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm, xf86vidmodeproto
|
||||
, gstreamer, gst-plugins-base, GConf, setfile
|
||||
, withMesa ? true, mesa ? null, compat24 ? false, compat26 ? true, unicode ? true
|
||||
, withMesa ? true, mesa_glu ? null, mesa_noglu ? null
|
||||
, compat24 ? false, compat26 ? true, unicode ? true
|
||||
, Carbon ? null, Cocoa ? null, Kernel ? null, QuickTime ? null, AGL ? null
|
||||
}:
|
||||
|
||||
assert withMesa -> mesa != null;
|
||||
assert withMesa -> mesa_glu != null && mesa_noglu != null;
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
|
@ -22,7 +23,7 @@ stdenv.mkDerivation {
|
|||
buildInputs =
|
||||
[ gtk2 libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer
|
||||
gst-plugins-base GConf ]
|
||||
++ optional withMesa mesa
|
||||
++ optional withMesa mesa_glu
|
||||
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QuickTime ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
@ -39,7 +40,7 @@ stdenv.mkDerivation {
|
|||
# allow building on 64-bit
|
||||
[ "--with-cocoa" "--enable-universal-binaries" "--with-macosx-version-min=10.7" ];
|
||||
|
||||
SEARCH_LIB = optionalString withMesa "${mesa}/lib";
|
||||
SEARCH_LIB = "${mesa_glu.out}/lib ${mesa_noglu.out}/lib ";
|
||||
|
||||
preConfigure = "
|
||||
substituteInPlace configure --replace 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE='
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
{ stdenv, fetchurl, fetchpatch, pkgconfig, gtk2, libXinerama, libSM, libXxf86vm
|
||||
, xf86vidmodeproto , gstreamer, gst-plugins-base, GConf, setfile
|
||||
, withMesa ? true, mesa ? null, compat24 ? false, compat26 ? true, unicode ? true
|
||||
, withMesa ? true, mesa_glu ? null, mesa_noglu ? null
|
||||
, compat24 ? false, compat26 ? true, unicode ? true
|
||||
, withWebKit ? false, webkitgtk2 ? null
|
||||
, AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null
|
||||
}:
|
||||
|
||||
|
||||
assert withMesa -> mesa != null;
|
||||
assert withMesa -> mesa_glu != null && mesa_noglu != null;
|
||||
assert withWebKit -> webkitgtk2 != null;
|
||||
|
||||
with stdenv.lib;
|
||||
|
@ -25,7 +26,7 @@ stdenv.mkDerivation {
|
|||
buildInputs =
|
||||
[ gtk2 libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer
|
||||
gst-plugins-base GConf ]
|
||||
++ optional withMesa mesa
|
||||
++ optional withMesa mesa_glu
|
||||
++ optional withWebKit webkitgtk2
|
||||
++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ];
|
||||
|
||||
|
@ -50,7 +51,7 @@ stdenv.mkDerivation {
|
|||
++ optionals withWebKit
|
||||
["--enable-webview" "--enable-webview-webkit"];
|
||||
|
||||
SEARCH_LIB = optionalString withMesa "${mesa}/lib";
|
||||
SEARCH_LIB = "${mesa_glu.out}/lib ${mesa_noglu.out}/lib ";
|
||||
|
||||
preConfigure = "
|
||||
substituteInPlace configure --replace 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE='
|
||||
|
|
Loading…
Reference in a new issue