Date: Sat, 13 Mar 2021 06:37:28 +0000 (UTC) From: Steve Wills <swills@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r568235 - in head/games/dunelegacy: . files Message-ID: <202103130637.12D6bSah062517@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: swills Date: Sat Mar 13 06:37:28 2021 New Revision: 568235 URL: https://svnweb.freebsd.org/changeset/ports/568235 Log: games/dunelegacy: convert from REINPLACE_CMD to patch files Added: head/games/dunelegacy/files/patch-src_FileClasses_music_DirectoryPlayer.cpp (contents, props changed) head/games/dunelegacy/files/patch-src_FileClasses_music_XMIPlayer.cpp (contents, props changed) Modified: head/games/dunelegacy/Makefile (contents, props changed) Modified: head/games/dunelegacy/Makefile ============================================================================== --- head/games/dunelegacy/Makefile Sat Mar 13 06:37:22 2021 (r568234) +++ head/games/dunelegacy/Makefile Sat Mar 13 06:37:28 2021 (r568235) @@ -1,4 +1,3 @@ -# Created by: Steve Wills <swills@FreeBSD.org> # $FreeBSD$ PORTNAME= dunelegacy @@ -18,9 +17,5 @@ USES= autoreconf compiler:c++11-lib pkgconfig sdl tar GNU_CONFIGURE= yes USE_SDL= sdl2 mixer2 WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} - -post-patch: - @${REINPLACE_CMD} -e 's|MIX_INIT_FLUIDSYNTH|MIX_INIT_MID|g' \ - ${WRKSRC}/src/FileClasses/music/*.cpp .include <bsd.port.mk> Added: head/games/dunelegacy/files/patch-src_FileClasses_music_DirectoryPlayer.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/dunelegacy/files/patch-src_FileClasses_music_DirectoryPlayer.cpp Sat Mar 13 06:37:28 2021 (r568235) @@ -0,0 +1,11 @@ +--- src/FileClasses/music/DirectoryPlayer.cpp.orig 2016-11-20 14:57:02 UTC ++++ src/FileClasses/music/DirectoryPlayer.cpp +@@ -61,7 +61,7 @@ DirectoryPlayer::DirectoryPlayer() : MusicPlayer(setti + + 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() { Added: head/games/dunelegacy/files/patch-src_FileClasses_music_XMIPlayer.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/dunelegacy/files/patch-src_FileClasses_music_XMIPlayer.cpp Sat Mar 13 06:37:28 2021 (r568235) @@ -0,0 +1,11 @@ +--- src/FileClasses/music/XMIPlayer.cpp.orig 2016-11-17 23:06:11 UTC ++++ src/FileClasses/music/XMIPlayer.cpp +@@ -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()); + } + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103130637.12D6bSah062517>