[98144] trunk/dports/games/sdl_sopwith
jmr at macports.org
jmr at macports.org
Wed Sep 26 03:00:01 PDT 2012
Revision: 98144
http://trac.macports.org//changeset/98144
Author: jmr at macports.org
Date: 2012-09-26 03:00:00 -0700 (Wed, 26 Sep 2012)
Log Message:
-----------
sdl_sopwith: update to 1.7.5
Modified Paths:
--------------
trunk/dports/games/sdl_sopwith/Portfile
trunk/dports/games/sdl_sopwith/files/src_sdl_video.c.patch
Modified: trunk/dports/games/sdl_sopwith/Portfile
===================================================================
--- trunk/dports/games/sdl_sopwith/Portfile 2012-09-26 09:13:00 UTC (rev 98143)
+++ trunk/dports/games/sdl_sopwith/Portfile 2012-09-26 10:00:00 UTC (rev 98144)
@@ -5,8 +5,7 @@
PortGroup app 1.0
name sdl_sopwith
-version 1.7.4
-revision 1
+version 1.7.5
categories games
platforms darwin
license GPL-2+
@@ -18,15 +17,19 @@
master_sites sourceforge:project/sdl-sopwith/${name}/${version}/
distname sopwith-${version}
-checksums md5 f7bd8f754409aedd003b5b99d20f06dd \
- sha1 e2523afb16ce04fe772468f5a3d027a162460d46 \
- rmd160 f1ba6723d7606cdff00e43e593199040f1e1127c
+checksums md5 9a474203245d4b1052f17accd1553992 \
+ sha1 018051a8524ced03e5e5a6c08cef67e663149e20 \
+ rmd160 cb36db3a78e6d509d136c3ae37aad61f9d9012b6
depends_build port:pkgconfig
depends_lib path:lib/pkgconfig/sdl.pc:libsdl
patchfiles src_Makefile.in.patch src_sdl_video.c.patch \
src_swmain.c.patch configure.patch
+post-patch {
+ file delete ${worksrcpath}/config.cache ${worksrcpath}/config.log \
+ ${worksrcpath}/config.status
+}
configure.args --mandir=${prefix}/share/man \
--disable-sdltest
Modified: trunk/dports/games/sdl_sopwith/files/src_sdl_video.c.patch
===================================================================
--- trunk/dports/games/sdl_sopwith/files/src_sdl_video.c.patch 2012-09-26 09:13:00 UTC (rev 98143)
+++ trunk/dports/games/sdl_sopwith/files/src_sdl_video.c.patch 2012-09-26 10:00:00 UTC (rev 98144)
@@ -1,15 +1,15 @@
---- src/sdl/video.c.orig 2010-07-07 08:19:39.000000000 +1000
-+++ src/sdl/video.c 2011-09-10 03:33:26.000000000 +1000
-@@ -213,7 +213,7 @@ static void set_icon(sopsym_t *sym)
+--- src/sdl/video.c.orig 2012-09-20 08:59:39.000000000 +1000
++++ src/sdl/video.c 2012-09-26 19:19:05.000000000 +1000
+@@ -222,7 +222,7 @@ static void set_icon(sopsym_t *sym)
static void Vid_UnsetMode()
{
-- SDL_QuitSubSystem(SDL_INIT_VIDEO);
-+ SDL_FreeSurface(screenbuf);
+- SDL_QuitSubSystem(SDL_INIT_VIDEO);
++ SDL_FreeSurface(screenbuf);
}
- static void Vid_SetMode()
-@@ -225,8 +225,6 @@ static void Vid_SetMode()
+
+@@ -368,8 +368,6 @@ static void Vid_SetMode()
printf("CGA Screen Emulation\n");
printf("init screen: ");
@@ -18,7 +18,7 @@
srand(time(NULL));
set_icon(symbol_plane[rand() % 2][rand() % 16]);
-@@ -252,6 +250,11 @@ static void Vid_SetMode()
+@@ -395,6 +393,11 @@ static void Vid_SetMode()
exit(-1);
}
@@ -30,15 +30,15 @@
SDL_EnableUNICODE(1);
for (n = 0; n < NUM_KEYS; ++n)
-@@ -261,6 +264,7 @@ static void Vid_SetMode()
+@@ -404,6 +407,7 @@ static void Vid_SetMode()
SDL_SetColors(screen, cga_pal, 0, sizeof(cga_pal)/sizeof(*cga_pal));
SDL_SetColors(screenbuf, cga_pal, 0, sizeof(cga_pal)/sizeof(*cga_pal));
+ SDL_LockSurface(screenbuf);
- }
- void Vid_Shutdown()
-@@ -270,7 +274,7 @@ void Vid_Shutdown()
+ // create custom key file
+ Create_Custom_File();
+@@ -418,7 +422,7 @@ void Vid_Shutdown()
Vid_UnsetMode();
@@ -47,7 +47,7 @@
initted = 0;
}
-@@ -282,18 +286,13 @@ void Vid_Init()
+@@ -430,18 +434,13 @@ void Vid_Init()
fflush(stdout);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120926/4d32466b/attachment.html>
More information about the macports-changes
mailing list