pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators blastem: Add emulators/blastem version 0.6.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b83d6cf5d34e
branches:  trunk
changeset: 334929:b83d6cf5d34e
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jun 09 13:58:08 2019 +0000

description:
blastem: Add emulators/blastem version 0.6.2

BlastEm is an open source, higly accurate emulator for the
Genesis/Megadrive that runs on modest hardware.

Features:

* Save states
* Integrated debugger
* GDB remote debugging
* Joystick/gamepad support
* Mega/Sega Mouse emulation
* XBAND and Saturn keyboard emulation
* Support for homebrew using the SSF2 mapper with Mega Everdrive
  compatible heuristics
* Save RAM and EEPROM support
* Cartridge lock-on for both Sonic & Knuckles and XBAND
* Turbo and slow modes
* configurable low pass filter
* Single pass GLSL shaders
* Sega Master System emulation

diffstat:

 emulators/Makefile                       |   3 +-
 emulators/blastem/DESCR                  |  19 ++++++
 emulators/blastem/MESSAGE.NetBSD         |   7 ++
 emulators/blastem/Makefile               |  88 ++++++++++++++++++++++++++++++++
 emulators/blastem/PLIST                  |  24 ++++++++
 emulators/blastem/distinfo               |   7 ++
 emulators/blastem/files/blastem.desktop  |  10 +++
 emulators/blastem/patches/patch-Makefile |  15 +++++
 8 files changed, 172 insertions(+), 1 deletions(-)

diffs (215 lines):

diff -r 1d720a05c61a -r b83d6cf5d34e emulators/Makefile
--- a/emulators/Makefile        Sun Jun 09 13:57:41 2019 +0000
+++ b/emulators/Makefile        Sun Jun 09 13:58:08 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.296 2019/06/08 22:46:03 nia Exp $
+# $NetBSD: Makefile,v 1.297 2019/06/09 13:58:08 nia Exp $
 #
 
 COMMENT=       Emulators for other operating systems
@@ -20,6 +20,7 @@
 SUBDIR+=       arnold
 SUBDIR+=       atari800
 SUBDIR+=       b-em
+SUBDIR+=       blastem
 SUBDIR+=       blinkensim
 SUBDIR+=       bochs
 SUBDIR+=       ckmame
