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

     
    99name                wxWidgets-3.0
    1010subport             wxPython-3.0 {}
    1111subport             wxgtk-3.0 {}
    12 version             3.0.0
     12version             3.0.1
    1313set wxpython_ver    3.0.0.0
    14 revision            5
     14# when revbumping remember to change the revision also for wxPython-3.0
    1515
    1616set installname     wxWidgets
    1717set wxtype          osx_cocoa
     
    2020    wxWidgets.use   wxWidgets-3.0
    2121} elseif {${subport} eq "wxPython-3.0"} {
    2222    wxWidgets.use   wxPython-3.0
     23    version         3.0.0
    2324    revision        0
    2425} elseif {${subport} eq "wxgtk-3.0"} {
    2526    # with satisfactory Cocoa support there is no real need for GTK-based wxWidgets any more
     
    5455dist_subdir         ${distname}/${version}
    5556
    5657checksums           ${distname}-${version}${extract.suffix} \
    57                     rmd160  6113a95125b743309c7b21dd5530f4b675b8b82f \
    58                     sha256  ff340539bcb6e45d8dbce848d3c13ebce34da6ffb9004a0a88e9541bec45bf85
     58                    rmd160  d4cfb25a5e15f9238addd48a98faf5a525d8fb5c \
     59                    sha256  bd671b79ec56af8fb3844e11cafceac1a4276fb02c79404d06b91b6c19d2c5f5
    5960
    6061depends_lib         port:jpeg \
    6162                    port:tiff \
     
    7576
    7677patchfiles-append   patch-configure.diff
    7778
    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 flaw
    80     # than not bing able to compile it at all
    81     patchfiles-append \
    82                     patch-src-osx-cocoa-utils.mm.diff
    83 }
    84 
    8579post-patch {
    8680    reinplace "s|@@PREFIX@@|${prefix}|g" ${patch.dir}/configure
    8781}
     
    114108                            to guarantee compatibility even when the upstream versions \
    115109                            of wxWidgets and wxPython differ.
    116110
     111    checksums               ${distname}-${version}${extract.suffix} \
     112                            rmd160  6113a95125b743309c7b21dd5530f4b675b8b82f \
     113                            sha256  ff340539bcb6e45d8dbce848d3c13ebce34da6ffb9004a0a88e9541bec45bf85
     114
    117115    checksums-append        ${wxpythonsubset}${extract.suffix} \
    118116                            rmd160  d3915cf55d6d8244515794ebf2316d151d69ba68 \
    119117                            sha256  b9377c6917c3a393ab9b190e1d558e4c5b80b13b435b93e11aad748f4d57bf61
    120118
     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
    121126    post-destroot {
    122127        # copy a subset of wxPython to wxWidgets to prevent a conflict
    123128        # between py2X-wxpython-3.0 and py2Y-wxpython-3.0
     
    126131
    127132    livecheck.type          none
    128133} elseif {${subport} eq "wxgtk-3.0"} {
    129     # both patches could be added to wxWidgets-3.0, but they are not needed for Cocoa
     134    # the patch could be added to wxWidgets-3.0, but it is not needed for Cocoa
    130135    #
    131     # patch-sdl.diff: the patch allows using --wxth-sdl
     136    # patch-sdl.diff: the patch allows using --with-sdl
    132137    patchfiles-append       patch-sdl.diff
    133138
    134139    depends_build-append    port:pkgconfig
  • files/patch-sdl.diff

     
    22http://trac.wxwidgets.org/ticket/15453
    33--- Makefile.in.orig
    44+++ Makefile.in
    5 @@ -6725,8 +6725,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_1 =  \
     5@@ -6752,8 +6752,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_1 =  \
    66 @COND_TOOLKIT_MSW@__WEBVIEW_SRC_PLATFORM_OBJECTS = monodll_webview_ie.o
    77 @COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@__AUI_GTK_SRC_OBJECTS \
    88 @COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@   = monodll_tabartgtk.o
     
    1313 @COND_PLATFORM_WIN32_1@__monodll___win32rc = monodll_version_rc.o
    1414 @COND_USE_STC_1@__wxscintilla_library_link_DEP = $(__wxscintilla___depname)
    1515 @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 =  \
    1717 @COND_TOOLKIT_MSW@__WEBVIEW_SRC_PLATFORM_OBJECTS_1 = monolib_webview_ie.o
    1818 @COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@__AUI_GTK_SRC_OBJECTS_1 \
    1919 @COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@   = monolib_tabartgtk.o
     
    2424 COND_MONOLITHIC_0_SHARED_1___basedll___depname = \
    2525        $(LIBDIRNAME)/$(DLLPREFIX)$(WXDLLNAMEPREFIX)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)$(WXCOMPILER)$(VENDORTAG)$(WXDLLVERSIONTAG)$(dll___targetsuf3)
    2626 @COND_MONOLITHIC_0_SHARED_1@__basedll___depname = $(COND_MONOLITHIC_0_SHARED_1___basedll___depname)
    27 @@ -13114,8 +13114,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_5 =  \
     27@@ -13153,8 +13153,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_5 =  \
    2828 @COND_TOOLKIT_MSW@__ADVANCED_UNIV_SRC_OBJECTS_2 = advdll_animateg.o
    2929 @COND_TOOLKIT_WINCE@__ADVANCED_UNIV_SRC_OBJECTS_2 = advdll_animateg.o
    3030 @COND_TOOLKIT_X11@__ADVANCED_UNIV_SRC_OBJECTS_2 = advdll_animateg.o
     
    3535 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1___advlib___depname = \
    3636        $(LIBDIRNAME)/$(LIBPREFIX)wx_$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WX_LIB_FLAVOUR)_adv-$(WX_RELEASE)$(HOST_SUFFIX)$(LIBEXT)
    3737 @COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@__advlib___depname = $(COND_MONOLITHIC_0_SHARED_0_USE_GUI_1___advlib___depname)
    38 @@ -13427,8 +13427,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_7 =  \
     38@@ -13466,8 +13466,8 @@ COND_TOOLKIT_X11___ADVANCED_PLATFORM_SRC_OBJECTS_7 =  \
    3939 @COND_TOOLKIT_MSW@__ADVANCED_UNIV_SRC_OBJECTS_3 = advlib_animateg.o
    4040 @COND_TOOLKIT_WINCE@__ADVANCED_UNIV_SRC_OBJECTS_3 = advlib_animateg.o
    4141 @COND_TOOLKIT_X11@__ADVANCED_UNIV_SRC_OBJECTS_3 = advlib_animateg.o