Revision: 38833 http://trac.macosforge.org/projects/macports/changeset/38833 Author: ryandesign@macports.org Date: 2008-08-01 01:43:24 -0700 (Fri, 01 Aug 2008) Log Message: ----------- ltris: * update to 1.0.12 * rename ${worksrcpath}/src/sdl.h to sdl_.h to avoid confusion with ${prefix}/include/SDL.h on case-insensitive filesystems * add forgotten dependencies on gettext and libiconv * add necessary linker flags for gettext * avoid unsupported --mode argument to install * use ${applications_dir} and don't assume /Applications/MacPorts * create symlink using tcl ln command instead of using system * enable parallel build Modified Paths: -------------- trunk/dports/games/ltris/Portfile Added Paths: ----------- trunk/dports/games/ltris/files/ trunk/dports/games/ltris/files/patch-install-mode.diff trunk/dports/games/ltris/files/patch-libintl.diff trunk/dports/games/ltris/files/patch-sdl_.h.diff Modified: trunk/dports/games/ltris/Portfile =================================================================== --- trunk/dports/games/ltris/Portfile 2008-08-01 08:03:00 UTC (rev 38832) +++ trunk/dports/games/ltris/Portfile 2008-08-01 08:43:24 UTC (rev 38833) @@ -3,10 +3,11 @@ PortSystem 1.0 name ltris -version 1.0.9 +version 1.0.12 categories games platforms darwin maintainers nomaintainer +use_parallel_build yes description Tetris clone with multiplayer and AI support. long_description LTris as a tetris clone which means you have a bowl \ with blocks falling down. By rotating and moving the \ @@ -21,18 +22,34 @@ homepage http://lgames.sourceforge.net/index.php?project=LTris master_sites sourceforge:lgames -checksums md5 51f719df95636f42e00fe5a777610dd3 +checksums md5 53b00c17a05c438602a52009e65ebde2 \ + sha1 bc0b389b520053f97c6415b4d430f55784073c1b \ + rmd160 017791be9d4e2dfc5a6b497e816b3482d22141c3 -depends_lib port:libsdl port:libsdl_mixer +depends_lib port:libsdl port:libsdl_mixer \ + port:gettext \ + port:libiconv -configure.cflags-append "-I${prefix}/include" +post-extract { + move ${worksrcpath}/src/sdl.h ${worksrcpath}/src/sdl_.h +} + +patchfiles patch-sdl_.h.diff \ + patch-libintl.diff \ + patch-install-mode.diff + configure.args --with-highscore-path=${prefix}/var/lib/games/ \ --disable-sdltest +# Can be removed once MacPorts 1.7.0 is released +if {![info exists applications_dir]} { + set applications_dir /Applications/MacPorts +} + platform darwin { post-destroot { - xinstall -m 755 -d ${destroot}/Applications/MacPorts/LTris.app/Contents/MacOS - system "ln -sf ${prefix}/bin/ltris \ - ${destroot}/Applications/MacPorts/LTris.app/Contents/MacOS/LTris" + xinstall -d ${destroot}${applications_dir}/LTris.app/Contents/MacOS + ln -s ${prefix}/bin/ltris \ + ${destroot}${applications_dir}/LTris.app/Contents/MacOS/LTris } } Added: trunk/dports/games/ltris/files/patch-install-mode.diff =================================================================== --- trunk/dports/games/ltris/files/patch-install-mode.diff (rev 0) +++ trunk/dports/games/ltris/files/patch-install-mode.diff 2008-08-01 08:43:24 UTC (rev 38833) @@ -0,0 +1,11 @@ +--- src/Makefile.in 2008-08-01 03:24:31.000000000 -0500 ++++ src/Makefile.in 2008-08-01 03:27:19.000000000 -0500 +@@ -611,7 +611,7 @@ + $(INSTALL_DATA) figures $(DESTDIR)$(inst_dir)/figures + $(mkinstalldirs) $(DESTDIR)$(hi_dir) + if ! test -f $(DESTDIR)$(hi_dir)/ltris.hscr; then \ +- $(INSTALL_DATA) --mode=666 empty.hscr $(DESTDIR)$(hi_dir)/ltris.hscr; \ ++ $(INSTALL_DATA) empty.hscr $(DESTDIR)$(hi_dir)/ltris.hscr; \ + fi; + + uninstall-local: Added: trunk/dports/games/ltris/files/patch-libintl.diff =================================================================== --- trunk/dports/games/ltris/files/patch-libintl.diff (rev 0) +++ trunk/dports/games/ltris/files/patch-libintl.diff 2008-08-01 08:43:24 UTC (rev 38833) @@ -0,0 +1,11 @@ +--- src/Makefile.in 2008-08-01 03:04:00.000000000 -0500 ++++ src/Makefile.in 2008-08-01 03:22:34.000000000 -0500 +@@ -225,7 +225,7 @@ + list.c tools.c config.c chart.c tetris.c bowl.c shrapnells.c cpu.c hint.c \ + parser.c + +-ltris_LDADD = @mixer_flag@ ++ltris_LDADD = $(LIBINTL) @mixer_flag@ + EXTRA_DIST = sdl.c menu.c item.c manager.c value.c main.c audio.c event.c \ + list.c tools.c config.c chart.c tetris.c bowl.c shrapnells.c cpu.c \ + sdl_.h menu.h item.h manager.h value.h audio.h event.h list.h tools.h \ Added: trunk/dports/games/ltris/files/patch-sdl_.h.diff =================================================================== --- trunk/dports/games/ltris/files/patch-sdl_.h.diff (rev 0) +++ trunk/dports/games/ltris/files/patch-sdl_.h.diff 2008-08-01 08:43:24 UTC (rev 38833) @@ -0,0 +1,53 @@ +--- src/Makefile.in 2008-03-29 07:17:48.000000000 -0500 ++++ src/Makefile.in 2008-08-01 02:40:06.000000000 -0500 +@@ -228,7 +228,7 @@ + ltris_LDADD = @mixer_flag@ + EXTRA_DIST = sdl.c menu.c item.c manager.c value.c main.c audio.c event.c \ + list.c tools.c config.c chart.c tetris.c bowl.c shrapnells.c cpu.c \ +-sdl.h menu.h item.h manager.h value.h audio.h event.h list.h tools.h \ ++sdl_.h menu.h item.h manager.h value.h audio.h event.h list.h tools.h \ + config.h chart.h tetris.h bowl.h shrapnells.h cpu.h ltris.h \ + hint.c hint.h gfx.S gfx.h parser.h gettext.h \ + empty.hscr figures +--- src/config.c 2005-10-04 16:25:36.000000000 -0500 ++++ src/config.c 2008-08-01 02:40:15.000000000 -0500 +@@ -23,7 +23,7 @@ + #include <sys/types.h> + #include <sys/stat.h> + +-#include "sdl.h" ++#include "sdl_.h" + #include "config.h" + #include "parser.h" + +--- src/ltris.h 2005-10-04 13:24:02.000000000 -0500 ++++ src/ltris.h 2008-08-01 02:40:12.000000000 -0500 +@@ -32,7 +32,7 @@ + #include <SDL_mixer.h> + #include "audio.h" + #endif +-#include "sdl.h" ++#include "sdl_.h" + #include "tools.h" + #include "config.h" + +--- src/sdl.c 2004-06-14 02:54:33.000000000 -0500 ++++ src/sdl.c 2008-08-01 02:39:59.000000000 -0500 +@@ -18,7 +18,7 @@ + #include <SDL.h> + #include <stdlib.h> + #include <string.h> +-#include "sdl.h" ++#include "sdl_.h" + + #ifdef USE_PNG + #include <png.h> +--- src/sdl_.h 2003-06-06 03:59:05.000000000 -0500 ++++ src/sdl_.h 2008-08-01 02:39:55.000000000 -0500 +@@ -1,5 +1,5 @@ + /*************************************************************************** +- sdl.h - description ++ sdl_.h - description + ------------------- + begin : Thu Apr 20 2000 + copyright : (C) 2000 by Michael Speck