2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, fetchzip, expat, libiconv, libjpeg, libpng, libtiff, zlib
|
2016-12-10 17:57:09 +00:00
|
|
|
# darwin only attributes
|
2019-06-19 20:38:09 +01:00
|
|
|
, derez, rez, setfile
|
2021-01-14 08:25:06 +00:00
|
|
|
, AGL, Cocoa, Kernel, WebKit
|
2015-06-17 14:22:33 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-01-14 08:25:06 +00:00
|
|
|
version = "3.0.5.1";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "wxmac";
|
2015-06-17 14:22:33 +01:00
|
|
|
|
2018-10-25 00:15:54 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/wxWidgets/wxWidgets/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "19mqglghjjqjgz4rbybn3qdgn2cz9xc511nq1pvvli9wx2k8syl1";
|
2015-06-17 14:22:33 +01:00
|
|
|
};
|
|
|
|
|
2015-10-29 00:15:05 +00:00
|
|
|
buildInputs = [
|
|
|
|
expat libiconv libjpeg libpng libtiff zlib
|
2016-12-10 17:57:09 +00:00
|
|
|
derez rez setfile
|
2021-01-14 08:25:06 +00:00
|
|
|
AGL Cocoa Kernel WebKit
|
2015-10-29 00:15:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure --replace "-framework System" -lSystem
|
|
|
|
'';
|
2015-06-17 14:22:33 +01: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 14:22:33 +01: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 14:22:33 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-10-24 11:07:50 +01:00
|
|
|
meta = with stdenv.lib; {
|
2015-06-17 14:22:33 +01:00
|
|
|
platforms = platforms.darwin;
|
2017-04-23 21:20:35 +01:00
|
|
|
license = licenses.wxWindows;
|
2015-06-17 14:22:33 +01:00
|
|
|
maintainers = [ maintainers.lnl7 ];
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.wxwidgets.org/";
|
2017-08-06 23:05:18 +01:00
|
|
|
description = "a C++ library that lets developers create applications for Windows, macOS, Linux and other platforms with a single code base";
|
2017-04-23 21:25:23 +01:00
|
|
|
longDescription = "wxWidgets gives you a single, easy-to-use API for writing GUI applications on multiple platforms that still utilize the native platform's controls and utilities. Link with the appropriate library for your platform and compiler, and your application will adopt the look and feel appropriate to that platform. On top of great GUI functionality, wxWidgets gives you: online help, network programming, streams, clipboard and drag and drop, multithreading, image loading and saving in a variety of popular formats, database support, HTML viewing and printing, and much more.";
|
2015-06-17 14:22:33 +01:00
|
|
|
};
|
|
|
|
}
|