scummvm: rebuild for fluidsynth-2.2.0; fix distfiles url

patch adapted from d0d38b0199
This commit is contained in:
Roberto Ricci 2021-04-13 20:27:40 +02:00 committed by Piraty
parent 279b739f09
commit 569edb3a4b
2 changed files with 27 additions and 2 deletions

View File

@ -0,0 +1,25 @@
--- audio/softsynth/fluidsynth.cpp
+++ audio/softsynth/fluidsynth.cpp
@@ -144,11 +144,11 @@
return p;
}
-static int SoundFontMemLoader_read(void *buf, int count, void *handle) {
+static int SoundFontMemLoader_read(void *buf, fluid_long_long_t count, void *handle) {
return ((Common::SeekableReadStream *) handle)->read(buf, count) == (uint32)count ? FLUID_OK : FLUID_FAILED;
}
-static int SoundFontMemLoader_seek(void *handle, long offset, int origin) {
+static int SoundFontMemLoader_seek(void *handle, fluid_long_long_t offset, int origin) {
return ((Common::SeekableReadStream *) handle)->seek(offset, origin) ? FLUID_OK : FLUID_FAILED;
}
@@ -157,7 +157,7 @@
return FLUID_OK;
}
-static long SoundFontMemLoader_tell(void *handle) {
+static fluid_long_long_t SoundFontMemLoader_tell(void *handle) {
return ((Common::SeekableReadStream *) handle)->pos();
}
#endif

View File

@ -1,7 +1,7 @@
# Template file for 'scummvm'
pkgname=scummvm
version=2.2.0
revision=1
revision=2
build_style=configure
configure_args="--prefix=/usr --enable-release-mode
--with-sdl-prefix=${XBPS_CROSS_BASE}/usr"
@ -14,7 +14,7 @@ short_desc="Free implementation of LucasArts' SCUMM interpreter"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
homepage="https://www.scummvm.org/"
distfiles="https://www.scummvm.org/frs/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
distfiles="https://downloads.scummvm.org/frs/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=1469657e593bd8acbcfac0b839b086f640ebf120633e93f116cab652b5b27387
case "$XBPS_TARGET_MACHINE" in