lang/erlang-wx: use wx 3.2

PR:		265093
This commit is contained in:
Loïc Bartoletti 2022-10-15 21:19:48 +02:00
parent bfbb016436
commit ff9b39f22c
2 changed files with 13 additions and 4 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= erlang
DISTVERSIONPREFIX= OTP-
DISTVERSION= 24.3.4.6
PORTREVISION= 0
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang parallel
PKGNAMESUFFIX= -wx
@ -21,9 +21,7 @@ USE_GITHUB= yes
GH_PROJECT= otp
USE_GL= gl glu
USE_PERL5= build
USE_WX= 3.1+
WX_COMPS= wx
USE_WX= 3.2+
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-threads \

View File

@ -0,0 +1,11 @@
--- lib/wx/c_src/gen/wxe_wrapper_7.cpp.orig 2022-10-15 17:50:46 UTC
+++ lib/wx/c_src/gen/wxe_wrapper_7.cpp
@@ -2339,7 +2339,7 @@ void wxToolBar_AddTool_4(WxeApp *app, wxeMemEnv *memen
} else Badarg("Options");
};
if(!This) throw wxe_badarg("This");
- wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool(toolId,label,*bitmap,shortHelp,kind);
+ wxToolBarToolBase * Result = (wxToolBarToolBase*)This->AddTool(toolId,label,(wxBitmapBundle)*bitmap,shortHelp,kind);
wxeReturn rt = wxeReturn(memenv, Ecmd.caller, true);
rt.send( rt.make_ref(app->getRef((void *)Result,memenv), "wx"));