summaryrefslogtreecommitdiff
path: root/games/ltris
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-03-11 09:42:24 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-03-11 09:42:24 +0000
commit637fd8c540066d4c84f547fd8f7c6553a082ed08 (patch)
tree040654c84085ba13b7849915361e7f6b0b3c6ea4 /games/ltris
parentNew port: zh-abiword (diff)
Update to 010310.
Notes
Notes: svn path=/head/; revision=39572
Diffstat (limited to 'games/ltris')
-rw-r--r--games/ltris/Makefile6
-rw-r--r--games/ltris/distinfo2
-rw-r--r--games/ltris/files/patch-af47
3 files changed, 4 insertions, 51 deletions
diff --git a/games/ltris/Makefile b/games/ltris/Makefile
index ab8501bc57df..64c3cfd7b531 100644
--- a/games/ltris/Makefile
+++ b/games/ltris/Makefile
@@ -6,16 +6,16 @@
#
PORTNAME= ltris
-PORTVERSION= 001115
+PORTVERSION= 010310
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= lgames
MAINTAINER= sobomax@FreeBSD.org
-LIB_DEPENDS= SDL-1.0.2:${PORTSDIR}/devel/sdl
+LIB_DEPENDS= SDL-1.1.3:${PORTSDIR}/devel/sdl-devel
-SDL_CONFIG?= ${LOCALBASE}/bin/sdl-config
+SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
USE_GMAKE= yes
GNU_CONFIGURE= yes
diff --git a/games/ltris/distinfo b/games/ltris/distinfo
index bbb645a7885a..414b6720b6b4 100644
--- a/games/ltris/distinfo
+++ b/games/ltris/distinfo
@@ -1 +1 @@
-MD5 (ltris-001115.tar.gz) = a1297d14fa6fce274056ec7d1052e14a
+MD5 (ltris-010310.tar.gz) = 800964c90a74e6c66ec1b3e888b59ac2
diff --git a/games/ltris/files/patch-af b/games/ltris/files/patch-af
deleted file mode 100644
index 7217f9582fd2..000000000000
--- a/games/ltris/files/patch-af
+++ /dev/null
@@ -1,47 +0,0 @@
---- 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");