From 5beb7fe42c10b40c394a4f99767d69f68cd6f5f7 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Fri, 8 Feb 2019 20:21:43 +0000 Subject: [PATCH] - Fix build after SDL2_Mixer update Don't try to check for SDL2_Mixer at configure phase by trying to run program which tries Mix_LoadMUS. First, the program is incorrect as per SDL2_Mixer documentation, one is not allowed to call any SDL2_Mixer functions without first calling Mix_Init() (which is not called). Next, calling any mixer functions may involve opening audio device, which may not be present on the machine where the package is built. Fix by forcing the broken check to pass. PR: 235557 Reported by: jbeich@FreeBSD.org Approved by: portmgr blanket (build fix) Upstream issue: https://github.com/sekaiproject/ponscripter-fork/issues/92 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@492445 35697150-7ecd-e111-bb59-0022644237b5 --- games/ponscripter-sekai/files/patch-configure | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 games/ponscripter-sekai/files/patch-configure diff --git a/games/ponscripter-sekai/files/patch-configure b/games/ponscripter-sekai/files/patch-configure new file mode 100644 index 0000000000000..f019ce7692d03 --- /dev/null +++ b/games/ponscripter-sekai/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig 2019-02-08 19:59:55 UTC ++++ configure +@@ -606,7 +606,7 @@ then + _EOF + INTERNAL_SDL_MIXER=true + $CXX `$SDL_CONFIG --cflags` test.cc `$SDL_CONFIG --libs` -lSDL2_mixer -o mtest >/dev/null 2>&1 +- ./mtest 2>/dev/null ++ true 2>/dev/null + case $? in + 0) echo "yes"; INTERNAL_SDL_MIXER=false ;; + 1) echo "no MP3" ;; 2) echo "no Ogg" ;; 3) echo "no Ogg or MP3" ;;