emulators/libretro-genesis-plus-gx update

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

emulators/libretro-genesis-plus-gx update

Jeremy Evans-5
This updates libretro-genesis-plus-gx to the latest GitHub commit, which
builds cleanly with -fno-common after some Makefile patching.

I'm not really sure how to configure Retroarch, but I was able to boot
a Sega Master System game without it crashing, which was the extent of
my testing.

OKs?

Thanks,
Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/emulators/libretro-genesis-plus-gx/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile 14 Jul 2019 00:39:36 -0000 1.2
+++ Makefile 18 Feb 2021 02:39:43 -0000
@@ -2,11 +2,11 @@
 
 COMMENT = Sega Genesis core for retroarch
 
-DISTNAME = libretro-genesis-plus-gx-1.7.4pl20160815
+DISTNAME = libretro-genesis-plus-gx-1.7.5pl20201208
 
 GH_ACCOUNT = ekeeke
 GH_PROJECT = Genesis-Plus-GX
-GH_COMMIT = 446d9aa61f1f3633b142cc4df0420ebd0b66813f
+GH_COMMIT = 58758aef3d8e12189899d67344db3b95c6379561
 
 CATEGORIES = emulators
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/emulators/libretro-genesis-plus-gx/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo 6 May 2017 15:10:17 -0000 1.2
+++ distinfo 18 Feb 2021 02:17:30 -0000
@@ -1,2 +1,2 @@
-SHA256 (libretro-genesis-plus-gx-1.7.4pl20160815-446d9aa6.tar.gz) = dQJYDVJOneIW9e2o5Y47HZiMQhr5kHa14vr3cyPM8pE=
-SIZE (libretro-genesis-plus-gx-1.7.4pl20160815-446d9aa6.tar.gz) = 5792150
+SHA256 (libretro-genesis-plus-gx-1.7.5pl20201208-58758aef.tar.gz) = B4eROGUYF4ZWoFcvuTZSW0x7wQ1z/Tdts1tEPaABEoM=
+SIZE (libretro-genesis-plus-gx-1.7.5pl20201208-58758aef.tar.gz) = 6798991
Index: patches/patch-Makefile_libretro
===================================================================
RCS file: /cvs/ports/emulators/libretro-genesis-plus-gx/patches/patch-Makefile_libretro,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-Makefile_libretro
--- patches/patch-Makefile_libretro 17 Oct 2016 06:30:01 -0000 1.1.1.1
+++ patches/patch-Makefile_libretro 18 Feb 2021 02:49:01 -0000
@@ -1,12 +1,30 @@
 $OpenBSD: patch-Makefile_libretro,v 1.1.1.1 2016/10/17 06:30:01 bentley Exp $
---- Makefile.libretro.orig Sun Aug 28 01:20:16 2016
-+++ Makefile.libretro Sun Aug 28 01:20:19 2016
-@@ -41,7 +41,7 @@ LIBM := -lm
- ifeq ($(platform), unix)
- TARGET := $(TARGET_NAME)_libretro.so
- fpic := -fPIC
-- SHARED := -shared -Wl,--version-script=libretro/link.T -Wl,--no-undefined
-+ SHARED := -shared -Wl,--version-script=libretro/link.T
- ENDIANNESS_DEFINES := -DLSB_FIRST -DBYTE_ORDER=LITTLE_ENDIAN
- PLATFORM_DEFINES := -DHAVE_ZLIB
+Index: Makefile.libretro
+--- Makefile.libretro.orig
++++ Makefile.libretro
+@@ -43,7 +43,7 @@ TARGET_NAME := genesis_plus_gx
 
+ LIBS := -lm
+
+-GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
++GIT_VERSION ?= " unknown"
+ ifneq ($(GIT_VERSION)," unknown")
+    CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
+ endif
+@@ -52,7 +52,7 @@ endif
+ ifneq (,$(findstring unix,$(platform)))
+    TARGET := $(TARGET_NAME)_libretro.so
+    fpic := -fPIC
+-   SHARED := -shared -Wl,--version-script=$(CORE_DIR)/libretro/link.T -Wl,--no-undefined
++   SHARED := -shared -Wl,--version-script=$(CORE_DIR)/libretro/link.T
+    ENDIANNESS_DEFINES := -DLSB_FIRST -DBYTE_ORDER=LITTLE_ENDIAN
+    PLATFORM_DEFINES := -DHAVE_ZLIB
+
+@@ -585,6 +581,7 @@ LIBRETRO_CFLAGS += $(BPP_DEFINES) \
+ -DM68K_OVERCLOCK_SHIFT=20 \
+ -DZ80_OVERCLOCK_SHIFT=20 \
+ -DHAVE_YM3438_CORE \
++ -DPACKAGE_VERSION=\"1.3.2\" -DFLAC_API_EXPORTS -DFLAC__HAS_OGG=0 -DHAVE_LROUND -DHAVE_STDINT_H -D_7ZIP_ST \
+ -DHAVE_OPLL_CORE
+
+ ifneq (,$(findstring msvc,$(platform)))
Index: patches/patch-core_loadrom_c
===================================================================
RCS file: patches/patch-core_loadrom_c
diff -N patches/patch-core_loadrom_c
--- patches/patch-core_loadrom_c 17 Oct 2016 06:30:01 -0000 1.1.1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-$OpenBSD: patch-core_loadrom_c,v 1.1.1.1 2016/10/17 06:30:01 bentley Exp $
-https://bitbucket.org/eke/genesis-plus-gx/pull-requests/2
---- core/loadrom.c.orig Sun Aug 28 01:20:56 2016
-+++ core/loadrom.c Sun Aug 28 01:21:05 2016
-@@ -646,7 +646,7 @@ int load_rom(char *filename)
-     {
-       /* remove header */
-       size -= 512;
--      memcpy (cart.rom, cart.rom + 512, size);
-+      memmove (cart.rom, cart.rom + 512, size);
-
-       /* assume interleaved Mega Drive / Genesis ROM format (.smd) */
-       if (system_hw == SYSTEM_MD)
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/emulators/libretro-genesis-plus-gx/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 17 Oct 2016 06:30:01 -0000 1.1.1.1
+++ pkg/PLIST 18 Feb 2021 02:50:17 -0000
@@ -1,5 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2016/10/17 06:30:01 bentley Exp $
 lib/libretro/
-lib/libretro/genesis_plus_gx_libretro.so
+@so lib/libretro/genesis_plus_gx_libretro.so
 share/doc/libretro-genesis-plus-gx/
 share/doc/libretro-genesis-plus-gx/LICENSE.txt

Reply | Threaded
Open this post in threaded view
|

Re: emulators/libretro-genesis-plus-gx update

Anthony J. Bentley-4
Jeremy Evans writes:
> This updates libretro-genesis-plus-gx to the latest GitHub commit, which
> builds cleanly with -fno-common after some Makefile patching.

ok bentley@

> I'm not really sure how to configure Retroarch

I consider Retroarch's configuration rather impenetrable.

$ wc -l .config/retroarch/retroarch.cfg
    2941 .config/retroarch/retroarch.cfg