2006-07-05 00:48:18 +01:00
|
|
|
{stdenv, fetchurl, pkgconfig, gtk, libXinerama, compat22 ? true, unicode ? true}:
|
2005-10-19 16:15:37 +01:00
|
|
|
|
|
|
|
assert pkgconfig != null && gtk != null;
|
|
|
|
assert gtk.libtiff != null;
|
|
|
|
assert gtk.libjpeg != null;
|
|
|
|
assert gtk.libpng != null;
|
|
|
|
assert gtk.libpng.zlib != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-06-23 23:41:47 +01:00
|
|
|
name = "wxGTK-2.6.3";
|
2005-10-19 16:15:37 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2006-10-12 14:50:54 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/wxGTK-2.6.3.tar.bz2;
|
2006-06-23 23:41:47 +01:00
|
|
|
md5 = "3cd76c3c47913e52a3175dd47239c6ec";
|
2005-10-19 16:15:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig gtk gtk.libtiff gtk.libjpeg gtk.libpng gtk.libpng.zlib
|
|
|
|
libXinerama
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-gtk2"
|
|
|
|
(if compat22 then "--enable-compat22" else "--disable-compat22")
|
|
|
|
"--disable-precomp-headers"
|
2006-07-11 08:55:52 +01:00
|
|
|
(if unicode then "--enable-unicode" else "")
|
2005-10-19 16:15:37 +01:00
|
|
|
];
|
|
|
|
|
2006-12-13 20:30:09 +00:00
|
|
|
postBuild = "(cd contrib/src && make)";
|
|
|
|
postInstall = "(cd contrib/src && make install)";
|
|
|
|
|
2005-10-19 16:15:37 +01:00
|
|
|
inherit gtk compat22;
|
|
|
|
}
|