Saturday, January 05, 2019

patch: emulators/dosbox add 'dyncore', 'nosplash' flavours

zeur here.

[not subscribed to this list so please Cc me on reply. thanks!]

It's seldom that I feel the urgent need to patch something in ports, but
here we are... the below patches add the following flavours:

'dyncore': re-enable the dynamic core;
'nosplash': disable the spam upon invocation.

Hope this is useful to somebody :)

--zeurkous.

Index: ports/emulators/dosbox/Makefile
===================================================================
RCS file: /cvs/ports/emulators/dosbox/Makefile,v
retrieving revision 1.38
diff -u -p -r1.38 Makefile
--- ports/emulators/dosbox/Makefile 29 Jul 2017 08:59:35 -0000 1.38
+++ ports/emulators/dosbox/Makefile 5 Jan 2019 10:10:08 -0000
@@ -34,8 +34,21 @@ CONFIGURE_ENV=CPPFLAGS="-I${LOCALBASE}/i
CONFIGURE_ENV+=LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
CONFIGURE_ARGS+= --disable-alsatest

+PATCH_LIST= patch-*
+
+FLAVORS= dyncore nosplash
+FLAVOR?=
+
+.if ${FLAVOR:L:Mnosplash}
+PATCH_LIST+= nosplash
+.endif
+
+.if ${FLAVOR:L:Mdyncore}
+PATCH_LIST+= wxneeded
+.else
# needs W+X memory
CONFIGURE_ARGS+= --disable-dynamic-core
+.endif

pre-configure:
cp ${FILESDIR}/midi_sndio.h ${WRKSRC}/src/gui

--- /dev/null Sat Jan 5 10:11:15 2019
+++ ports/emulators/dosbox/patches/nosplash Sat Jan 5 08:54:58 2019
@@ -0,0 +1,44 @@
+--- src/gui/..ar/0/sdlmain.cpp Mon May 10 17:43:54 2010
++++ src/gui/sdlmain.cpp Sat Jan 5 08:54:39 2019
+@@ -986,7 +986,9 @@
+ static unsigned char logo[32*32*4]= {
+ #include "dosbox_logo.h"
+ };
++#ifdef TOTAL_WANKER
+ #include "dosbox_splash.h"
++

No comments:

Post a Comment