[75830] trunk/dports/games/bzflag

jmr at macports.org jmr at macports.org
Wed Feb 9 22:17:30 PST 2011


Revision: 75830
          http://trac.macports.org/changeset/75830
Author:   jmr at macports.org
Date:     2011-02-09 22:17:27 -0800 (Wed, 09 Feb 2011)
Log Message:
-----------
bzflag: make configure not prefer SDL.framework (#22711)

Modified Paths:
--------------
    trunk/dports/games/bzflag/Portfile

Added Paths:
-----------
    trunk/dports/games/bzflag/files/patch-configure

Modified: trunk/dports/games/bzflag/Portfile
===================================================================
--- trunk/dports/games/bzflag/Portfile	2011-02-10 05:49:55 UTC (rev 75829)
+++ trunk/dports/games/bzflag/Portfile	2011-02-10 06:17:27 UTC (rev 75830)
@@ -24,13 +24,15 @@
 
 depends_lib	    port:curl path:lib/pkgconfig/sdl.pc:libsdl port:c-ares
 
+patchfiles      patch-configure
+
 configure.args	    --mandir=${prefix}/share/man --libdir=${prefix}/lib/${name} \
 		    --includedir=${prefix}/include/${name} \
-		    --with-sdl-exec-prefix=${prefix}/ --disable-sdl-test \
+		    --with-sdl-exec-prefix=${prefix} --disable-sdl-test \
 		    --without-x
 
 platform darwin 10 {
-    patchfiles patch-include__bzfSDL.h patch-src__platform__SDLDisplay.cxx
+    patchfiles-append patch-include__bzfSDL.h patch-src__platform__SDLDisplay.cxx
 }
 
 livecheck.type		regex

Added: trunk/dports/games/bzflag/files/patch-configure
===================================================================
--- trunk/dports/games/bzflag/files/patch-configure	                        (rev 0)
+++ trunk/dports/games/bzflag/files/patch-configure	2011-02-10 06:17:27 UTC (rev 75830)
@@ -0,0 +1,63 @@
+--- configure.orig	2010-04-01 16:53:25.000000000 +1100
++++ configure	2011-02-10 17:09:06.000000000 +1100
+@@ -25329,60 +25329,7 @@
+ 
+ if test x$with_SDL = xyes ; then
+ 
+-  { echo "$as_me:$LINENO: checking for SDL framework" >&5
+-echo $ECHO_N "checking for SDL framework... $ECHO_C" >&6; }
+-  savedLDFLAGS="$LDFLAGS"
+-  LDFLAGS="$LDFLAGS -framework SDL"
+-  framework_SDL_flag_works=yes
+-  cat >conftest.$ac_ext <<_ACEOF
+-/* confdefs.h.  */
+-_ACEOF
+-cat confdefs.h >>conftest.$ac_ext
+-cat >>conftest.$ac_ext <<_ACEOF
+-/* end confdefs.h.  */
+-#include <SDL/SDL_version.h>
+-int
+-main ()
+-{
+-
+-  ;
+-  return 0;
+-}
+-_ACEOF
+-rm -f conftest.$ac_objext conftest$ac_exeext
+-if { (ac_try="$ac_link"
+-case "(($ac_try" in
+-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+-  *) ac_try_echo=$ac_try;;
+-esac
+-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+-  (eval "$ac_link") 2>conftest.er1
+-  ac_status=$?
+-  grep -v '^ *+' conftest.er1 >conftest.err
+-  rm -f conftest.er1
+-  cat conftest.err >&5
+-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+-  (exit $ac_status); } && {
+-	 test -z "$ac_c_werror_flag" ||
+-	 test ! -s conftest.err
+-       } && test -s conftest$ac_exeext &&
+-       $as_test_x conftest$ac_exeext; then
+-  :
+-else
+-  echo "$as_me: failed program was:" >&5
+-sed 's/^/| /' conftest.$ac_ext >&5
+-
+-	framework_SDL_flag_works=no
+-fi
+-
+-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+-      conftest$ac_exeext conftest.$ac_ext
+-  { echo "$as_me:$LINENO: result: $framework_SDL_flag_works" >&5
+-echo "${ECHO_T}$framework_SDL_flag_works" >&6; }
+-  if test x$framework_SDL_flag_works = xno ; then
+-    LDFLAGS="$savedLDFLAGS"
+     with_SDL=no
+-  fi
+ 
+   if test x$with_SDL = xno ; then
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110209/08ab163e/attachment.html>


More information about the macports-changes mailing list