pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc libretro-fbalpha: add version 0.2.97.42.20180408.
details: https://anonhg.NetBSD.org/pkgsrc/rev/552ad046b7fa
branches: trunk
changeset: 311765:552ad046b7fa
user: nia <nia%pkgsrc.org@localhost>
date: Fri Aug 17 12:54:48 2018 +0000
description:
libretro-fbalpha: add version 0.2.97.42.20180408.
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.
FB Alpha (Final Burn Alpha) is an arcade game emulator.
diffstat:
emulators/Makefile | 3 +-
emulators/libretro-fbalpha/DESCR | 7 +
emulators/libretro-fbalpha/Makefile | 33 ++
emulators/libretro-fbalpha/PLIST | 2 +
emulators/libretro-fbalpha/distinfo | 12 +
emulators/libretro-fbalpha/patches/patch-makefile.libretro | 17 +
emulators/libretro-fbalpha/patches/patch-src_burn_drv_galaxian_d__galaxian.cpp | 27 ++
emulators/libretro-fbalpha/patches/patch-src_burn_drv_pst90s_d__raiden2.cpp | 26 ++
emulators/libretro-fbalpha/patches/patch-src_burn_snd_msm6295.cpp | 17 +
emulators/libretro-fbalpha/patches/patch-src_burner_libretro_libretro.cpp | 33 ++
emulators/libretro-fbalpha/patches/patch-src_cpu_nec__intf.cpp | 19 +
licenses/fbalpha-license | 121 ++++++++++
12 files changed, 316 insertions(+), 1 deletions(-)
diffs (truncated from 375 to 300 lines):
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/Makefile
--- a/emulators/Makefile Fri Aug 17 12:38:48 2018 +0000
+++ b/emulators/Makefile Fri Aug 17 12:54:48 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.281 2018/08/15 15:32:11 nia Exp $
+# $NetBSD: Makefile,v 1.282 2018/08/17 12:54:48 nia Exp $
#
COMMENT= Emulators for other operating systems
@@ -102,6 +102,7 @@
SUBDIR+= libretro-core-info
SUBDIR+= libretro-database
SUBDIR+= libretro-desmume
+SUBDIR+= libretro-fbalpha
SUBDIR+= libretro-fceumm
SUBDIR+= libretro-freeintv
SUBDIR+= libretro-fuse
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/DESCR Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,7 @@
+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.
+
+FB Alpha (Final Burn Alpha) is an arcade game emulator.
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/Makefile Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: Makefile,v 1.1 2018/08/17 12:54:48 nia Exp $
+
+DISTNAME= libretro-fbalpha-0.2.97.42.20180408
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
+GITHUB_PROJECT= fbalpha
+GITHUB_TAG= 08cf5c6abbda2512d5ef73ef8483b849a34a7603
+
+MAINTAINER= nia%NetBSD.org@localhost
+HOMEPAGE= https://github.com/libretro/fbalpha
+COMMENT= Libretro core based on the FB Alpha arcade game emulator
+LICENSE= fbalpha-license AND mame-license
+
+EXTRACT_USING= bsdtar
+USE_TOOLS+= gmake
+MAKE_FILE= makefile.libretro
+USE_LANGUAGES= c c++
+
+MAKE_FLAGS+= GIT_VERSION="-pkgsrc"
+
+.include "../../mk/endian.mk"
+
+.if ${MACHINE_ENDIAN} == "big"
+MAKE_FLAGS+= ENDIANNESS_DEFINES=-DWORDS_BIGENDIAN
+.endif
+
+INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
+
+do-install:
+ ${INSTALL_LIB} ${WRKSRC}/fbalpha_libretro.so \
+ ${DESTDIR}${PREFIX}/lib/libretro/fbalpha_libretro.so
+
+.include "../../mk/bsd.pkg.mk"
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/PLIST Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/08/17 12:54:48 nia Exp $
+lib/libretro/fbalpha_libretro.so
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/distinfo Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,12 @@
+$NetBSD: distinfo,v 1.1 2018/08/17 12:54:48 nia Exp $
+
+SHA1 (libretro-fbalpha-0.2.97.42.20180408-08cf5c6abbda2512d5ef73ef8483b849a34a7603.tar.gz) = 9b7eff020b1bddf8b0888f1b6d1ab1adfe14db8b
+RMD160 (libretro-fbalpha-0.2.97.42.20180408-08cf5c6abbda2512d5ef73ef8483b849a34a7603.tar.gz) = e52b45173079a5449d036eefd539ec0f2ec7cba7
+SHA512 (libretro-fbalpha-0.2.97.42.20180408-08cf5c6abbda2512d5ef73ef8483b849a34a7603.tar.gz) =
6bdbbc1a082878d14c86d5c5ddb5cc86f6342f2f408bedadc7510c612cf781bb4d0e836bd0c99997900f552d74075d34c812775e1a71760612a038667aa06e1d
+Size (libretro-fbalpha-0.2.97.42.20180408-08cf5c6abbda2512d5ef73ef8483b849a34a7603.tar.gz) = 9243803 bytes
+SHA1 (patch-makefile.libretro) = 53580ffc41c22c745d70aa9949c5df2affc783d4
+SHA1 (patch-src_burn_drv_galaxian_d__galaxian.cpp) = e63fbc12dd7d0db2b9f98862bf6c1ecc94c4c4f3
+SHA1 (patch-src_burn_drv_pst90s_d__raiden2.cpp) = a74ab0ce1c3c2ff5ef579d4051aba4795d274898
+SHA1 (patch-src_burn_snd_msm6295.cpp) = 81c446a7cbd25a73c3df24a2ec06499702c36992
+SHA1 (patch-src_burner_libretro_libretro.cpp) = b6fd783526f99a6fc296ccbf27e661af9ee14246
+SHA1 (patch-src_cpu_nec__intf.cpp) = 631d76b945ee7e214e47718b45666f27ac2ea7b2
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/patches/patch-makefile.libretro
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/patches/patch-makefile.libretro Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-makefile.libretro,v 1.1 2018/08/17 12:54:48 nia Exp $
+
+Don't force -O3.
+
+--- makefile.libretro.orig 2018-04-08 06:33:58.000000000 +0000
++++ makefile.libretro
+@@ -427,8 +427,8 @@ ifeq ($(DEBUG), 1)
+ CXXFLAGS += -O0 -g -DFBA_DEBUG
+ else
+ ifeq (,$(findstring msvc,$(platform)))
+- CFLAGS += -O3 -DNDEBUG
+- CXXFLAGS += -O3 -DNDEBUG
++ CFLAGS += -DNDEBUG
++ CXXFLAGS += -DNDEBUG
+ else
+ CFLAGS += -O2 -DNDEBUG
+ CXXFLAGS += -O2 -DNDEBUG
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/patches/patch-src_burn_drv_galaxian_d__galaxian.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/patches/patch-src_burn_drv_galaxian_d__galaxian.cpp Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,27 @@
+$NetBSD: patch-src_burn_drv_galaxian_d__galaxian.cpp,v 1.1 2018/08/17 12:54:48 nia Exp $
+
+Fixing The End sound volume (#199)
+
+Upstream commit: b5550733fb162ae4c5de15d2f9c42db4a919c3df
+
+--- src/burn/drv/galaxian/d_galaxian.cpp.orig 2018-04-08 06:33:58.000000000 +0000
++++ src/burn/drv/galaxian/d_galaxian.cpp
+@@ -16864,12 +16864,12 @@ static INT32 TheendInit()
+
+ KonamiPPIInit();
+
+- filter_rc_set_src_gain(0, 0.02);
+- filter_rc_set_src_gain(1, 0.02);
+- filter_rc_set_src_gain(2, 0.02);
+- filter_rc_set_src_gain(3, 0.02);
+- filter_rc_set_src_gain(4, 0.02);
+- filter_rc_set_src_gain(5, 0.02);
++ filter_rc_set_src_gain(0, 0.12);
++ filter_rc_set_src_gain(1, 0.12);
++ filter_rc_set_src_gain(2, 0.12);
++ filter_rc_set_src_gain(3, 0.12);
++ filter_rc_set_src_gain(4, 0.12);
++ filter_rc_set_src_gain(5, 0.12);
+
+ return nRet;
+ }
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/patches/patch-src_burn_drv_pst90s_d__raiden2.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/patches/patch-src_burn_drv_pst90s_d__raiden2.cpp Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_burn_drv_pst90s_d__raiden2.cpp,v 1.1 2018/08/17 12:54:48 nia Exp $
+
+Fixing Raiden 2 ARM issue (#198)
+
+Upstream commit: bfc1f2fa0a9ca41add7858ba3badfa49257ec069
+
+--- src/burn/drv/pst90s/d_raiden2.cpp.orig 2018-04-08 06:33:58.000000000 +0000
++++ src/burn/drv/pst90s/d_raiden2.cpp
+@@ -802,7 +802,7 @@ static void cop_cmd_write(INT32 offset,
+ cop_status |= 0x8000;
+ cop_angle = 0;
+ } else {
+- cop_angle = (UINT16)(atan(double(dx)/double(dy)) * 128 / M_PI);
++ cop_angle = (INT32)(atan(double(dx)/double(dy)) * 128 / M_PI);
+ if(dy<0)
+ cop_angle += 0x80;
+ }
+@@ -822,7 +822,7 @@ static void cop_cmd_write(INT32 offset,
+ cop_status |= 0x8000;
+ cop_angle = 0;
+ } else {
+- cop_angle = (UINT16)(atan(double(dx)/double(dy)) * 128 / M_PI);
++ cop_angle = (INT32)(atan(double(dx)/double(dy)) * 128 / M_PI);
+ if(dy<0)
+ cop_angle += 0x80;
+ }
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/patches/patch-src_burn_snd_msm6295.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/patches/patch-src_burn_snd_msm6295.cpp Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_burn_snd_msm6295.cpp,v 1.1 2018/08/17 12:54:48 nia Exp $
+
+"Fixing some sound interpolation issue in nec cpu"
+
+Upstream commit: 458002c9ce850864952ff5cc62818315d788957f
+
+--- src/burn/snd/msm6295.cpp.orig 2018-04-08 06:33:58.000000000 +0000
++++ src/burn/snd/msm6295.cpp
+@@ -302,7 +302,7 @@ static void MSM6295Render_Cubic(INT32 nC
+ pChannelInfo->nBufPos = 4;
+ }
+
+- nOutput += INTERPOLATE4PS_16BIT(nFractionalPosition,
++ nOutput += INTERPOLATE4PS_16BIT(nFractionalPosition & 0x0FFF,
+ MSM6295ChannelData[nChip][nChannel][pChannelInfo->nBufPos - 4],
+ MSM6295ChannelData[nChip][nChannel][pChannelInfo->nBufPos - 3],
+ MSM6295ChannelData[nChip][nChannel][pChannelInfo->nBufPos - 2],
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/patches/patch-src_burner_libretro_libretro.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/patches/patch-src_burner_libretro_libretro.cpp Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_burner_libretro_libretro.cpp,v 1.1 2018/08/17 12:54:48 nia Exp $
+
+Fix for "Dip switches not working? #185"
+
+Upstream commit: bbae856806f589286f340e55c9653b0f6d45120f
+
+--- src/burner/libretro/libretro.cpp.orig 2018-04-08 06:33:58.000000000 +0000
++++ src/burner/libretro/libretro.cpp
+@@ -165,6 +165,7 @@ INT32 nFireButtons = 0;
+ bool bStreetFighterLayout = false;
+ bool bButtonMapped = false;
+ bool bVolumeIsFireButton = false;
++INT32 bDip = 1;
+
+ // libretro globals
+ void retro_set_video_refresh(retro_video_refresh_t cb) { video_cb = cb; }
+@@ -3391,9 +3392,14 @@ INT32 GameInpInit()
+ }
+ memset(GameInp, 0, nSize);
+
+- GameInpBlank(1);
++ // Initializing dipswitches several times is causing issues (#185)
++ // So let's use a variable (bDip global) to avoid initializing them several times
++ GameInpBlank(bDip);
+
+- InpDIPSWResetDIPs();
++ if(bDip)
++ InpDIPSWResetDIPs();
++
++ bDip = 0;
+
+ GameInpInitMacros();
+
diff -r e06bfe7c1736 -r 552ad046b7fa emulators/libretro-fbalpha/patches/patch-src_cpu_nec__intf.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/libretro-fbalpha/patches/patch-src_cpu_nec__intf.cpp Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_cpu_nec__intf.cpp,v 1.1 2018/08/17 12:54:48 nia Exp $
+
+"Fixing some UB in nec cpu"
+
+Upstream commit: 1c7d1ee57d7853ab8928e12a9eb80efe509ba96c
+
+--- src/cpu/nec_intf.cpp.orig 2018-04-08 06:33:58.000000000 +0000
++++ src/cpu/nec_intf.cpp
+@@ -211,8 +211,8 @@ UINT32 VezReadLong(UINT32 a)
+ if ( p )
+ return *(p + (a / 4));
+ else
+- return VezCurrentCPU->ReadHandler(a) + (VezCurrentCPU->ReadHandler(a+1) * 0x100) +
+- (VezCurrentCPU->ReadHandler(a+2) * 0x10000) + (VezCurrentCPU->ReadHandler(a+3) * 0x1000000);
++ return VezCurrentCPU->ReadHandler(a) + (VezCurrentCPU->ReadHandler(a+1) << 8) +
++ (VezCurrentCPU->ReadHandler(a+2) << 16) + (VezCurrentCPU->ReadHandler(a+3) << 24);
+ }
+
+ static void VezCheatWrite(UINT32 a, UINT8 d)
diff -r e06bfe7c1736 -r 552ad046b7fa licenses/fbalpha-license
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/licenses/fbalpha-license Fri Aug 17 12:54:48 2018 +0000
@@ -0,0 +1,121 @@
+You may freely use, modify, and distribute both the FB Alpha source code and
+binary, however the following restrictions apply to the FB Alpha original
+material (see below for a list of libraries with differing licenses, please
+consult their respective documentation for more information):
+
+ - You may not sell, lease, rent or otherwise seek to gain monetary profit
+ from FB Alpha;
+ - You must make public any changes you make to the source code;
+ - You must include, verbatim, the full text of this license;
+ - You may not distribute binaries which support games with copyright dates
+ less then three years old;
+ - You may not distribute FB Alpha with ROM images unless you have the legal
+ right to distribute them;
+ - You may use dynamic linked libraries (dlls) for network play only (all
+ other use is prohibited);
+ - You may not ask for donations to support your work on any project that uses
+ the FB Alpha source code.
+
+FB Alpha can currently be obtained from https://www.fbalpha.com.
+
+FB Alpha would not exist without a lot of code from the MAME project. The
+MAME project is subject to it's own license, which can be found at
+http://mamedev.org/legal.html. Due to the use of MAME code in FB Alpha, FB
+Alpha is also subject to the terms of the MAME license.
+
+FB Alpha is based on Final Burn (formally at http://www.finalburn.com), see
+additional text below.
+Musashi MC68000/MC68010/MC68EC020 CPU core by Karl Stenerud
+(http://www.mamedev.org).
+A68K MC68000 CPU core by Mike Coates & Darren Olafson (http://www.mamedev.org).
+Z80 CPU core by Juergen Buchmueller (http://www.mamedev.org).
+ARM CPU core by Bryan McPhail, Phil Stroffolino (http://www.mamedev.org).
+ARM7 CPU core by Steve Ellenoff (http://www.mamedev.org).
+H6280 CPU core by Brian McPhail (http://www.mamedev.org).
+HD6309 CPU core by John Butler, Tim Lindner (http://www.mamedev.org).
+I8039 CPU core by Mirko Buffoni (http://www.mamedev.org).
+Konami CPU core by MAMEdev (http://www.mamedev.org).
+M6502 CPU core by Juergen Buchmueller (http://www.mamedev.org).
+M6800/M6801/M6802/M6803/M6808/HD63701/NSC8105 CPU core by MAMEdev
+(http://www.mamedev.org).
+M6805 CPU core by MAMEdev (http://www.mamedev.org).
+M6809 CPU core by John Bulter (http://www.mamedev.org).
+NEC V20/V30/V33 CPU core by MAMEdev (http://www.mamedev.org).
+PIC16C5X CPU core by Tony La Porta (http://www.mamedev.org).
+S2650 CPU core by Juergen Buchmueller (http://www.mamedev.org).
+SH-2 CPU core by Juergen Buchmueller (http://www.mamedev.org).
Home |
Main Index |
Thread Index |
Old Index