diff options
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/Makefile | 3 | ||||
-rw-r--r-- | emulators/libretro-reicast/DESCR | 7 | ||||
-rw-r--r-- | emulators/libretro-reicast/MESSAGE | 20 | ||||
-rw-r--r-- | emulators/libretro-reicast/Makefile | 57 | ||||
-rw-r--r-- | emulators/libretro-reicast/PLIST | 2 | ||||
-rw-r--r-- | emulators/libretro-reicast/distinfo | 9 | ||||
-rw-r--r-- | emulators/libretro-reicast/options.mk | 41 | ||||
-rw-r--r-- | emulators/libretro-reicast/patches/patch-Makefile | 111 | ||||
-rw-r--r-- | emulators/libretro-reicast/patches/patch-core_hw_sh4_dyna_driver.cpp | 16 | ||||
-rw-r--r-- | emulators/libretro-reicast/patches/patch-core_libretro_common.cpp | 15 |
10 files changed, 1 insertions, 280 deletions
diff --git a/emulators/Makefile b/emulators/Makefile index b134ca82ac3..75f90efce16 100644 --- a/emulators/Makefile +++ b/emulators/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.319 2020/05/31 15:20:21 nia Exp $ +# $NetBSD: Makefile,v 1.320 2020/05/31 15:22:17 nia Exp $ # COMMENT= Emulators for other operating systems @@ -123,7 +123,6 @@ SUBDIR+= libretro-pcsx-rearmed SUBDIR+= libretro-picodrive SUBDIR+= libretro-ppsspp SUBDIR+= libretro-prosystem -SUBDIR+= libretro-reicast SUBDIR+= libretro-sameboy SUBDIR+= libretro-snes9x SUBDIR+= libretro-snes9x2005 diff --git a/emulators/libretro-reicast/DESCR b/emulators/libretro-reicast/DESCR deleted file mode 100644 index 5933481deb8..00000000000 --- a/emulators/libretro-reicast/DESCR +++ /dev/null @@ -1,7 +0,0 @@ -Libretro is a simple but powerful development interface that allows for the -easy creation of emulators, games and multimedia applications that can plug -straight into any libretro-compatible frontend. This development interface is -open to others so that they can run these pluggable emulator and game cores -also in their own programs or devices. - -Reicast is a multi-platform Sega Dreamcast emulator. diff --git a/emulators/libretro-reicast/MESSAGE b/emulators/libretro-reicast/MESSAGE deleted file mode 100644 index a35cb3adca8..00000000000 --- a/emulators/libretro-reicast/MESSAGE +++ /dev/null @@ -1,20 +0,0 @@ -=========================================================================== -$NetBSD: MESSAGE,v 1.3 2019/05/09 23:24:17 nia Exp $ - -Reicast requires the following BIOS files in order to work: - -SHA256 (dc/dc_boot.bin) = -88d6a666495ad14ab5988d8cb730533cfc94ec2cfd53a7eeda14642ab0d4abf9 - -SHA256 (dc/dc_flash.bin) = -dd8b365521a9c08bb4c170da3592212580f7251f35a45d6083774d1c030bc3e3 - -In retroarch, you'll need to place them in the System Directory. - -Alternatively, you can place them in your Content Directory next to the -software you are going to run. - -RetroArch's "glcore" video driver seems to not work. Make sure you're -using "gl" instead. - -=========================================================================== diff --git a/emulators/libretro-reicast/Makefile b/emulators/libretro-reicast/Makefile deleted file mode 100644 index b04842e6c6f..00000000000 --- a/emulators/libretro-reicast/Makefile +++ /dev/null @@ -1,57 +0,0 @@ -# $NetBSD: Makefile,v 1.6 2020/05/26 09:45:16 nia Exp $ - -DISTNAME= libretro-reicast-20190508 -CATEGORIES= emulators -MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/} -GITHUB_PROJECT= reicast-emulator -GITHUB_TAG= 8c38fcedbe064f7fbda9c2213fd6987b7d4e4dbc - -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= https://docs.libretro.com/library/reicast/ -COMMENT= Libretro core based on the Reicast Sega Dreamcast emulator -LICENSE= gnu-gpl-v2 - -USE_TOOLS+= gmake -USE_LANGUAGES= c c++11 - -OPSYSVARS+= SOEXT -SOEXT.Darwin= dylib -SOEXT.*= so -PLIST_SUBST+= SOEXT=${SOEXT} - -MAKE_FLAGS+= platform=unix -MAKE_FLAGS+= HAVE_OPENMP=0 -MAKE_FLAGS+= HAVE_LTCG=0 -MAKE_FLAGS+= SINGLE_PREC_FLAGS=1 -MAKE_FLAGS+= GIT_VERSION="-pkgsrc" -MAKE_FLAGS+= CC_AS=${AS:Q} - -.include "../../mk/bsd.prefs.mk" - -.if ${MACHINE_ARCH} == "x86_64" -MAKE_FLAGS+= WITH_DYNAREC=x86_64 -.elif ${MACHINE_ARCH} == "i386" -MAKE_FLAGS+= WITH_DYNAREC=x86 -.elif ${MACHINE_ARCH} == "aarch64" -MAKE_FLAGS+= WITH_DYNAREC=arm64 -.elif !empty(MACHINE_ARCH:M*arm*) -CFLAGS+= -marm -MAKE_FLAGS+= WITH_DYNAREC=arm -.elif !empty(MACHINE_ARCH:M*mips*) -MAKE_FLAGS+= WITH_DYNAREC=mips -.else -MAKE_FLAGS+= WITH_DYNAREC= -.endif - -BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script=link.T -BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-no-undefined - -INSTALLATION_DIRS+= ${PREFIX}/lib/libretro - -do-install: - ${INSTALL_LIB} ${WRKSRC}/reicast_libretro.so \ - ${DESTDIR}${PREFIX}/lib/libretro/reicast_libretro.so - -.include "options.mk" -.include "../../mk/pthread.buildlink3.mk" -.include "../../mk/bsd.pkg.mk" diff --git a/emulators/libretro-reicast/PLIST b/emulators/libretro-reicast/PLIST deleted file mode 100644 index ff480c15d65..00000000000 --- a/emulators/libretro-reicast/PLIST +++ /dev/null @@ -1,2 +0,0 @@ -@comment $NetBSD: PLIST,v 1.2 2020/05/26 09:45:16 nia Exp $ -lib/libretro/reicast_libretro.${SOEXT} diff --git a/emulators/libretro-reicast/distinfo b/emulators/libretro-reicast/distinfo deleted file mode 100644 index ff1bacce43b..00000000000 --- a/emulators/libretro-reicast/distinfo +++ /dev/null @@ -1,9 +0,0 @@ -$NetBSD: distinfo,v 1.6 2019/12/22 22:24:51 joerg Exp $ - -SHA1 (libretro-reicast-20190508-8c38fcedbe064f7fbda9c2213fd6987b7d4e4dbc.tar.gz) = e9199c1488c6ea9d1fdaa235d224a084117dcce0 -RMD160 (libretro-reicast-20190508-8c38fcedbe064f7fbda9c2213fd6987b7d4e4dbc.tar.gz) = f48d93863cdb9c28682359b7ea0e2f76814c81ae -SHA512 (libretro-reicast-20190508-8c38fcedbe064f7fbda9c2213fd6987b7d4e4dbc.tar.gz) = 65463f18c7e49bda396ee5beb5a1bc39f5c58e047b37ee3857200a97ebb0a0854a2dc79f520ddc5afc0aeebff73baf60e28d79091c8306dbd035715c507f2fc1 -Size (libretro-reicast-20190508-8c38fcedbe064f7fbda9c2213fd6987b7d4e4dbc.tar.gz) = 2613651 bytes -SHA1 (patch-Makefile) = d8d2e91d0c1705647f76da134cd9cd0661d3ec95 -SHA1 (patch-core_hw_sh4_dyna_driver.cpp) = 6d00a7297f528fe3389a13872095da80200a9013 -SHA1 (patch-core_libretro_common.cpp) = b1291f55ced1dc92087d31270f8bc582c2db6fc5 diff --git a/emulators/libretro-reicast/options.mk b/emulators/libretro-reicast/options.mk deleted file mode 100644 index 940f41f778e..00000000000 --- a/emulators/libretro-reicast/options.mk +++ /dev/null @@ -1,41 +0,0 @@ -# $NetBSD: options.mk,v 1.3 2019/05/09 23:24:17 nia Exp $ - -PKG_OPTIONS_VAR= PKG_OPTIONS.libretro-reicast -PKG_OPTIONS_REQUIRED_GROUPS= graphics -PKG_OPTIONS_GROUP.graphics= opengl - -.include "../../mk/bsd.fast.prefs.mk" - -.if !empty(MACHINE_ARCH:M*arm*) -PKG_OPTIONS_GROUP.graphics+= rpi -.endif - -.if !empty(MACHINE_ARCH:Mearm*) && ${OPSYS} == "NetBSD" -PKG_SUGGESTED_OPTIONS+= rpi -.else -PKG_SUGGESTED_OPTIONS+= opengl -.endif - -.include "../../mk/bsd.options.mk" - -.if !empty(PKG_OPTIONS:Mopengl) -.include "../../graphics/MesaLib/buildlink3.mk" -# Try to detect which GL versions are supported. -# OIT requires OpenGL 4.3 -. if !empty(BUILTIN_VERSION.Mesa) -MESA_MAJOR_VER= ${BUILTIN_VERSION.Mesa:C/\..*//gW} -. if ${MESA_MAJOR_VER} >= 12 -MAKE_FLAGS+= HAVE_OIT=1 -. elif ${MESA_MAJOR_VER} >= 8 -MAKE_FLAGS+= HAVE_GL3=1 -. elif ${MESA_MAJOR_VER} >= 7 -MAKE_FLAGS+= HAVE_GL2=1 -. endif -. else -MAKE_FLAGS+= HAVE_GL3=1 -. endif -.elif !empty(PKG_OPTIONS:Mrpi) -MAKE_FLAGS+= GLES=1 -MAKE_FLAGS+= GL_LIB="-lbrcmGLESv2" -.include "../../misc/raspberrypi-userland/buildlink3.mk" -.endif diff --git a/emulators/libretro-reicast/patches/patch-Makefile b/emulators/libretro-reicast/patches/patch-Makefile deleted file mode 100644 index c6baa6ab333..00000000000 --- a/emulators/libretro-reicast/patches/patch-Makefile +++ /dev/null @@ -1,111 +0,0 @@ -$NetBSD: patch-Makefile,v 1.4 2019/12/22 22:24:51 joerg Exp $ - -Don't override pkgsrc-set variables. - -Don't make assumptions based on uname. - ---- Makefile.orig 2019-05-08 14:25:11.000000000 +0000 -+++ Makefile -@@ -21,48 +21,12 @@ HAVE_CLANG := 0 - - TARGET_NAME := reicast - --ifeq ($(HAVE_CLANG),1) -- CXX = ${CC_PREFIX}clang++ -- CC = ${CC_PREFIX}clang -- SHARED := -fuse-ld=lld --else -- CXX = ${CC_PREFIX}g++ -- CC = ${CC_PREFIX}gcc -- SHARED := --endif --CC_AS = ${CC_PREFIX}as -- --MFLAGS := --ASFLAGS := --LDFLAGS := --LDFLAGS_END := --INCFLAGS := --LIBS := --CFLAGS := --CXXFLAGS := -- --GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" - ifneq ($(GIT_VERSION)," unknown") - CXXFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" - endif - --UNAME=$(shell uname -a) -- - LIBRETRO_DIR := . - --# Cross compile ? -- --ifeq (,$(ARCH)) -- ARCH = $(shell uname -m) --endif -- --# Target Dynarec --WITH_DYNAREC = $(ARCH) -- --ifeq ($(ARCH), $(filter $(ARCH), i386 i686)) -- WITH_DYNAREC = x86 --endif -- - ifeq ($(platform),) - platform = unix - ifeq ($(UNAME),) -@@ -727,7 +691,7 @@ ifeq ($(HAVE_GL3), 1) - CORE_DEFINES += -DHAVE_GL3 - endif - --RZDCY_CFLAGS += $(CFLAGS) -c $(OPTFLAGS) -frename-registers -ffast-math -ftree-vectorize -fomit-frame-pointer -+RZDCY_CFLAGS += $(CFLAGS) -c -frename-registers -ffast-math -ftree-vectorize -fomit-frame-pointer - - ifeq ($(WITH_DYNAREC), arm) - ifneq (,$(findstring odroid,$(platform))) -@@ -785,10 +749,6 @@ endif - - RZDCY_CXXFLAGS := $(RZDCY_CFLAGS) -fexceptions -fno-rtti -std=gnu++11 - --ifeq (,$(findstring msvc,$(platform))) -- CORE_DEFINES += -funroll-loops --endif -- - ifeq ($(HAVE_OIT), 1) - HAVE_CORE = 1 - CORE_DEFINES += -DHAVE_OIT -DHAVE_GL4 -@@ -849,7 +809,7 @@ RZDCY_CXXFLAGS += $(CORE_DEFINES) - CFLAGS += $(CORE_DEFINES) - CXXFLAGS += $(CORE_DEFINES) - --CFLAGS += $(OPTFLAGS) -c -+CFLAGS += -c - CFLAGS += -fno-strict-aliasing -ffast-math - CXXFLAGS += -fno-rtti -fpermissive -fno-operator-names - LIBS += -lm -@@ -897,20 +857,20 @@ $(TARGET): $(OBJECTS) - ifeq ($(STATIC_LINKING), 1) - $(AR) rcs $@ $(OBJECTS) - else -- $(LD) $(MFLAGS) $(fpic) $(SHARED) $(LDFLAGS) $(OBJECTS) $(LDFLAGS_END) $(GL_LIB) $(LIBS) -o $@ -+ $(CXX) $(fpic) $(SHARED) $(LDFLAGS) $(OBJECTS) $(LDFLAGS_END) $(GL_LIB) $(LIBS) -o $@ - endif - - %.o: %.cpp -- $(CXX) $(INCFLAGS) $(CFLAGS) $(MFLAGS) $(CXXFLAGS) $< -o $@ -+ $(CXX) $(INCFLAGS) $(CFLAGS) $(CXXFLAGS) $< -o $@ - - %.o: %.c -- $(CC) $(INCFLAGS) $(CFLAGS) $(MFLAGS) $< -o $@ -+ $(CC) $(INCFLAGS) $(CFLAGS) $< -o $@ - - %.o: %.S - $(CC_AS) $(ASFLAGS) $(INCFLAGS) $< -o $@ - - %.o: %.cc -- $(CXX) $(INCFLAGS) $(CFLAGS) $(MFLAGS) $(CXXFLAGS) $< -o $@ -+ $(CXX) $(INCFLAGS) $(CFLAGS) $(CXXFLAGS) $< -o $@ - - clean: - rm -f $(OBJECTS) $(TARGET) diff --git a/emulators/libretro-reicast/patches/patch-core_hw_sh4_dyna_driver.cpp b/emulators/libretro-reicast/patches/patch-core_hw_sh4_dyna_driver.cpp deleted file mode 100644 index 1d2f5b81d7c..00000000000 --- a/emulators/libretro-reicast/patches/patch-core_hw_sh4_dyna_driver.cpp +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-core_hw_sh4_dyna_driver.cpp,v 1.1 2018/10/13 17:02:17 nia Exp $ - -Add support for NetBSD. - ---- core/hw/sh4/dyna/driver.cpp.orig 2018-10-12 17:39:34.000000000 +0000 -+++ core/hw/sh4/dyna/driver.cpp -@@ -34,7 +34,8 @@ u8 SH4_TCB[CODE_SIZE+4096] - #if defined(_WIN32) || FEAT_SHREC != DYNAREC_JIT - ; - #elif defined(__linux__) || defined(__HAIKU__) || \ -- defined(__FreeBSD__) || defined(__DragonFly__) -+ defined(__FreeBSD__) || defined(__DragonFly__) || \ -+ defined(__NetBSD__) - __attribute__((section(".text"))); - #elif defined(__MACH__) - __attribute__((section("__TEXT,.text"))); diff --git a/emulators/libretro-reicast/patches/patch-core_libretro_common.cpp b/emulators/libretro-reicast/patches/patch-core_libretro_common.cpp deleted file mode 100644 index abd9893b4d1..00000000000 --- a/emulators/libretro-reicast/patches/patch-core_libretro_common.cpp +++ /dev/null @@ -1,15 +0,0 @@ -$NetBSD: patch-core_libretro_common.cpp,v 1.1 2018/10/13 17:02:17 nia Exp $ - -Add support for NetBSD. - ---- core/libretro/common.cpp.orig 2018-10-12 17:39:34.000000000 +0000 -+++ core/libretro/common.cpp -@@ -342,7 +342,7 @@ static void sigill_handler(int sn, sigin - #endif - - #if defined(__MACH__) || defined(__linux__) || defined(__HAIKU__) || \ -- defined(__FreeBSD__) || defined(__DragonFly__) -+ defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) - //#define LOG_SIGHANDLER - - static void signal_handler(int sn, siginfo_t * si, void *segfault_ctx) |