Ticket #44031: wxWidgets-3.0.1.diff
File wxWidgets-3.0.1.diff, 5.9 KB (added by mojca (Mojca Miklavec), 10 years ago) |
---|
-
Portfile
9 9 name wxWidgets-3.0 10 10 subport wxPython-3.0 {} 11 11 subport wxgtk-3.0 {} 12 version 3.0. 012 version 3.0.1 13 13 set wxpython_ver 3.0.0.0 14 revision 5 14 # when revbumping remember to change the revision also for wxPython-3.0 15 15 16 16 set installname wxWidgets 17 17 set wxtype osx_cocoa … … 20 20 wxWidgets.use wxWidgets-3.0 21 21 } elseif {${subport} eq "wxPython-3.0"} { 22 22 wxWidgets.use wxPython-3.0 23 version 3.0.0 23 24 revision 0 24 25 } elseif {${subport} eq "wxgtk-3.0"} { 25 26 # with satisfactory Cocoa support there is no real need for GTK-based wxWidgets any more … … 54 55 dist_subdir ${distname}/${version} 55 56 56 57 checksums ${distname}-${version}${extract.suffix} \ 57 rmd160 6113a95125b743309c7b21dd5530f4b675b8b82f\58 sha256 ff340539bcb6e45d8dbce848d3c13ebce34da6ffb9004a0a88e9541bec45bf8558 rmd160 d4cfb25a5e15f9238addd48a98faf5a525d8fb5c \ 59 sha256 bd671b79ec56af8fb3844e11cafceac1a4276fb02c79404d06b91b6c19d2c5f5 59 60 60 61 depends_lib port:jpeg \ 61 62 port:tiff \ … … 75 76 76 77 patchfiles-append patch-configure.diff 77 78 78 if {${os.major} >= 10} {79 # the patch doesn't work on 10.5, but it's still better to have working wxWidgets with a flaw80 # than not bing able to compile it at all81 patchfiles-append \82 patch-src-osx-cocoa-utils.mm.diff83 }84 85 79 post-patch { 86 80 reinplace "s|@@PREFIX@@|${prefix}|g" ${patch.dir}/configure 87 81 } … … 114 108 to guarantee compatibility even when the upstream versions \ 115 109 of wxWidgets and wxPython differ. 116 110 111 checksums ${distname}-${version}${extract.suffix} \ 112 rmd160 6113a95125b743309c7b21dd5530f4b675b8b82f \ 113 sha256 ff340539bcb6e45d8dbce848d3c13ebce34da6ffb9004a0a88e9541bec45bf85 114 117 115 checksums-append ${wxpythonsubset}${extract.suffix} \ 118 116 rmd160 d3915cf55d6d8244515794ebf2316d151d69ba68 \ 119 117 sha256 b9377c6917c3a393ab9b190e1d558e4c5b80b13b435b93e11aad748f4d57bf61 120 118 119 # remove this patch in wxPython 3.0.1.0 120 if {${os.major} >= 10} { 121 # the patch doesn't work on 10.5, but it's still better to have working wxWidgets with a flaw 122 # than not being able to compile it at all 123 patchfiles-append patch-src-osx-cocoa-utils.mm.diff 124 } 125 121 126 post-destroot { 122 127 # copy a subset of wxPython to wxWidgets to prevent a conflict 123 128 # between py2X-wxpython-3.0 and py2Y-wxpython-3.0 … … 126 131 127 132 livecheck.type none 128 133 } elseif {${subport} eq "wxgtk-3.0"} { 129 # both patches could be added to wxWidgets-3.0, but they arenot needed for Cocoa134 # the patch could be added to wxWidgets-3.0, but it is not needed for Cocoa 130 135 # 131 # patch-sdl.diff: the patch allows using --w xth-sdl136 # patch-sdl.diff: the patch allows using --with-sdl 132 137 patchfiles-append patch-sdl.diff 133 138 134 139 depends_build-append port:pkgconfig -
files/patch-sdl.diff
2 2 http://trac.wxwidgets.org/ticket/15453 3 3 --- Makefile.in.orig 4 4 +++ Makefile.in 5 @@ -67 25,8 +6725,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_1 = \5 @@ -6752,8 +6752,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_1 = \ 6 6 @COND_TOOLKIT_MSW@__WEBVIEW_SRC_PLATFORM_OBJECTS = monodll_webview_ie.o 7 7 @COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@__AUI_GTK_SRC_OBJECTS \ 8 8 @COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@ = monodll_tabartgtk.o … … 13 13 @COND_PLATFORM_WIN32_1@__monodll___win32rc = monodll_version_rc.o 14 14 @COND_USE_STC_1@__wxscintilla_library_link_DEP = $(__wxscintilla___depname) 15 15 @COND_USE_STC_1@__wxscintilla_library_link_LIBR = -L$(LIBDIRNAME) 16 @@ - 8975,8 +8975,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_3 = \16 @@ -9006,8 +9006,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_3 = \ 17 17 @COND_TOOLKIT_MSW@__WEBVIEW_SRC_PLATFORM_OBJECTS_1 = monolib_webview_ie.o 18 18 @COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@__AUI_GTK_SRC_OBJECTS_1 \ 19 19 @COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@ = monolib_tabartgtk.o … … 24 24 COND_MONOLITHIC_0_SHARED_1___basedll___depname = \ 25 25 $(LIBDIRNAME)/$(DLLPREFIX)$(WXDLLNAMEPREFIX)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)$(dll___targetsuf3) 26 26 @COND_MONOLITHIC_0_SHARED_1@__basedll___depname = $(COND_MONOLITHIC_0_SHARED_1___basedll___depname) 27 @@ -131 14,8 +13114,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_5 = \27 @@ -13153,8 +13153,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_5 = \ 28 28 @COND_TOOLKIT_MSW@__ADVANCED_UNIV_SRC_OBJECTS_2 = advdll_animateg.o 29 29 @COND_TOOLKIT_WINCE@__ADVANCED_UNIV_SRC_OBJECTS_2 = advdll_animateg.o 30 30 @COND_TOOLKIT_X11@__ADVANCED_UNIV_SRC_OBJECTS_2 = advdll_animateg.o … … 35 35 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1___advlib___depname = \ 36 36 $(LIBDIRNAME)/$(LIBPREFIX)wx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv-$(WX_RELEASE)$(HOST_SUFFIX)$(LIBEXT) 37 37 @COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@__advlib___depname = $(COND_MONOLITHIC_0_SHARED_0_USE_GUI_1___advlib___depname) 38 @@ -134 27,8 +13427,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_7 = \38 @@ -13466,8 +13466,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_7 = \ 39 39 @COND_TOOLKIT_MSW@__ADVANCED_UNIV_SRC_OBJECTS_3 = advlib_animateg.o 40 40 @COND_TOOLKIT_WINCE@__ADVANCED_UNIV_SRC_OBJECTS_3 = advlib_animateg.o 41 41 @COND_TOOLKIT_X11@__ADVANCED_UNIV_SRC_OBJECTS_3 = advlib_animateg.o