pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators emulators: Add bsnes.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/16974b59f5ee
branches:  trunk
changeset: 440116:16974b59f5ee
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Oct 03 08:40:56 2020 +0000

description:
emulators: Add bsnes.

bsnes is a multi-platform Super Nintendo (Super Famicom) emulator, originally
developed by byuu, which focuses on performance, features, and ease of use.

diffstat:

 emulators/Makefile                              |    3 +-
 emulators/bsnes/DESCR                           |    2 +
 emulators/bsnes/Makefile                        |   75 +++++++++++++
 emulators/bsnes/PLIST                           |  132 ++++++++++++++++++++++++
 emulators/bsnes/distinfo                        |    7 +
 emulators/bsnes/patches/patch-bsnes_GNUmakefile |   16 ++
 6 files changed, 234 insertions(+), 1 deletions(-)

diffs (269 lines):

diff -r aa2d0eb8310b -r 16974b59f5ee emulators/Makefile
--- a/emulators/Makefile        Sat Oct 03 08:28:58 2020 +0000
+++ b/emulators/Makefile        Sat Oct 03 08:40:56 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.333 2020/10/02 10:26:32 ryoon Exp $
+# $NetBSD: Makefile,v 1.334 2020/10/03 08:40:56 nia Exp $
 #
 
 COMMENT=       Emulators for other operating systems
@@ -22,6 +22,7 @@
 SUBDIR+=       blastem
 SUBDIR+=       blinkensim
 SUBDIR+=       bochs
+SUBDIR+=       bsnes
 SUBDIR+=       cannonball
 SUBDIR+=       caprice32
 SUBDIR+=       ckmame
