diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-10-19 16:15:35 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-10-19 16:15:35 +0000 |
commit | c7b32248010b45e483dfffb6348225713d0c4210 (patch) | |
tree | 9c0d9bccb6ce04263dc10157a8f1e253550f6016 /games | |
parent | Change default pager from /usr/bin/pg to /usr/bin/more. As before, (diff) |
Add ltris - a SDL-based cool tetris clone.
Notes
Notes:
svn path=/head/; revision=34005
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/ltris/Makefile | 38 | ||||
-rw-r--r-- | games/ltris/distinfo | 1 | ||||
-rw-r--r-- | games/ltris/files/patch-aa | 11 | ||||
-rw-r--r-- | games/ltris/files/patch-ab | 10 | ||||
-rw-r--r-- | games/ltris/files/patch-ac | 20 | ||||
-rw-r--r-- | games/ltris/files/patch-ad | 11 | ||||
-rw-r--r-- | games/ltris/files/patch-ae | 13 | ||||
-rw-r--r-- | games/ltris/pkg-comment | 1 | ||||
-rw-r--r-- | games/ltris/pkg-descr | 26 | ||||
-rw-r--r-- | games/ltris/pkg-plist | 23 |
11 files changed, 155 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index a70daea8ef06..f1df23d31fd8 100644 --- a/games/Makefile +++ b/games/Makefile @@ -110,6 +110,7 @@ SUBDIR += libshhcards SUBDIR += lincity SUBDIR += linuxdoom + SUBDIR += ltris SUBDIR += madbomber SUBDIR += maelstrom SUBDIR += mangband diff --git a/games/ltris/Makefile b/games/ltris/Makefile new file mode 100644 index 000000000000..c29cc9cb8042 --- /dev/null +++ b/games/ltris/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: ltris +# Date created: 19 October 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= ltris +PORTVERSION= 001017 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= lgames + +MAINTAINER= sobomax@FreeBSD.org + +LIB_DEPENDS= SDL-1.0.2:${PORTSDIR}/devel/sdl + +SDL_CONFIG?= ${LOCALBASE}/bin/sdl-config + +USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags`" \ + LIBS="`${SDL_CONFIG} --libs` -L${LOCALBASE}/lib -lcompat" + +pre-patch: + @${PERL} -pi -e 's|-lpthread|-pthread|g' ${WRKSRC}/configure + @find ${WRKSRC} \( -name "*.[ch]" -or -name "*.cpp" \) | \ + xargs ${PERL} -pi -e 's|"SDL/SDL|"SDL|g ; s|<SDL/SDL|<SDL|g' + +post-install: + ${CHOWN} root:games ${PREFIX}/bin/${PORTNAME} + ${CHMOD} 2755 ${PREFIX}/bin/${PORTNAME} +.for N in 0 1 2 + ${CHMOD} 664 /var/games/${PORTNAME}/highscore.${N} + ${CHOWN} root:games /var/games/${PORTNAME}/highscore.${N} +.endfor + +.include <bsd.port.mk> diff --git a/games/ltris/distinfo b/games/ltris/distinfo new file mode 100644 index 000000000000..9813a55432e2 --- /dev/null +++ b/games/ltris/distinfo @@ -0,0 +1 @@ +MD5 (ltris-001017.tar.gz) = 2576350d43dd41fffcddcb897c589d03 diff --git a/games/ltris/files/patch-aa b/games/ltris/files/patch-aa new file mode 100644 index 000000000000..efc65f51557e --- /dev/null +++ b/games/ltris/files/patch-aa @@ -0,0 +1,11 @@ +--- ltris/Makefile.in 2000/10/19 14:39:51 1.1 ++++ ltris/Makefile.in 2000/10/19 14:40:03 +@@ -76,7 +76,7 @@ + + bin_PROGRAMS = ltris + ltris_SOURCES = tetris.cpp preview.cpp wave.cpp soundserver.cpp shrapnelllist.cpp shrapnell.cpp number.cpp gfx.S block.cpp bowl.cpp hiscore.cpp sdlsurface.cpp sdlfont.cpp sdl.cpp menuitem.cpp menu.cpp menumanager.cpp game.cpp main.cpp +-ltris_LDADD = -lpthread -lSDL -lm ++ltris_LDADD = #-lpthread -lSDL -lm + + EXTRA_DIST = main.cpp game.cpp game.h menumanager.cpp menumanager.h menu.cpp menu.h menuitem.cpp menuitem.h sdl.cpp sdl.h sdlfont.cpp sdlfont.h sdlsurface.cpp sdlsurface.h defs.h hiscore.cpp hiscore.h bowl.cpp bowl.h block.cpp block.h gfx.h gfx.S number.cpp number.h shrapnell.cpp shrapnell.h shrapnelllist.cpp shrapnelllist.h soundserver.cpp soundserver.h wave.cpp wave.h preview.cpp preview.h tetris.cpp tetris.h bkgnd0.bmp bkgnd1.bmp bkgnd2.bmp bkgnd3.bmp bkgnd4.bmp blocks.bmp logo.bmp quest.bmp title.bmp click.wav explosion.wav stop.wav leftright.wav font_s.sdlfnt f_white.bmp f_yellow.bmp highscore.0 highscore.1 highscore.2 + diff --git a/games/ltris/files/patch-ab b/games/ltris/files/patch-ab new file mode 100644 index 000000000000..38c3422f631f --- /dev/null +++ b/games/ltris/files/patch-ab @@ -0,0 +1,10 @@ +--- ltris/number.h 2000/10/19 14:34:25 1.1 ++++ ltris/number.h 2000/10/19 14:34:39 +@@ -24,6 +24,7 @@ + */ + + #include "sdl.h" ++#include <sys/types.h> + #include <sys/timeb.h> + + class Number { diff --git a/games/ltris/files/patch-ac b/games/ltris/files/patch-ac new file mode 100644 index 000000000000..6fa8a779b0d4 --- /dev/null +++ b/games/ltris/files/patch-ac @@ -0,0 +1,20 @@ +--- ltris/game.cpp.orig Thu Oct 19 17:48:49 2000 ++++ ltris/game.cpp Thu Oct 19 17:56:15 2000 +@@ -16,11 +16,17 @@ + ***************************************************************************/ + + #include <SDL.h> ++#include <sys/types.h> ++#include <sys/timeb.h> + #include <stdlib.h> + #include <string.h> + #include "game.h" + #include "defs.h" + #include "soundserver.h" ++ ++extern "C" { ++ int ftime(struct timeb *tp); ++}; + + Game::Game() + { diff --git a/games/ltris/files/patch-ad b/games/ltris/files/patch-ad new file mode 100644 index 000000000000..51dd8b0da938 --- /dev/null +++ b/games/ltris/files/patch-ad @@ -0,0 +1,11 @@ +--- Makefile.in 2000/10/19 14:45:02 1.1 ++++ Makefile.in 2000/10/19 14:45:14 +@@ -45,7 +45,7 @@ + ACLOCAL = @ACLOCAL@ + AUTOCONF = @AUTOCONF@ + AUTOMAKE = @AUTOMAKE@ +-AUTOHEADER = @AUTOHEADER@ ++AUTOHEADER = true + + INSTALL = @INSTALL@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) diff --git a/games/ltris/files/patch-ae b/games/ltris/files/patch-ae new file mode 100644 index 000000000000..7b1915eea2d5 --- /dev/null +++ b/games/ltris/files/patch-ae @@ -0,0 +1,13 @@ +--- configure.orig Thu Oct 19 17:58:15 2000 ++++ configure Thu Oct 19 17:59:38 2000 +@@ -1322,8 +1322,8 @@ + + + +-sdir=$datadir/games/ltris +-hdir=/var/lib/games/ltris ++sdir=$datadir/ltris ++hdir=/var/games/ltris + inst_flag="-DSRC_DIR=\\\"$sdir/\\\"" + hi_inst_flag="-DHI_DIR=\\\"$hdir/\\\"" + diff --git a/games/ltris/pkg-comment b/games/ltris/pkg-comment new file mode 100644 index 000000000000..1c62deaed605 --- /dev/null +++ b/games/ltris/pkg-comment @@ -0,0 +1 @@ +An another tetris clone but a good one with bunch of cool features diff --git a/games/ltris/pkg-descr b/games/ltris/pkg-descr new file mode 100644 index 000000000000..8cd6f10acd53 --- /dev/null +++ b/games/ltris/pkg-descr @@ -0,0 +1,26 @@ +LTris is just another tetris clone but imho a good one. So if you like tetris, +download and play it! + +Features: + + Tetris clone using SDL + Sound + Menu + Controls can be redefined + Block preview + Starting level between 0 and 9 + Various backgrounds + HighScores + Nice graphics + Smooth gameplay + Cool effects (transparency, animations) + Two player mode + Two game modes + +Two game modes? Yes. The first one called "normal" is the mode everbody knows +well. You play as long as you can while the blocks are getting faster. The +second one called "advanced" has got some additional features. First there is +a new figure in each new level and second later on there are suddenly appearing +tiles and rows. + +WWW: http://lgames.sourceforge.net/ltris/ltris.html diff --git a/games/ltris/pkg-plist b/games/ltris/pkg-plist new file mode 100644 index 000000000000..df23268d0224 --- /dev/null +++ b/games/ltris/pkg-plist @@ -0,0 +1,23 @@ +bin/ltris +share/ltris/bkgnd0.bmp +share/ltris/bkgnd1.bmp +share/ltris/bkgnd2.bmp +share/ltris/bkgnd3.bmp +share/ltris/bkgnd4.bmp +share/ltris/blocks.bmp +share/ltris/click.wav +share/ltris/explosion.wav +share/ltris/f_white.bmp +share/ltris/f_yellow.bmp +share/ltris/font_s.sdlfnt +share/ltris/leftright.wav +share/ltris/logo.bmp +share/ltris/quest.bmp +share/ltris/stop.wav +share/ltris/title.bmp +@dirrm share/ltris +@cwd /var/games +ltris/highscore.0 +ltris/highscore.1 +ltris/highscore.2 +@dirrm ltris |