svn commit: r492445 - head/games/ponscripter-sekai/files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Feb 8 20:21:45 UTC 2019
Author: amdmi3
Date: Fri Feb 8 20:21:43 2019
New Revision: 492445
URL: https://svnweb.freebsd.org/changeset/ports/492445
Log:
- 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 at FreeBSD.org
Approved by: portmgr blanket (build fix)
Upstream issue: https://github.com/sekaiproject/ponscripter-fork/issues/92
Added:
head/games/ponscripter-sekai/files/patch-configure (contents, props changed)
Added: head/games/ponscripter-sekai/files/patch-configure
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/ponscripter-sekai/files/patch-configure Fri Feb 8 20:21:43 2019 (r492445)
@@ -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" ;;
More information about the svn-ports-all
mailing list