aboutsummaryrefslogtreecommitdiff
path: root/games/asc
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-04-11 11:33:35 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-04-11 11:33:35 +0000
commitaf68c5ba3fcd1441f71073bf06f116e194699c0b (patch)
treeae55ad37e050572bcf015501e90dda9bff6cd81a /games/asc
parent2655566d779a8c32a2fb996584a0cde5131731f0 (diff)
downloadports-af68c5ba3fcd1441f71073bf06f116e194699c0b.tar.gz
ports-af68c5ba3fcd1441f71073bf06f116e194699c0b.zip
Notes
Diffstat (limited to 'games/asc')
-rw-r--r--games/asc/Makefile1
-rw-r--r--games/asc/files/patch-source_libs_paragui_src_widgets_pgbutton.cpp43
2 files changed, 44 insertions, 0 deletions
diff --git a/games/asc/Makefile b/games/asc/Makefile
index 1da3d76d481c..75715e6b02a1 100644
--- a/games/asc/Makefile
+++ b/games/asc/Makefile
@@ -29,6 +29,7 @@ OPTIONS_DEFINE= MUSIC XVID
MUSIC_DESC= Install extra music files
USES= compiler:c++11-lib gmake libtool lua:51 perl5 pkgconfig tar:bzip2
+USE_CXXSTD= c++11
USE_SDL= image mixer sound sdl
USE_WX= 3.0
WX_UNICODE= yes
diff --git a/games/asc/files/patch-source_libs_paragui_src_widgets_pgbutton.cpp b/games/asc/files/patch-source_libs_paragui_src_widgets_pgbutton.cpp
new file mode 100644
index 000000000000..9ae73d694550
--- /dev/null
+++ b/games/asc/files/patch-source_libs_paragui_src_widgets_pgbutton.cpp
@@ -0,0 +1,43 @@
+--- source/libs/paragui/src/widgets/pgbutton.cpp.orig 2015-04-11 02:43:58.716405000 +0300
++++ source/libs/paragui/src/widgets/pgbutton.cpp 2015-04-11 02:44:38.509415000 +0300
+@@ -101,32 +101,33 @@
+ t->GetColor(widgettype, objectname, PG_PropStr::textcolor, fontcolor);
+ SetFontColor(fontcolor);
+
++ printf("%d\n", GetID());
+ switch (GetID()) {
+- case OK:
++ case (int)OK:
+ SetIcon(t->FindSurface(widgettype, objectname, "ok_icon"));
+ break;
+
+- case YES:
++ case (int)YES:
+ SetIcon(t->FindSurface(widgettype, objectname, "yes_icon"));
+ break;
+
+- case NO:
++ case (int)NO:
+ SetIcon(t->FindSurface(widgettype, objectname, "no_icon"));
+ break;
+
+- case APPLY:
++ case (int)APPLY:
+ SetIcon(t->FindSurface(widgettype, objectname, "apply_icon"));
+ break;
+
+- case CANCEL:
++ case (int)CANCEL:
+ SetIcon(t->FindSurface(widgettype, objectname, "cancel_icon"));
+ break;
+
+- case CLOSE:
++ case (int)CLOSE:
+ SetIcon(t->FindSurface(widgettype, objectname, "close_icon"));
+ break;
+
+- case HELP:
++ case (int)HELP:
+ SetIcon(t->FindSurface(widgettype, objectname, "help_icon"));
+ break;
+