diff -r aa2d0eb8310b -r 16974b59f5ee emulators/bsnes/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bsnes/DESCR     Sat Oct 03 08:40:56 2020 +0000
@@ -0,0 +1,2 @@
+bsnes is a multi-platform Super Nintendo (Super Famicom) emulator, originally
+developed by byuu, which focuses on performance, features, and ease of use.
diff -r aa2d0eb8310b -r 16974b59f5ee emulators/bsnes/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bsnes/Makefile  Sat Oct 03 08:40:56 2020 +0000
@@ -0,0 +1,75 @@
+# $NetBSD: Makefile,v 1.1 2020/10/03 08:40:56 nia Exp $
+
+DISTNAME=      bsnes-115
+CATEGORIES=    emulators
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=bsnes-emu/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/bsnes-emu/bsnes
+COMMENT=       SNES/SFC emulator focused on performance, features, and ease of use
+LICENSE=       gnu-gpl-v3
+
+USE_TOOLS+=    gmake pkg-config
+USE_LANGUAGES= c c++
+
+# c++17
+GCC_REQD+=     7
+
+# incorrect warnings for certain strings with gcc-7.5.0.
+CXXFLAGS+=     -Wno-trigraphs
+
+MAKE_FILE=     GNUmakefile
+
+BUILD_DIRS=    bsnes
+INSTALL_DIRS=  bsnes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+BUILD_MAKE_FLAGS+=     platform=linux
+.elif ${OPSYS} == "Darwin"
+BUILD_MAKE_FLAGS+=     platform=macos
+.else
+BUILD_MAKE_FLAGS+=     platform=bsd
+.endif
+
+.if ${OPSYS} != "Darwin"
+MAKE_FLAGS+=   hiro=gtk3
+.  if ${X11_TYPE} == "native"
+LDFLAGS+=      ${COMPILER_RPATH_FLAG}${X11BASE}/lib
+.  endif
+.  include "../../mk/oss.buildlink3.mk"
+.  if ${OSS_TYPE} != "none"
+LDFLAGS+=              ${LIBOSSAUDIO}
+SUBST_CLASSES+=                oss
+SUBST_STAGE.oss=       pre-configure
+SUBST_MESSAGE.oss=     Correcting the path to the OSS device.
+SUBST_FILES.oss+=      ruby/audio/oss.cpp
+SUBST_SED.oss+=                -e "s,/dev/dsp,${DEVOSSAUDIO},g"
+.  endif
+.endif
+
+MAKE_FLAGS+=   compiler=${CXX}
+MAKE_FLAGS+=   openmp=false
+# Disable -march=native.
+MAKE_FLAGS+=   local=false
+
+INSTALL_MAKE_FLAGS+=   platform=bsd
+INSTALL_MAKE_FLAGS+=   prefix=${DESTDIR}${PREFIX}
+
+.if ${OPSYS} == "Linux"
+.  include "../../audio/alsa-lib/buildlink3.mk"
+.  include "../../audio/pulseaudio/buildlink3.mk"
+.endif
+.if ${OPSYS} != "Darwin"
+.  include "../../audio/openal-soft/buildlink3.mk"
+.  include "../../devel/SDL2/buildlink3.mk"
+.  include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.  include "../../x11/gtk3/buildlink3.mk"
+.  include "../../x11/gtksourceview3/buildlink3.mk"
+.  include "../../x11/libX11/buildlink3.mk"
+.  include "../../x11/libXext/buildlink3.mk"
+.  include "../../x11/libXrandr/buildlink3.mk"
+.endif
+.include "../../mk/bsd.pkg.mk"
diff -r aa2d0eb8310b -r 16974b59f5ee emulators/bsnes/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bsnes/PLIST     Sat Oct 03 08:40:56 2020 +0000
@@ -0,0 +1,132 @@
+@comment $NetBSD: PLIST,v 1.1 2020/10/03 08:40:56 nia Exp $
+bin/bsnes
+share/applications/bsnes.desktop
+share/bsnes/Database/BS Memory.bml
+share/bsnes/Database/Cheat Codes.bml
+share/bsnes/Database/Sufami Turbo.bml
+share/bsnes/Database/Super Famicom.bml
+share/bsnes/Shaders/AANN.shader/AANN.fs
+share/bsnes/Shaders/AANN.shader/manifest.bml
+share/bsnes/Shaders/CRT-Geom.shader/crt-geom.fs
+share/bsnes/Shaders/CRT-Geom.shader/crt-geom.vs
+share/bsnes/Shaders/CRT-Geom.shader/curvature.fs
+share/bsnes/Shaders/CRT-Geom.shader/manifest.bml
+share/bsnes/Shaders/CRT-Glow.shader/blur_horiz.fs
+share/bsnes/Shaders/CRT-Glow.shader/blur_horiz.vs
+share/bsnes/Shaders/CRT-Glow.shader/blur_vert.fs
+share/bsnes/Shaders/CRT-Glow.shader/blur_vert.vs
+share/bsnes/Shaders/CRT-Glow.shader/gauss_horiz.fs
+share/bsnes/Shaders/CRT-Glow.shader/gauss_horiz.vs
+share/bsnes/Shaders/CRT-Glow.shader/gauss_vert.fs
+share/bsnes/Shaders/CRT-Glow.shader/gauss_vert.vs
+share/bsnes/Shaders/CRT-Glow.shader/lanczos_horiz.fs
+share/bsnes/Shaders/CRT-Glow.shader/lanczos_horiz.vs
+share/bsnes/Shaders/CRT-Glow.shader/linearize.fs
+share/bsnes/Shaders/CRT-Glow.shader/linearize.vs
+share/bsnes/Shaders/CRT-Glow.shader/manifest.bml
+share/bsnes/Shaders/CRT-Glow.shader/resolve.fs
+share/bsnes/Shaders/CRT-Glow.shader/resolve.vs
+share/bsnes/Shaders/CRT-Glow.shader/threshold.fs
+share/bsnes/Shaders/CRT-Glow.shader/threshold.vs
+share/bsnes/Shaders/CRT-Lottes.shader/bloompass.fs
+share/bsnes/Shaders/CRT-Lottes.shader/bloompass.vs
+share/bsnes/Shaders/CRT-Lottes.shader/manifest.bml
+share/bsnes/Shaders/CRT-Lottes.shader/scanpass.fs
+share/bsnes/Shaders/CRT-Lottes.shader/scanpass.vs
+share/bsnes/Shaders/CRT-Royale.shader/bloom-approx.fs
+share/bsnes/Shaders/CRT-Royale.shader/bloom-approx.vs
+share/bsnes/Shaders/CRT-Royale.shader/bloom-horizontal-reconstitute.fs
+share/bsnes/Shaders/CRT-Royale.shader/bloom-horizontal-reconstitute.vs
+share/bsnes/Shaders/CRT-Royale.shader/bloom-vertical.fs
+share/bsnes/Shaders/CRT-Royale.shader/bloom-vertical.vs
+share/bsnes/Shaders/CRT-Royale.shader/blur9fast-horizontal.fs
+share/bsnes/Shaders/CRT-Royale.shader/blur9fast-horizontal.vs
+share/bsnes/Shaders/CRT-Royale.shader/blur9fast-vertical.fs
+share/bsnes/Shaders/CRT-Royale.shader/blur9fast-vertical.vs
+share/bsnes/Shaders/CRT-Royale.shader/brightpass.fs
+share/bsnes/Shaders/CRT-Royale.shader/brightpass.vs
+share/bsnes/Shaders/CRT-Royale.shader/first-pass-linearize-crt-gamma-bob-fields.fs
+share/bsnes/Shaders/CRT-Royale.shader/first-pass-linearize-crt-gamma-bob-fields.vs
+share/bsnes/Shaders/CRT-Royale.shader/geometry-aa-last-pass.fs
+share/bsnes/Shaders/CRT-Royale.shader/geometry-aa-last-pass.vs
+share/bsnes/Shaders/CRT-Royale.shader/manifest.bml
+share/bsnes/Shaders/CRT-Royale.shader/mask-resize-horizontal.fs
+share/bsnes/Shaders/CRT-Royale.shader/mask-resize-horizontal.vs
+share/bsnes/Shaders/CRT-Royale.shader/mask-resize-vertical.fs
+share/bsnes/Shaders/CRT-Royale.shader/mask-resize-vertical.vs
+share/bsnes/Shaders/CRT-Royale.shader/scanlines-horizontal-apply-mask.fs
+share/bsnes/Shaders/CRT-Royale.shader/scanlines-horizontal-apply-mask.vs
+share/bsnes/Shaders/CRT-Royale.shader/scanlines-vertical-interlacing.fs
+share/bsnes/Shaders/CRT-Royale.shader/scanlines-vertical-interlacing.vs
+share/bsnes/Shaders/CRT-Royale.shader/textures/TileableLinearApertureGrille15Wide8And5d5Spacing.png
+share/bsnes/Shaders/CRT-Royale.shader/textures/TileableLinearApertureGrille15Wide8And5d5SpacingResizeTo64.png
+share/bsnes/Shaders/CRT-Royale.shader/textures/TileableLinearShadowMask.png
+share/bsnes/Shaders/CRT-Royale.shader/textures/TileableLinearShadowMaskEDP.png
+share/bsnes/Shaders/CRT-Royale.shader/textures/TileableLinearShadowMaskEDPResizeTo64.png
+share/bsnes/Shaders/CRT-Royale.shader/textures/TileableLinearShadowMaskResizeTo64.png
+share/bsnes/Shaders/CRT-Royale.shader/textures/TileableLinearSlotMaskTall15Wide9And4d5Horizontal9d14VerticalSpacing.png
+share/bsnes/Shaders/CRT-Royale.shader/textures/TileableLinearSlotMaskTall15Wide9And4d5Horizontal9d14VerticalSpacingResizeTo64.png
+share/bsnes/Shaders/GTU.shader/GTU-pass1.fs
+share/bsnes/Shaders/GTU.shader/GTU-pass2.fs
+share/bsnes/Shaders/GTU.shader/GTU-pass2.vs
+share/bsnes/Shaders/GTU.shader/GTU-pass3.fs
+share/bsnes/Shaders/GTU.shader/GTU-pass4.fs
+share/bsnes/Shaders/GTU.shader/GTU-pass4.vs
+share/bsnes/Shaders/GTU.shader/manifest.bml
+share/bsnes/Shaders/LCD-cgwg.shader/lcd-grid.fs
+share/bsnes/Shaders/LCD-cgwg.shader/manifest.bml
+share/bsnes/Shaders/LCD-cgwg.shader/motion-blur.fs
+share/bsnes/Shaders/MDAPT-Dedithering.shader/manifest.bml
+share/bsnes/Shaders/MDAPT-Dedithering.shader/mdapt-pass1.fs
+share/bsnes/Shaders/MDAPT-Dedithering.shader/mdapt-pass2.fs
+share/bsnes/Shaders/MDAPT-Dedithering.shader/mdapt-pass3.fs
+share/bsnes/Shaders/MDAPT-Dedithering.shader/mdapt-pass4.fs
+share/bsnes/Shaders/NTSC-MAME.shader/mame-ntsc.fs
+share/bsnes/Shaders/NTSC-MAME.shader/mame-ntsc.vs
+share/bsnes/Shaders/NTSC-MAME.shader/mame-postproc.fs
+share/bsnes/Shaders/NTSC-MAME.shader/mame-postproc.vs
+share/bsnes/Shaders/NTSC-MAME.shader/manifest.bml
+share/bsnes/Shaders/NTSC.shader/gaussian-scanlines.fs
+share/bsnes/Shaders/NTSC.shader/manifest.bml
+share/bsnes/Shaders/NTSC.shader/ntsc-pass1.fs
+share/bsnes/Shaders/NTSC.shader/ntsc-pass2.fs
+share/bsnes/Shaders/PAL-Composite.shader/manifest.bml
+share/bsnes/Shaders/PAL-Composite.shader/pal-r57shell.fs
+share/bsnes/Shaders/Pixellate.shader/manifest.bml
+share/bsnes/Shaders/Pixellate.shader/pixellate.fs
+share/bsnes/Shaders/Retro.shader/gamma.fs
+share/bsnes/Shaders/Retro.shader/manifest.bml
+share/bsnes/Shaders/Retro.shader/retro.fs
+share/bsnes/Shaders/ScaleFX.shader/advanced-aa.fs
+share/bsnes/Shaders/ScaleFX.shader/advanced-aa.vs
+share/bsnes/Shaders/ScaleFX.shader/manifest.bml
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass0.fs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass0.vs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass1.fs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass1.vs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass2.fs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass2.vs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass3.fs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass3.vs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass4.fs
+share/bsnes/Shaders/ScaleFX.shader/scalefx-pass4.vs
+share/bsnes/Shaders/Sharp-Bilinear.shader/manifest.bml
+share/bsnes/Shaders/Sharp-Bilinear.shader/sharp-bilinear.fs
+share/bsnes/Shaders/xBR-mode7-480p.shader/custom-jinc2-sharper.fs
+share/bsnes/Shaders/xBR-mode7-480p.shader/manifest.bml
+share/bsnes/Shaders/xBR-mode7-480p.shader/super-2xbr-3d-pass0.fs
+share/bsnes/Shaders/xBR-mode7-480p.shader/super-2xbr-3d-pass1.fs
+share/bsnes/Shaders/xBR-mode7-480p.shader/super-2xbr-3d-pass2.fs
+share/bsnes/Shaders/xBR-mode7-480p.shader/super-2xbr-3d-pass2.vs
+share/bsnes/Shaders/xBR-mode7-960p.shader/custom-jinc2-sharper.fs
+share/bsnes/Shaders/xBR-mode7-960p.shader/manifest.bml
+share/bsnes/Shaders/xBR-mode7-960p.shader/super-4xbr-3d-pass0.fs
+share/bsnes/Shaders/xBR-mode7-960p.shader/super-4xbr-3d-pass1.fs
+share/bsnes/Shaders/xBR-mode7-960p.shader/super-4xbr-3d-pass2.fs
+share/bsnes/Shaders/xBR-mode7-960p.shader/super-4xbr-3d-pass3.fs
+share/bsnes/Shaders/xBRZ.shader/fxaa.fs
+share/bsnes/Shaders/xBRZ.shader/manifest.bml
+share/bsnes/Shaders/xBRZ.shader/xBRZ-Freescale-p0.fs
+share/bsnes/Shaders/xBRZ.shader/xBRZ-Freescale-p1.fs
+share/icons/bsnes.png
+@pkgdir share/bsnes/Firmware
diff -r aa2d0eb8310b -r 16974b59f5ee emulators/bsnes/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bsnes/distinfo  Sat Oct 03 08:40:56 2020 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/10/03 08:40:56 nia Exp $
+
+SHA1 (bsnes-115.tar.gz) = 3123e1e58d16c77f85fe2bf5e3a2681b83c63e20
+RMD160 (bsnes-115.tar.gz) = 020291f3116197c9900f805f29eb973d76bde664
+SHA512 (bsnes-115.tar.gz) = 80b993bd6ab6f3e4772e97cdce504ea4e511bc09d551d7ad19a42c1676880645adb3b286bf803c715f5b0f6e2c410cea73845bcb7e83089ebb59111eaa3da5b3
+Size (bsnes-115.tar.gz) = 4145996 bytes
+SHA1 (patch-bsnes_GNUmakefile) = 61ac57779404771b706eb94c7dac01b0acc963e6
diff -r aa2d0eb8310b -r 16974b59f5ee emulators/bsnes/patches/patch-bsnes_GNUmakefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/bsnes/patches/patch-bsnes_GNUmakefile   Sat Oct 03 08:40:56 2020 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-bsnes_GNUmakefile,v 1.1 2020/10/03 08:40:56 nia Exp $
+
+Honor CXXFLAGS/LDFLAGS.
+
+--- bsnes/GNUmakefile.orig     2020-03-03 10:56:48.000000000 +0000
++++ bsnes/GNUmakefile
+@@ -3,7 +3,8 @@ binary := application
+ build := performance
+ openmp := true
+ local := true
+-flags += -I. -I..
++flags += $(CXXFLAGS) -I. -I..
++options += $(LDFLAGS)
+ 
+ # in order for this to work, obj/lzma.o must be omitted or bsnes will hang on startup.
+ # further, only the X-Video driver works reliably. OpenGL 3.2, OpenGL 2.0, and XShm crash bsnes.



Home | Main Index | Thread Index | Old Index