[92078] trunk/dports/games/freedroidclassic
jmr at macports.org
jmr at macports.org
Tue Apr 17 06:42:52 PDT 2012
Revision: 92078
https://trac.macports.org/changeset/92078
Author: jmr at macports.org
Date: 2012-04-17 06:42:52 -0700 (Tue, 17 Apr 2012)
Log Message:
-----------
freedroidclassic: fix crashes, thanks to ville.aakko (#29468), fix libvorbis detection
Modified Paths:
--------------
trunk/dports/games/freedroidclassic/Portfile
Added Paths:
-----------
trunk/dports/games/freedroidclassic/files/patch-libsdl_gfx.diff
trunk/dports/games/freedroidclassic/files/patch-libvorbis.diff
trunk/dports/games/freedroidclassic/files/patch-src-misc.c.diff
Modified: trunk/dports/games/freedroidclassic/Portfile
===================================================================
--- trunk/dports/games/freedroidclassic/Portfile 2012-04-17 13:32:53 UTC (rev 92077)
+++ trunk/dports/games/freedroidclassic/Portfile 2012-04-17 13:42:52 UTC (rev 92078)
@@ -5,7 +5,7 @@
name freedroidclassic
version 1.0.2
-revision 1
+revision 2
categories games
platforms darwin
maintainers nomaintainer
@@ -32,10 +32,16 @@
depends_lib path:lib/pkgconfig/sdl.pc:libsdl \
port:libsdl_image \
- port:libsdl_mixer
+ port:libsdl_mixer \
+ port:libsdl_gfx
-patchfiles patch-src-graphics.c.diff
+patchfiles patch-src-graphics.c.diff \
+ patch-src-misc.c.diff \
+ patch-libsdl_gfx.diff \
+ patch-libvorbis.diff
+use_autoreconf yes
+
configure.args --mandir=${prefix}/share/man \
--disable-sdltest
Added: trunk/dports/games/freedroidclassic/files/patch-libsdl_gfx.diff
===================================================================
--- trunk/dports/games/freedroidclassic/files/patch-libsdl_gfx.diff (rev 0)
+++ trunk/dports/games/freedroidclassic/files/patch-libsdl_gfx.diff 2012-04-17 13:42:52 UTC (rev 92078)
@@ -0,0 +1,25 @@
+--- configure.ac 2003-08-09 20:04:33.000000000 +0300
++++ configure.ac 2011-05-21 22:54:12.000000000 +0300
+@@ -89,6 +89,10 @@
+ Freedroid to be able to play Ogg files (e.g. the Intro theme)
+ --------------------------------------------------]))
+
++AC_CHECK_LIB([SDL_gfx], [zoomSurface],, AC_MSG_ERROR([
++--------------------------------------------------
++SDL_gfx is needed for Freedroid
++--------------------------------------------------]))
+
+ # Checks for header files.
+ AC_HEADER_STDC
+--- src/Makefile.am 2003-08-09 20:06:44.000000000 +0300
++++ src/Makefile.am 2011-05-21 22:53:38.000000000 +0300
+@@ -16,8 +16,7 @@
+ enemy.c input.c main.c view.c BFont.c defs.h \
+ map.h vars.h takeover.h global.h \
+ text.h proto.h struct.h system.h BFont.h maped.h \
+- SDL_rotozoom.c SDL_rotozoom.h highscore.c \
+- getopt.c getopt1.c getopt.h \
++ highscore.c getopt.c getopt1.c getopt.h \
+ $(win32_res)
+
+
Added: trunk/dports/games/freedroidclassic/files/patch-libvorbis.diff
===================================================================
--- trunk/dports/games/freedroidclassic/files/patch-libvorbis.diff (rev 0)
+++ trunk/dports/games/freedroidclassic/files/patch-libvorbis.diff 2012-04-17 13:42:52 UTC (rev 92078)
@@ -0,0 +1,11 @@
+--- configure.ac.orig 2012-04-17 23:26:00.000000000 +1000
++++ configure.ac 2012-04-17 23:30:17.000000000 +1000
+@@ -82,7 +82,7 @@
+ --> compiling without sound support
+ --------------------------------------------------]))
+
+-AC_CHECK_LIB([vorbis], [ov_open],, AC_MSG_WARN([
++AC_CHECK_LIB([vorbis], [vorbis_info_init],, AC_MSG_WARN([
+ --------------------------------------------------
+ libvorbis not found!
+ You need the Vorbis libs installed if you want
Added: trunk/dports/games/freedroidclassic/files/patch-src-misc.c.diff
===================================================================
--- trunk/dports/games/freedroidclassic/files/patch-src-misc.c.diff (rev 0)
+++ trunk/dports/games/freedroidclassic/files/patch-src-misc.c.diff 2012-04-17 13:42:52 UTC (rev 92078)
@@ -0,0 +1,11 @@
+--- src/misc.c 2003-08-08 14:31:03.000000000 +0300
++++ src/misc.c 2011-05-21 22:53:11.000000000 +0300
+@@ -175,7 +175,7 @@
+
+ if( (fp = fopen (fname, "r")) == NULL)
+ {
+- DebugPrintf (0, "WARNING: failed to open config-file: %s\n");
++ DebugPrintf (0, "WARNING: failed to open config-file: %s\n",fname);
+ return (ERR);
+ }
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120417/f655b4df/attachment.html>
More information about the macports-changes
mailing list