diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-12-21 19:16:19 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-12-21 19:16:19 +0000 |
commit | c1e724483a99f3bf014dc795a9b7f8977bf99661 (patch) | |
tree | dc1ec33f6d9058ca3ead19b927ef41ad76529a8e /games/ltris | |
parent | 1df969654c9b786f6f6aa7c96a2b0a9b9ef2e23d (diff) | |
download | ports-c1e724483a99f3bf014dc795a9b7f8977bf99661.tar.gz ports-c1e724483a99f3bf014dc795a9b7f8977bf99661.zip |
Update to 001115.
Notes
Notes:
svn path=/head/; revision=36204
Diffstat (limited to 'games/ltris')
-rw-r--r-- | games/ltris/Makefile | 2 | ||||
-rw-r--r-- | games/ltris/distinfo | 2 | ||||
-rw-r--r-- | games/ltris/files/patch-ae | 22 | ||||
-rw-r--r-- | games/ltris/files/patch-af | 47 |
4 files changed, 69 insertions, 4 deletions
diff --git a/games/ltris/Makefile b/games/ltris/Makefile index c29cc9cb8042..ab8501bc57df 100644 --- a/games/ltris/Makefile +++ b/games/ltris/Makefile @@ -6,7 +6,7 @@ # PORTNAME= ltris -PORTVERSION= 001017 +PORTVERSION= 001115 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= lgames diff --git a/games/ltris/distinfo b/games/ltris/distinfo index 9813a55432e2..bbb645a7885a 100644 --- a/games/ltris/distinfo +++ b/games/ltris/distinfo @@ -1 +1 @@ -MD5 (ltris-001017.tar.gz) = 2576350d43dd41fffcddcb897c589d03 +MD5 (ltris-001115.tar.gz) = a1297d14fa6fce274056ec7d1052e14a diff --git a/games/ltris/files/patch-ae b/games/ltris/files/patch-ae index 7b1915eea2d5..966acad18dcb 100644 --- a/games/ltris/files/patch-ae +++ b/games/ltris/files/patch-ae @@ -1,5 +1,23 @@ ---- configure.orig Thu Oct 19 17:58:15 2000 -+++ configure Thu Oct 19 17:59:38 2000 +--- configure.orig Thu Dec 21 19:28:40 2000 ++++ configure Thu Dec 21 19:30:24 2000 +@@ -1272,7 +1272,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lSDL $LIBS" ++LIBS="$LIBS" + cat > conftest.$ac_ext <<EOF + #line 1278 "configure" + #include "confdefs.h" +@@ -1302,7 +1302,7 @@ + #define $ac_tr_lib 1 + EOF + +- LIBS="-lSDL $LIBS" ++ LIBS="$LIBS" + + else + echo "$ac_t""no" 1>&6 @@ -1322,8 +1322,8 @@ diff --git a/games/ltris/files/patch-af b/games/ltris/files/patch-af new file mode 100644 index 000000000000..7217f9582fd2 --- /dev/null +++ b/games/ltris/files/patch-af @@ -0,0 +1,47 @@ +--- ltris/tetris.cpp.orig Thu Dec 21 20:53:27 2000 ++++ ltris/tetris.cpp Thu Dec 21 21:03:51 2000 +@@ -19,6 +19,8 @@ + #include <string.h> + #include <stdlib.h> + #include <stdio.h> ++#include <sys/types.h> ++#include <sys/stat.h> + #include "tetris.h" + #include "preview.h" + +@@ -35,14 +37,18 @@ + snapshot = 0; + q_pct = 90; + q_pms = -0.05; ++ struct stat sb; + + //setup init data + /*config path*/ + cfg_path = new char[strlen(home_dir) + strlen(".ltris.cfg") + 2]; + sprintf(cfg_path, "%s/.ltris.cfg", home_dir); + /*load init*/ +- FILE *f; +- if ((f = fopen(cfg_path, "r")) == 0) { ++ FILE *f = NULL; ++ if (stat(cfg_path, &sb) == 0) { ++ f = fopen(cfg_path, "r"); ++ } ++ if ((f == NULL) || (sb.st_size != sizeof(InitData))) { + init_data.level = 0; + init_data.gametype = 0; + init_data.next = 1; +@@ -73,11 +79,13 @@ + init_data.smooth_hori = 0; + init_data.help = 0; + init_data.bl_by_bl = 0; ++ init_data.slow = 0; + } + else { + fread(&init_data, sizeof(InitData), 1, f); +- fclose(f); + } ++ if (f != NULL) ++ fclose(f); + + //load hiscores + hiscore[0] = new HiScore("highscore.0"); |