lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wxmac: new package

- based on the current homebrew package

authored by

Daiderd Jordan and committed by
Rok Garbas
8a074996 f1195081

+116
+55
pkgs/development/libraries/wxmac/default.nix
··· 1 + { stdenv, fetchurl, setfile, rez, derez, 2 + expat, libjpeg, libpng, libtiff, zlib 3 + }: 4 + 5 + with stdenv.lib; 6 + 7 + stdenv.mkDerivation rec { 8 + version = "3.0.2"; 9 + name = "wxmac-${version}"; 10 + 11 + src = fetchurl { 12 + url = "mirror://sourceforge/wxwindows/wxWidgets-${version}.tar.bz2"; 13 + sha256 = "346879dc554f3ab8d6da2704f651ecb504a22e9d31c17ef5449b129ed711585d"; 14 + }; 15 + 16 + patches = [ ./wx.patch ]; 17 + 18 + buildInputs = [ setfile rez derez expat libjpeg libpng libtiff zlib ]; 19 + 20 + configureFlags = [ 21 + "--enable-unicode" 22 + "--with-osx_cocoa" 23 + "--enable-std_string" 24 + "--enable-display" 25 + "--with-opengl" 26 + "--with-libjpeg" 27 + "--with-libtiff" 28 + "--without-liblzma" 29 + "--with-libpng" 30 + "--with-zlib" 31 + "--enable-dnd" 32 + "--enable-clipboard" 33 + "--enable-webkit" 34 + "--enable-svg" 35 + "--enable-graphics_ctx" 36 + "--enable-controls" 37 + "--enable-dataviewctrl" 38 + "--with-expat" 39 + "--disable-precomp-headers" 40 + "--disable-mediactrl" 41 + ]; 42 + 43 + checkPhase = '' 44 + ./wx-config --libs 45 + ''; 46 + 47 + doCheck = true; 48 + 49 + enableParallelBuilding = true; 50 + 51 + meta = { 52 + platforms = platforms.darwin; 53 + maintainers = [ maintainers.lnl7 ]; 54 + }; 55 + }
+59
pkgs/development/libraries/wxmac/wx.patch
··· 1 + diff --git a/include/wx/defs.h b/include/wx/defs.h 2 + index 397ddd7..d128083 100644 3 + --- a/include/wx/defs.h 4 + +++ b/include/wx/defs.h 5 + @@ -3169,12 +3169,20 @@ DECLARE_WXCOCOA_OBJC_CLASS(UIImage); 6 + DECLARE_WXCOCOA_OBJC_CLASS(UIEvent); 7 + DECLARE_WXCOCOA_OBJC_CLASS(NSSet); 8 + DECLARE_WXCOCOA_OBJC_CLASS(EAGLContext); 9 + +DECLARE_WXCOCOA_OBJC_CLASS(UIWebView); 10 + 11 + typedef WX_UIWindow WXWindow; 12 + typedef WX_UIView WXWidget; 13 + typedef WX_EAGLContext WXGLContext; 14 + typedef WX_NSString* WXGLPixelFormat; 15 + 16 + +typedef WX_UIWebView OSXWebViewPtr; 17 + + 18 + +#endif 19 + + 20 + +#if wxOSX_USE_COCOA_OR_CARBON 21 + +DECLARE_WXCOCOA_OBJC_CLASS(WebView); 22 + +typedef WX_WebView OSXWebViewPtr; 23 + #endif 24 + 25 + #endif /* __WXMAC__ */ 26 + diff --git a/include/wx/html/webkit.h b/include/wx/html/webkit.h 27 + index 8700367..f805099 100644 28 + --- a/include/wx/html/webkit.h 29 + +++ b/include/wx/html/webkit.h 30 + @@ -18,7 +18,6 @@ 31 + #endif 32 + 33 + #include "wx/control.h" 34 + -DECLARE_WXCOCOA_OBJC_CLASS(WebView); 35 + 36 + // ---------------------------------------------------------------------------- 37 + // Web Kit Control 38 + @@ -107,7 +106,7 @@ private: 39 + wxString m_currentURL; 40 + wxString m_pageTitle; 41 + 42 + - WX_WebView m_webView; 43 + + OSXWebViewPtr m_webView; 44 + 45 + // we may use this later to setup our own mouse events, 46 + // so leave it in for now. 47 + diff --git a/include/wx/osx/webview_webkit.h b/include/wx/osx/webview_webkit.h 48 + index 803f8b0..438e532 100644 49 + --- a/include/wx/osx/webview_webkit.h 50 + +++ b/include/wx/osx/webview_webkit.h 51 + @@ -158,7 +158,7 @@ private: 52 + wxWindowID m_windowID; 53 + wxString m_pageTitle; 54 + 55 + - wxObjCID m_webView; 56 + + OSXWebViewPtr m_webView; 57 + 58 + // we may use this later to setup our own mouse events, 59 + // so leave it in for now.
+2
pkgs/top-level/all-packages.nix
··· 8233 8233 withMesa = lib.elem system lib.platforms.mesaPlatforms; 8234 8234 }; 8235 8235 8236 + wxmac = callPackage ../development/libraries/wxmac { }; 8237 + 8236 8238 wtk = callPackage ../development/libraries/wtk { }; 8237 8239 8238 8240 x264 = callPackage ../development/libraries/x264 { };