[72133] trunk/dports/games/simutrans

ryandesign at macports.org ryandesign at macports.org
Mon Oct 4 16:33:46 PDT 2010


Revision: 72133
          http://trac.macports.org/changeset/72133
Author:   ryandesign at macports.org
Date:     2010-10-04 16:33:44 -0700 (Mon, 04 Oct 2010)
Log Message:
-----------
simutrans: simplify patch and reinplace for enabling music

Modified Paths:
--------------
    trunk/dports/games/simutrans/Portfile
    trunk/dports/games/simutrans/files/patch-config.default.diff

Modified: trunk/dports/games/simutrans/Portfile
===================================================================
--- trunk/dports/games/simutrans/Portfile	2010-10-04 23:30:13 UTC (rev 72132)
+++ trunk/dports/games/simutrans/Portfile	2010-10-04 23:33:44 UTC (rev 72133)
@@ -49,13 +49,6 @@
 
 post-patch {
     reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile
-
-    # If music should not be enabled then don't use the mixer_sdl backend
-    # which is only used with music. This may speed up the game.
-    if {![variant_isset enable_music]} {
-        reinplace "s|BACKEND = mixer_sdl|#BACKEND = mixer_sdl|g" \
-            ${worksrcpath}/config.default
-    }
 }
 
 use_configure       no
@@ -80,4 +73,8 @@
 variant enable_music description {Allows to listen to simutrans own music\
                                   while playing. May reduce speed.} {
     depends_lib-append  port:libsdl_mixer
+    post-patch {
+        reinplace "s|#BACKEND = mixer_sdl|BACKEND = mixer_sdl|g" \
+            ${worksrcpath}/config.default
+    }
 }

Modified: trunk/dports/games/simutrans/files/patch-config.default.diff
===================================================================
--- trunk/dports/games/simutrans/files/patch-config.default.diff	2010-10-04 23:30:13 UTC (rev 72132)
+++ trunk/dports/games/simutrans/files/patch-config.default.diff	2010-10-04 23:33:44 UTC (rev 72133)
@@ -1,13 +1,12 @@
---- config.default	2007-12-17 22:01:56.000000000 +0100
-+++ config.default	2008-02-11 15:29:41.000000000 +0100
+--- config.template	2007-12-17 22:01:56.000000000 -0600
++++ config.default	2010-10-04 18:31:32.000000000 -0500
 @@ -5,29 +5,29 @@
  
  #BACKEND = allegro
  #BACKEND = gdi
 -#BACKEND = sdl
--#BACKEND = mixer_sdl
 +BACKEND = sdl
-+BACKEND = mixer_sdl
+ #BACKEND = mixer_sdl
  #BACKEND = x11
  
  #COLOUR_DEPTH = 8
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101004/7452a6b0/attachment.html>


More information about the macports-changes mailing list