diff -r 1d720a05c61a -r b83d6cf5d34e emulators/blastem/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/blastem/DESCR   Sun Jun 09 13:58:08 2019 +0000
@@ -0,0 +1,19 @@
+BlastEm is an open source, higly accurate emulator for the
+Genesis/Megadrive that runs on modest hardware.
+
+Features:
+
+* Save states
+* Integrated debugger
+* GDB remote debugging
+* Joystick/gamepad support
+* Mega/Sega Mouse emulation
+* XBAND and Saturn keyboard emulation
+* Support for homebrew using the SSF2 mapper with Mega Everdrive
+  compatible heuristics
+* Save RAM and EEPROM support
+* Cartridge lock-on for both Sonic & Knuckles and XBAND
+* Turbo and slow modes
+* configurable low pass filter
+* Single pass GLSL shaders
+* Sega Master System emulation
diff -r 1d720a05c61a -r b83d6cf5d34e emulators/blastem/MESSAGE.NetBSD
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/blastem/MESSAGE.NetBSD  Sun Jun 09 13:58:08 2019 +0000
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE.NetBSD,v 1.1 2019/06/09 13:58:08 nia Exp $
+
+Lowering the system audio latency (or blk_ms) with sysctl(8) may be
+required to achieve full performance and framerates.
+
+===========================================================================
diff -r 1d720a05c61a -r b83d6cf5d34e emulators/blastem/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/blastem/Makefile        Sun Jun 09 13:58:08 2019 +0000
@@ -0,0 +1,88 @@
+# $NetBSD: Makefile,v 1.1 2019/06/09 13:58:08 nia Exp $
+
+DISTNAME=      8aeac7bd9fa7
+PKGNAME=       blastem-0.6.2
+CATEGORIES=    emulators
+MASTER_SITES=  https://www.retrodev.com/repos/blastem/archive/
+DIST_SUBDIR=   blastem
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://www.retrodev.com/blastem/
+COMMENT=       Higly accurate Genesis/Mega Drive emulator
+LICENSE=       gnu-gpl-v3
+
+WRKSRC=                ${WRKDIR}/blastem-${DISTNAME}
+USE_TOOLS+=    gmake pkg-config
+USE_LANGUAGES= c99
+
+MAKE_FLAGS+=   HOST_ZLIB=1
+MAKE_FLAGS+=   OPT=
+MAKE_FLAGS+=   NOLTO=1
+MAKE_FLAGS+=   DATA_PATH=${PREFIX}/share/blastem
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/blastem
+INSTALLATION_DIRS+=    share/blastem/images
+INSTALLATION_DIRS+=    share/blastem/shaders
+INSTALLATION_DIRS+=    share/doc/blastem
+INSTALLATION_DIRS+=    share/icons/hicolor/48x48/apps
+INSTALLATION_DIRS+=    share/icons/hicolor/72x72/apps
+INSTALLATION_DIRS+=    share/icons/hicolor/96x96/apps
+INSTALLATION_DIRS+=    share/icons/hicolor/144x144/apps
+
+# wants to use a JIT
+NOT_PAX_MPROTECT_SAFE+=        bin/blastem
+
+# only supports writing 64-bit and 32-bit x86 asm
+# may support ARM in future
+ONLY_FOR_PLATFORM=     *-*-x86_64 *-*-i386
+
+pre-configure:
+       ${CP} ${FILESDIR}/blastem.desktop ${WRKDIR}/blastem.desktop
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/dis \
+           ${DESTDIR}${PREFIX}/bin/blastem-dis
+       ${INSTALL_PROGRAM} ${WRKSRC}/zdis \
+           ${DESTDIR}${PREFIX}/bin/blastem-zdis
+       ${INSTALL_PROGRAM} ${WRKSRC}/stateview \
+           ${DESTDIR}${PREFIX}/bin/blastem-stateview
+       ${INSTALL_PROGRAM} ${WRKSRC}/vgmplay \
+           ${DESTDIR}${PREFIX}/bin/blastem-vgmplay
+       ${INSTALL_PROGRAM} ${WRKSRC}/blastem \
+           ${DESTDIR}${PREFIX}/bin/blastem
+       ${INSTALL_DATA} ${WRKSRC}/README \
+           ${DESTDIR}${PREFIX}/share/doc/blastem/README
+       ${INSTALL_DATA} ${WRKSRC}/COPYING \
+           ${DESTDIR}${PREFIX}/share/doc/blastem/COPYING
+       ${INSTALL_DATA} ${WRKSRC}/CHANGELOG \
+           ${DESTDIR}${PREFIX}/share/doc/blastem/CHANGELOG
+       ${INSTALL_DATA} ${WRKSRC}/default.cfg \
+           ${DESTDIR}${PREFIX}/share/blastem/default.cfg
+       ${INSTALL_DATA} ${WRKSRC}/gamecontrollerdb.txt \
+           ${DESTDIR}${PREFIX}/share/blastem/gamecontrollerdb.txt
+       ${INSTALL_DATA} ${WRKSRC}/shaders/* \
+           ${DESTDIR}${PREFIX}/share/blastem/shaders
+       ${INSTALL_DATA} ${WRKSRC}/images/* \
+           ${DESTDIR}${PREFIX}/share/blastem/images
+       ${INSTALL_DATA} ${WRKSRC}/rom.db \
+           ${DESTDIR}${PREFIX}/share/blastem/rom.db
+       ${INSTALL_DATA} ${WRKSRC}/android/res/drawable-mdpi/ic_launcher.png \
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/blastem.png
+       ${INSTALL_DATA} ${WRKSRC}/android/res/drawable-hdpi/ic_launcher.png \
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/72x72/apps/blastem.png
+       ${INSTALL_DATA} ${WRKSRC}/android/res/drawable-xhdpi/ic_launcher.png \
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/96x96/apps/blastem.png
+       ${INSTALL_DATA} ${WRKSRC}/android/res/drawable-xxhdpi/ic_launcher.png \
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/144x144/apps/blastem.png
+       ${INSTALL_DATA} ${WRKDIR}/blastem.desktop \
+           ${DESTDIR}${PREFIX}/share/applications/blastem.desktop
+
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../graphics/glew/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1d720a05c61a -r b83d6cf5d34e emulators/blastem/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/blastem/PLIST   Sun Jun 09 13:58:08 2019 +0000
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1 2019/06/09 13:58:08 nia Exp $
+bin/blastem
+bin/blastem-dis
+bin/blastem-stateview
+bin/blastem-vgmplay
+bin/blastem-zdis
+share/applications/blastem.desktop
+share/blastem/default.cfg
+share/blastem/gamecontrollerdb.txt
+share/blastem/images/360.png
+share/blastem/images/ps4.png
+share/blastem/images/ps4_6b.png
+share/blastem/rom.db
+share/blastem/shaders/crt.f.glsl
+share/blastem/shaders/crt.v.glsl
+share/blastem/shaders/default.f.glsl
+share/blastem/shaders/default.v.glsl
+share/doc/blastem/CHANGELOG
+share/doc/blastem/COPYING
+share/doc/blastem/README
+share/icons/hicolor/144x144/apps/blastem.png
+share/icons/hicolor/48x48/apps/blastem.png
+share/icons/hicolor/72x72/apps/blastem.png
+share/icons/hicolor/96x96/apps/blastem.png
diff -r 1d720a05c61a -r b83d6cf5d34e emulators/blastem/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/blastem/distinfo        Sun Jun 09 13:58:08 2019 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2019/06/09 13:58:08 nia Exp $
+
+SHA1 (blastem/8aeac7bd9fa7.tar.gz) = 1953ebfd0eaf5e5630ff5488779eb8e6bb8fe9bf
+RMD160 (blastem/8aeac7bd9fa7.tar.gz) = f9d20a2f4211d03eb2278dcdcd36a8afb1e939e0
+SHA512 (blastem/8aeac7bd9fa7.tar.gz) = dec0d0c49cec9f896884b93c6ec568eb88d8ae51ddcf93445a70e9ad6543ef92c34fcdf14e66b56de1805dc5876d1ff17e51ab79d8d894da51312a42ac1c36d3
+Size (blastem/8aeac7bd9fa7.tar.gz) = 1113490 bytes
+SHA1 (patch-Makefile) = 1635e72bb90227b5fbfc32fe43bd5552ca48fb64
diff -r 1d720a05c61a -r b83d6cf5d34e emulators/blastem/files/blastem.desktop
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/blastem/files/blastem.desktop   Sun Jun 09 13:58:08 2019 +0000
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=BlastEm
+GenericName=Mega Drive Emulator
+Comment=Emulator for the Genesis / Mega Drive
+Icon=blastem
+Exec=blastem
+Terminal=false
+Categories=Game;Emulator;
diff -r 1d720a05c61a -r b83d6cf5d34e emulators/blastem/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/blastem/patches/patch-Makefile  Sun Jun 09 13:58:08 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile,v 1.1 2019/06/09 13:58:08 nia Exp $
+
+Do not use -Werror or override CFLAGS.
+
+--- Makefile.orig      2019-03-28 06:34:53.000000000 +0000
++++ Makefile
+@@ -36,7 +36,7 @@ NET:=net.o
+ EXE:=
+ 
+ HAS_PROC:=$(shell if [ -d /proc ]; then /bin/echo -e -DHAS_PROC; fi)
+-CFLAGS:=-std=gnu99 -Wreturn-type -Werror=return-type -Werror=implicit-function-declaration -Wno-unused-value $(HAS_PROC) -DHAVE_UNISTD_H
++CFLAGS+=-std=gnu99 -Wreturn-type -Wno-unused-value $(HAS_PROC) -DHAVE_UNISTD_H
+ 
+ ifeq ($(OS),Darwin)
+ LIBS=sdl2 glew



Home | Main Index | Thread Index | Old Index