Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Feb 2019 20:21:44 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r492445 - head/games/ponscripter-sekai/files
Message-ID:  <201902082021.x18KLieY005533@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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" ;;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902082021.x18KLieY005533>