dunelegacy: fix checksum / add SDL2 patch
Closes: #10778 [via git-merge-pr]
This commit is contained in:
parent
a61f44dd22
commit
14f782942e
|
@ -0,0 +1,22 @@
|
||||||
|
--- src/FileClasses/music/DirectoryPlayer.cpp.orig 2016-11-20 15:57:02.000000000 +0100
|
||||||
|
+++ src/FileClasses/music/DirectoryPlayer.cpp 2018-01-13 17:29:35.816857954 +0100
|
||||||
|
@@ -61,7 +61,7 @@
|
||||||
|
|
||||||
|
music = nullptr;
|
||||||
|
|
||||||
|
- Mix_Init(MIX_INIT_FLUIDSYNTH | MIX_INIT_FLAC | MIX_INIT_MP3 | MIX_INIT_OGG);
|
||||||
|
+ Mix_Init(MIX_INIT_MID | MIX_INIT_FLAC | MIX_INIT_MP3 | MIX_INIT_OGG);
|
||||||
|
}
|
||||||
|
|
||||||
|
DirectoryPlayer::~DirectoryPlayer() {
|
||||||
|
--- src/FileClasses/music/XMIPlayer.cpp.orig 2016-11-18 00:06:11.000000000 +0100
|
||||||
|
+++ src/FileClasses/music/XMIPlayer.cpp 2018-01-13 17:29:45.983900596 +0100
|
||||||
|
@@ -32,7 +32,7 @@
|
||||||
|
XMIPlayer::XMIPlayer() : MusicPlayer(settings.audio.playMusic, settings.audio.musicVolume) {
|
||||||
|
music = nullptr;
|
||||||
|
|
||||||
|
- if((Mix_Init(MIX_INIT_FLUIDSYNTH) & MIX_INIT_FLUIDSYNTH) == 0) {
|
||||||
|
+ if((Mix_Init(MIX_INIT_MID) & MIX_INIT_MID) == 0) {
|
||||||
|
SDL_Log("XMIPlayer: Failed to init required midi support: %s", SDL_GetError());
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'dunelegacy'
|
# Template file for 'dunelegacy'
|
||||||
pkgname=dunelegacy
|
pkgname=dunelegacy
|
||||||
version=0.96.4
|
version=0.96.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-sdltest"
|
configure_args="--disable-sdltest"
|
||||||
makedepends="SDL2_mixer-devel"
|
makedepends="SDL2_mixer-devel"
|
||||||
|
@ -10,7 +10,7 @@ maintainer="beefcurtains <beefcurtains@voidlinux.eu>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://dunelegacy.sourceforge.net/"
|
homepage="http://dunelegacy.sourceforge.net/"
|
||||||
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}-src.tar.bz2"
|
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}-src.tar.bz2"
|
||||||
checksum=afc54d386397c0a1c4ac2f5bc6efe88d23c9f06aeb1f19b4d1ef98d0356efb1d
|
checksum=4740df9e94712b34f5d6fa1ca3c24658c4808b40431aa156ed66c318be9f4de8
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall dunelegacy.desktop 644 usr/share/applications
|
vinstall dunelegacy.desktop 644 usr/share/applications
|
||||||
|
|
Loading…
Reference in New Issue