pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/emulators
Module Name: pkgsrc
Committed By: nia
Date: Fri Apr 19 12:04:23 UTC 2024
Modified Files:
pkgsrc/emulators: Makefile
Added Files:
pkgsrc/emulators/gambatte: DESCR Makefile PLIST distinfo
pkgsrc/emulators/gambatte/files: gambatte_sdl.1
pkgsrc/emulators/gambatte/patches: patch-gambatte__sdl_SConstruct
patch-libgambatte_SConstruct
Log Message:
emulators/gambatte: Revive package.
This was removed in the big qt4 deprecation, but it's still a useful
package without the qt5 dependency.
To generate a diff of this commit:
cvs rdiff -u -r1.358 -r1.359 pkgsrc/emulators/Makefile
cvs rdiff -u -r0 -r1.3 pkgsrc/emulators/gambatte/DESCR
cvs rdiff -u -r0 -r1.32 pkgsrc/emulators/gambatte/Makefile
cvs rdiff -u -r0 -r1.4 pkgsrc/emulators/gambatte/PLIST
cvs rdiff -u -r0 -r1.8 pkgsrc/emulators/gambatte/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/gambatte/files/gambatte_sdl.1
cvs rdiff -u -r0 -r1.4 \
pkgsrc/emulators/gambatte/patches/patch-gambatte__sdl_SConstruct \
pkgsrc/emulators/gambatte/patches/patch-libgambatte_SConstruct
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/emulators/Makefile
diff -u pkgsrc/emulators/Makefile:1.358 pkgsrc/emulators/Makefile:1.359
--- pkgsrc/emulators/Makefile:1.358 Tue Mar 19 12:40:50 2024
+++ pkgsrc/emulators/Makefile Fri Apr 19 12:04:22 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.358 2024/03/19 12:40:50 nia Exp $
+# $NetBSD: Makefile,v 1.359 2024/04/19 12:04:22 nia Exp $
#
COMMENT= Emulators for other machines and systems
@@ -75,6 +75,7 @@ SUBDIR+= fs-uae-launcher
SUBDIR+= fs-uae-qemu-uae
SUBDIR+= fuse-emulator
SUBDIR+= fuse-emulator-utils
+SUBDIR+= gambatte
SUBDIR+= gearboy
SUBDIR+= gearsystem
SUBDIR+= generator-cbiere
Added files:
Index: pkgsrc/emulators/gambatte/DESCR
diff -u /dev/null pkgsrc/emulators/gambatte/DESCR:1.3
--- /dev/null Fri Apr 19 12:04:23 2024
+++ pkgsrc/emulators/gambatte/DESCR Fri Apr 19 12:04:22 2024
@@ -0,0 +1,6 @@
+Gambatte is a portable, open-source Game Boy Color emulator.
+
+The accuracy of the emulator is among the highest and is based off
+numerous reverse engineering tests and document studies.
+
+This package contains the command-line / SDL version.
Index: pkgsrc/emulators/gambatte/Makefile
diff -u /dev/null pkgsrc/emulators/gambatte/Makefile:1.32
--- /dev/null Fri Apr 19 12:04:23 2024
+++ pkgsrc/emulators/gambatte/Makefile Fri Apr 19 12:04:22 2024
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.32 2024/04/19 12:04:22 nia Exp $
+
+DISTNAME= gambatte_src-r571
+PKGNAME= ${DISTNAME:S/_src-r/-/1}
+CATEGORIES= emulators
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gambatte/files/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://emulation.gametechwiki.com/index.php/Gambatte
+COMMENT= Game Boy Color emulator with high accuracy
+LICENSE= gnu-gpl-v2
+
+USE_LANGUAGES= c c++
+
+BUILD_DIRS+= libgambatte gambatte_sdl
+
+MKPIE_SUPPORTED= no
+
+SCONS_DO_INSTALL= no
+
+MAKE_ENV+= LINKFLAGS=${LDFLAGS:Q}
+
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths+= gambatte_sdl/SConstruct
+SUBST_VARS.paths+= PREFIX
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/gambatte_sdl/gambatte_sdl \
+ ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${FILESDIR}/gambatte_sdl.1 \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../devel/scons4/build.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/emulators/gambatte/PLIST
diff -u /dev/null pkgsrc/emulators/gambatte/PLIST:1.4
--- /dev/null Fri Apr 19 12:04:23 2024
+++ pkgsrc/emulators/gambatte/PLIST Fri Apr 19 12:04:23 2024
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.4 2024/04/19 12:04:23 nia Exp $
+bin/gambatte_sdl
+man/man1/gambatte_sdl.1
Index: pkgsrc/emulators/gambatte/distinfo
diff -u /dev/null pkgsrc/emulators/gambatte/distinfo:1.8
--- /dev/null Fri Apr 19 12:04:23 2024
+++ pkgsrc/emulators/gambatte/distinfo Fri Apr 19 12:04:23 2024
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.8 2024/04/19 12:04:23 nia Exp $
+
+BLAKE2s (gambatte_src-r571.tar.gz) = 778eada29c6682bbcfabb39ce29aef44888a93dfaea2e30601cdeed81e46ec60
+SHA512 (gambatte_src-r571.tar.gz) = 66b05df1e37b95f5971aa8d2928ba32549454833a6c8de8ddcfdc5246a5c19a5edd7081527cf67d130e220fb0b75e7842d6ce17288c5eb41d0719d6668d8824b
+Size (gambatte_src-r571.tar.gz) = 522199 bytes
+SHA1 (patch-gambatte__sdl_SConstruct) = 4f79bcf96d53435edd66ec594ed7afb4b89ee03f
+SHA1 (patch-libgambatte_SConstruct) = 89e8d3ad5409f15705c23db15d531def967614ac
Index: pkgsrc/emulators/gambatte/files/gambatte_sdl.1
diff -u /dev/null pkgsrc/emulators/gambatte/files/gambatte_sdl.1:1.1
--- /dev/null Fri Apr 19 12:04:23 2024
+++ pkgsrc/emulators/gambatte/files/gambatte_sdl.1 Fri Apr 19 12:04:23 2024
@@ -0,0 +1,125 @@
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.3.
+.TH GAMBATTE "1" "April 2024" "Gambatte SDL (r571)" "User Commands"
+.SH NAME
+Gambatte \- manual page for Gambatte SDL (r571)
+.SH SYNOPSIS
+.B gambatte_sdl
+[\fI\,OPTION\/\fR]... \fI\,romfile\/\fR
+.SH DESCRIPTION
+Gambatte SDL (r571)
+.TP
+\fB\-\-controls\fR
+Show keyboard controls
+.TP
+\fB\-\-gba\-cgb\fR
+GBA CGB mode
+.TP
+\fB\-\-force\-dmg\fR
+Force DMG mode
+.TP
+\fB\-\-multicart\-compat\fR
+Support certain multicart ROM images by
+not strictly respecting ROM header MBC type
+.TP
+\fB\-f\fR, \fB\-\-full\-screen\fR
+Start in full screen mode
+.TP
+\fB\-i\fR, \fB\-\-input\fR KEYS
+Use the 8 given input KEYS for respectively
+START SELECT A B UP DOWN LEFT RIGHT
+.TP
+\fB\-l\fR, \fB\-\-latency\fR N
+Use audio buffer latency of N ms
+16 <= N <= 5000, default: 133
+.TP
+\fB\-\-list\-keys\fR
+List valid input KEYS
+.TP
+\fB\-p\fR, \fB\-\-periods\fR N
+Use N audio buffer periods
+1 <= N <= 32, default: 4
+.TP
+\fB\-r\fR, \fB\-\-sample\-rate\fR N
+Use audio sample rate of N Hz
+4000 <= N <= 192000, default: 48000
+.TP
+\fB\-\-resampler\fR N
+Use audio resampler number N
+0 = Fast
+1 = High quality (polyphase FIR) [default]
+2 = Very high quality (polyphase FIR)
+3 = Highest quality (polyphase FIR)
+.TP
+\fB\-s\fR, \fB\-\-scale\fR N
+Scale video output by an integer factor of N
+.TP
+\fB\-v\fR, \fB\-\-video\-filter\fR N
+Use video filter number N
+0 = None
+1 = Bicubic Catmull\-Rom spline 2x
+2 = Bicubic Catmull\-Rom spline 3x
+3 = Kreed's 2xSaI
+4 = MaxSt's hq2x
+5 = MaxSt's hq3x
+.TP
+\fB\-y\fR, \fB\-\-yuv\-overlay\fR
+Use YUV overlay for (usually faster) scaling
+.PP
+Usage: gambatte_sdl [OPTION]... romfile
+.TP
+\fB\-\-controls\fR
+Show keyboard controls
+.TP
+\fB\-\-gba\-cgb\fR
+GBA CGB mode
+.TP
+\fB\-\-force\-dmg\fR
+Force DMG mode
+.TP
+\fB\-\-multicart\-compat\fR
+Support certain multicart ROM images by
+not strictly respecting ROM header MBC type
+.TP
+\fB\-f\fR, \fB\-\-full\-screen\fR
+Start in full screen mode
+.TP
+\fB\-i\fR, \fB\-\-input\fR KEYS
+Use the 8 given input KEYS for respectively
+START SELECT A B UP DOWN LEFT RIGHT
+.TP
+\fB\-l\fR, \fB\-\-latency\fR N
+Use audio buffer latency of N ms
+16 <= N <= 5000, default: 133
+.TP
+\fB\-\-list\-keys\fR
+List valid input KEYS
+.TP
+\fB\-p\fR, \fB\-\-periods\fR N
+Use N audio buffer periods
+1 <= N <= 32, default: 4
+.TP
+\fB\-r\fR, \fB\-\-sample\-rate\fR N
+Use audio sample rate of N Hz
+4000 <= N <= 192000, default: 48000
+.TP
+\fB\-\-resampler\fR N
+Use audio resampler number N
+0 = Fast
+1 = High quality (polyphase FIR) [default]
+2 = Very high quality (polyphase FIR)
+3 = Highest quality (polyphase FIR)
+.TP
+\fB\-s\fR, \fB\-\-scale\fR N
+Scale video output by an integer factor of N
+.TP
+\fB\-v\fR, \fB\-\-video\-filter\fR N
+Use video filter number N
+0 = None
+1 = Bicubic Catmull\-Rom spline 2x
+2 = Bicubic Catmull\-Rom spline 3x
+3 = Kreed's 2xSaI
+4 = MaxSt's hq2x
+5 = MaxSt's hq3x
+.TP
+\fB\-y\fR, \fB\-\-yuv\-overlay\fR
+Use YUV overlay for (usually faster) scaling
Index: pkgsrc/emulators/gambatte/patches/patch-gambatte__sdl_SConstruct
diff -u /dev/null pkgsrc/emulators/gambatte/patches/patch-gambatte__sdl_SConstruct:1.4
--- /dev/null Fri Apr 19 12:04:23 2024
+++ pkgsrc/emulators/gambatte/patches/patch-gambatte__sdl_SConstruct Fri Apr 19 12:04:23 2024
@@ -0,0 +1,50 @@
+$NetBSD: patch-gambatte__sdl_SConstruct,v 1.4 2024/04/19 12:04:23 nia Exp $
+
+Copy environment to SCons environment.
+
+Use absolute path for sdl-config. I don't understand why this is necessary,
+since PATH is set properly, but life's too short for debugging scons.
+
+--- gambatte_sdl/SConstruct.orig 2014-09-28 22:13:10.000000000 +0000
++++ gambatte_sdl/SConstruct
+@@ -1,17 +1,29 @@
++import SCons
+ import subprocess
+-
+-cflags = ARGUMENTS.get('CFLAGS', '-Wall -Wextra -O2 -fomit-frame-pointer')
+-cxxflags = ARGUMENTS.get('CXXFLAGS', cflags + ' -fno-exceptions -fno-rtti')
+-vars = Variables()
+-vars.Add('CC')
+-vars.Add('CXX')
++import os
+
+ env = Environment(CPPPATH = ['src', '../libgambatte/include', '../common'],
+- CFLAGS = cflags,
+- CXXFLAGS = cxxflags,
+- CPPDEFINES = [ 'HAVE_STDINT_H', None ],
+- variables = vars)
+-env.ParseConfig('sdl-config --cflags --libs')
++ CPPDEFINES = [ 'HAVE_STDINT_H', None ])
++
++
++# copy environment variables because scons doesn't do this by default
++for var in ["CC","CXX","LD","LIBPATH","STRIP"]:
++ if var in os.environ:
++ env[var] = os.environ[var]
++ print("copying environment variable {0}={1!r}".format(var,os.environ[var]))
++
++# variables containing several space separated things
++for var in ["CFLAGS","CCFLAGS","CXXFLAGS","LINKFLAGS","CPPDEFINES","CPPPATH"]:
++ if var in os.environ:
++ if var in env:
++ env[var] += SCons.Util.CLVar(os.environ[var])
++ else:
++ env[var] = SCons.Util.CLVar(os.environ[var])
++ print("copying environment variable {0}={1!r}".format(var,os.environ[var]))
++
++env.Append(CXXFLAGS=['-fno-exceptions', '-fno-rtti'])
++
++env.ParseConfig('@PREFIX@/bin/sdl-config --cflags --libs')
+
+ sourceFiles = Split('''
+ src/audiosink.cpp
Index: pkgsrc/emulators/gambatte/patches/patch-libgambatte_SConstruct
diff -u /dev/null pkgsrc/emulators/gambatte/patches/patch-libgambatte_SConstruct:1.4
--- /dev/null Fri Apr 19 12:04:23 2024
+++ pkgsrc/emulators/gambatte/patches/patch-libgambatte_SConstruct Fri Apr 19 12:04:23 2024
@@ -0,0 +1,50 @@
+$NetBSD: patch-libgambatte_SConstruct,v 1.4 2024/04/19 12:04:23 nia Exp $
+
+Copy environment to SCons environment.
+
+--- libgambatte/SConstruct.orig 2024-04-15 16:11:45.938327465 +0000
++++ libgambatte/SConstruct
+@@ -1,14 +1,9 @@
+-global_cflags = ARGUMENTS.get('CFLAGS', '-Wall -Wextra -O2 -fomit-frame-pointer')
+-global_cxxflags = ARGUMENTS.get('CXXFLAGS', global_cflags + ' -fno-exceptions -fno-rtti')
+-global_defines = ' -DHAVE_STDINT_H'
+-vars = Variables()
+-vars.Add('CC')
+-vars.Add('CXX')
++import SCons
++import subprocess
++import os
+
+ env = Environment(CPPPATH = ['src', 'include', '../common'],
+- CFLAGS = global_cflags + global_defines,
+- CXXFLAGS = global_cxxflags + global_defines,
+- variables = vars)
++ CPPDEFINES = [ 'HAVE_STDINT_H', None ])
+
+ sourceFiles = Split('''
+ src/bitmap_font.cpp
+@@ -42,6 +37,24 @@ sourceFiles = Split('''
+ src/video/sprite_mapper.cpp
+ ''')
+
++
++# copy environment variables because scons doesn't do this by default
++for var in ["CC","CXX","LD","LIBPATH","STRIP"]:
++ if var in os.environ:
++ env[var] = os.environ[var]
++ print("copying environment variable {0}={1!r}".format(var,os.environ[var]))
++
++# variables containing several space separated things
++for var in ["CFLAGS","CCFLAGS","CXXFLAGS","LINKFLAGS","CPPDEFINES","CPPPATH"]:
++ if var in os.environ:
++ if var in env:
++ env[var] += SCons.Util.CLVar(os.environ[var])
++ else:
++ env[var] = SCons.Util.CLVar(os.environ[var])
++ print("copying environment variable {0}={1!r}".format(var,os.environ[var]))
++
++env.Append(CXXFLAGS=['-fno-exceptions', '-fno-rtti'])
++
+ conf = env.Configure()
+
+ if conf.CheckHeader('zlib.h'):
Home |
Main Index |
Thread Index |
Old Index