2015-10-29 00:36:20 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, expat, libiconv, libjpeg, libpng, libtiff, zlib
|
|
|
|
, setfile, rez, derez
|
2015-10-29 00:15:05 +00:00
|
|
|
, AGL, Cocoa, Kernel, QuickTime
|
2015-06-17 13:22:33 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "3.0.2";
|
|
|
|
name = "wxmac-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/wxwindows/wxWidgets-${version}.tar.bz2";
|
|
|
|
sha256 = "346879dc554f3ab8d6da2704f651ecb504a22e9d31c17ef5449b129ed711585d";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./wx.patch ];
|
|
|
|
|
2015-10-29 00:15:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
expat libiconv libjpeg libpng libtiff zlib
|
2015-10-29 07:51:25 +00:00
|
|
|
Cocoa Kernel QuickTime setfile rez derez
|
2015-10-29 00:15:05 +00:00
|
|
|
];
|
|
|
|
|
2015-10-29 07:51:25 +00:00
|
|
|
propagatedBuildInputs = [ AGL ];
|
|
|
|
|
2015-10-29 00:15:05 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure --replace "-framework System" -lSystem
|
|
|
|
'';
|
2015-06-17 13:22:33 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2015-10-29 00:15:05 +00:00
|
|
|
"wx_cv_std_libfullpath=/var/empty"
|
|
|
|
"--with-macosx-version-min=10.7"
|
2015-06-17 13:22:33 +00:00
|
|
|
"--enable-unicode"
|
|
|
|
"--with-osx_cocoa"
|
|
|
|
"--enable-std_string"
|
|
|
|
"--enable-display"
|
|
|
|
"--with-opengl"
|
|
|
|
"--with-libjpeg"
|
|
|
|
"--with-libtiff"
|
|
|
|
"--without-liblzma"
|
|
|
|
"--with-libpng"
|
|
|
|
"--with-zlib"
|
|
|
|
"--enable-dnd"
|
|
|
|
"--enable-clipboard"
|
|
|
|
"--enable-webkit"
|
|
|
|
"--enable-svg"
|
|
|
|
"--enable-graphics_ctx"
|
|
|
|
"--enable-controls"
|
|
|
|
"--enable-dataviewctrl"
|
|
|
|
"--with-expat"
|
|
|
|
"--disable-precomp-headers"
|
|
|
|
"--disable-mediactrl"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
./wx-config --libs
|
|
|
|
'';
|
|
|
|
|
2015-10-29 00:15:05 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-undef";
|
|
|
|
|
2015-06-17 13:22:33 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = platforms.darwin;
|
|
|
|
maintainers = [ maintainers.lnl7 ];
|
|
|
|
};
|
|
|
|
}
|