From 14f782942ebfa5384b101d04661437d028de59c1 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Sat, 13 Jan 2018 17:39:06 +0100 Subject: [PATCH] dunelegacy: fix checksum / add SDL2 patch Closes: #10778 [via git-merge-pr] --- srcpkgs/dunelegacy/patches/sdl2.patch | 22 ++++++++++++++++++++++ srcpkgs/dunelegacy/template | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/dunelegacy/patches/sdl2.patch diff --git a/srcpkgs/dunelegacy/patches/sdl2.patch b/srcpkgs/dunelegacy/patches/sdl2.patch new file mode 100644 index 00000000000..e900653f6ca --- /dev/null +++ b/srcpkgs/dunelegacy/patches/sdl2.patch @@ -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()); + } + } diff --git a/srcpkgs/dunelegacy/template b/srcpkgs/dunelegacy/template index e4ffd05ab93..6872b07c17a 100644 --- a/srcpkgs/dunelegacy/template +++ b/srcpkgs/dunelegacy/template @@ -1,7 +1,7 @@ # Template file for 'dunelegacy' pkgname=dunelegacy version=0.96.4 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-sdltest" makedepends="SDL2_mixer-devel" @@ -10,7 +10,7 @@ maintainer="beefcurtains " license="GPL-2" homepage="http://dunelegacy.sourceforge.net/" distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}/${version}/${pkgname}-${version}-src.tar.bz2" -checksum=afc54d386397c0a1c4ac2f5bc6efe88d23c9f06aeb1f19b4d1ef98d0356efb1d +checksum=4740df9e94712b34f5d6fa1ca3c24658c4808b40431aa156ed66c318be9f4de8 post_install() { vinstall dunelegacy.desktop 644 usr/share/applications