summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2018-08-16 13:25:27 +0000
committernia <nia@pkgsrc.org>2018-08-16 13:25:27 +0000
commitcd7974f171bc9de4dc79b7d15382bbbd8ea8e332 (patch)
tree9594a3fc7ef964b68b13c96ab21f04812ca606d8 /emulators
parent5b1a7c80c973e0b4006ea3bc666fc80b439b89a2 (diff)
downloadpkgsrc-cd7974f171bc9de4dc79b7d15382bbbd8ea8e332.tar.gz
Remove 'dynarec' option and enable it by default instead.
Discussed with wiz.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/libretro-mupen64plus/Makefile12
-rw-r--r--emulators/libretro-mupen64plus/options.mk27
-rw-r--r--emulators/libretro-pcsx-rearmed/Makefile8
-rw-r--r--emulators/libretro-pcsx-rearmed/options.mk18
4 files changed, 18 insertions, 47 deletions
diff --git a/emulators/libretro-mupen64plus/Makefile b/emulators/libretro-mupen64plus/Makefile
index fb2cfd48da0..69dacd2f9c3 100644
--- a/emulators/libretro-mupen64plus/Makefile
+++ b/emulators/libretro-mupen64plus/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2018/08/11 13:59:39 nia Exp $
+# $NetBSD: Makefile,v 1.12 2018/08/16 13:25:27 nia Exp $
DISTNAME= libretro-mupen64plus-20180628
CATEGORIES= emulators
@@ -23,6 +23,16 @@ SUBST_SED.vc+= -e 's;/opt/vc;${PREFIX};g'
MAKE_FLAGS+= GIT_VERSION="-pkgsrc"
+.if !empty(MACHINE_ARCH:M*arm*)
+MAKE_FLAGS+= WITH_DYNAREC=arm
+.elif ${MACHINE_ARCH} == "i386"
+MAKE_FLAGS+= WITH_DYNAREC=x86
+.elif ${MACHINE_ARCH} == "x86_64"
+MAKE_FLAGS+= WITH_DYNAREC=x86_64
+.else
+MAKE_FLAGS+= WITH_DYNAREC=
+.endif
+
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
CFLAGS.NetBSD+= -DHAVE_POSIX_MEMALIGN=1
diff --git a/emulators/libretro-mupen64plus/options.mk b/emulators/libretro-mupen64plus/options.mk
index 418364659b9..93980cb0eba 100644
--- a/emulators/libretro-mupen64plus/options.mk
+++ b/emulators/libretro-mupen64plus/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.7 2018/08/14 13:08:57 nia Exp $
+# $NetBSD: options.mk,v 1.8 2018/08/16 13:25:27 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libretro-mupen64plus
PKG_OPTIONS_REQUIRED_GROUPS= graphics
@@ -8,17 +8,10 @@ PKG_OPTIONS_GROUP.graphics= opengl
.if !empty(MACHINE_ARCH:M*arm*)
PKG_OPTIONS_GROUP.graphics+= rpi
-PKG_SUPPORTED_OPTIONS+= dynarec
-PKG_SUGGESTED_OPTIONS+= rpi dynarec
-MUPEN64_DYNAREC_ARCH= arm
-.elif ${MACHINE_ARCH} == "i386"
-PKG_SUPPORTED_OPTIONS+= dynarec
-PKG_SUGGESTED_OPTIONS+= dynarec opengl
-MUPEN64_DYNAREC_ARCH= x86
-.elif ${MACHINE_ARCH} == "x86_64"
-PKG_SUPPORTED_OPTIONS+= dynarec
-PKG_SUGGESTED_OPTIONS+= dynarec opengl
-MUPEN64_DYNAREC_ARCH= x86_64
+.endif
+
+.if !empty(MACHINE_ARCH:Mearm*) && ${OPSYS} == "NetBSD"
+PKG_SUGGESTED_OPTIONS+= rpi
.else
PKG_SUGGESTED_OPTIONS+= opengl
.endif
@@ -27,15 +20,7 @@ PKG_SUGGESTED_OPTIONS+= opengl
.if !empty(PKG_OPTIONS:Mopengl)
.include "../../graphics/MesaLib/buildlink3.mk"
-.endif
-
-.if !empty(PKG_OPTIONS:Mrpi)
+.elif !empty(PKG_OPTIONS:Mrpi)
MAKE_ENV+= platform=rpi
.include "../../misc/raspberrypi-userland/buildlink3.mk"
.endif
-
-.if !empty(PKG_OPTIONS:Mdynarec)
-MAKE_ENV+= WITH_DYNAREC=${MUPEN64_DYNAREC_ARCH}
-.else
-MAKE_ENV+= WITH_DYNAREC=
-.endif
diff --git a/emulators/libretro-pcsx-rearmed/Makefile b/emulators/libretro-pcsx-rearmed/Makefile
index 190f012478a..9d863e6ba9e 100644
--- a/emulators/libretro-pcsx-rearmed/Makefile
+++ b/emulators/libretro-pcsx-rearmed/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2015/03/07 21:14:32 tnn Exp $
+# $NetBSD: Makefile,v 1.7 2018/08/16 13:25:28 nia Exp $
DISTNAME= libretro-pcsx-rearmed-0.22
CATEGORIES= emulators
@@ -29,12 +29,6 @@ PCSX_REARMED_PLATFORM= unix
MAKE_ENV+= platform="${PCSX_REARMED_PLATFORM}"
-.if !empty(MACHINE_ARCH:M*arm*)
-# only ARM-specific options for now, and options framework
-#insists on having at least one option, so only pull it in for ARM
-.include "options.mk"
-.endif
-
do-install:
${INSTALL_LIB} ${WRKSRC}/pcsx_rearmed_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/pcsx_rearmed_libretro.so
diff --git a/emulators/libretro-pcsx-rearmed/options.mk b/emulators/libretro-pcsx-rearmed/options.mk
deleted file mode 100644
index 263f82100ca..00000000000
--- a/emulators/libretro-pcsx-rearmed/options.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-# $NetBSD: options.mk,v 1.2 2015/02/05 16:57:36 wiz Exp $
-
-PKG_OPTIONS_VAR= PKG_OPTIONS.libretro-pcsx-rearmed
-
-.include "../../mk/bsd.fast.prefs.mk"
-
-.if !empty(MACHINE_ARCH:M*arm*)
-PKG_SUPPORTED_OPTIONS+= dynarec
-PKG_SUGGESTED_OPTIONS+= dynarec
-.endif
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mdynarec)
-# enabled by default
-.else
-CONFIGURE_ARGS+= --disable-dynarec
-.endif