1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Add lbreakout - a SDL-based clone of classical Breakout game.

This commit is contained in:
Maxim Sobolev 2000-10-20 07:32:38 +00:00
parent c6fb1210fa
commit 0050bccb45
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=34013
11 changed files with 175 additions and 0 deletions

View File

@ -107,6 +107,7 @@
SUBDIR += krubik
SUBDIR += ktamaga
SUBDIR += ladder
SUBDIR += lbreakout
SUBDIR += libshhcards
SUBDIR += lincity
SUBDIR += linuxdoom

38
games/lbreakout/Makefile Normal file
View File

@ -0,0 +1,38 @@
# New ports collection makefile for: lbreakout
# Date created: 19 October 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= lbreakout
PORTVERSION= 001018
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= LIBS="-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'
pre-install:
${MKDIR} /var/games/${PORTNAME}
post-install:
${CHOWN} root:games ${PREFIX}/bin/${PORTNAME}
${CHMOD} 2755 ${PREFIX}/bin/${PORTNAME}
${CHMOD} 664 /var/games/${PORTNAME}/${PORTNAME}.hscr
${CHOWN} root:games /var/games/${PORTNAME}/${PORTNAME}.hscr
.include <bsd.port.mk>

1
games/lbreakout/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (lbreakout-001018.tar.gz) = 64cfdae38846205ba0cebfef7ecf7280

View File

@ -0,0 +1,11 @@
--- lbreakout/Makefile.in 2000/10/20 06:56:24 1.1
+++ lbreakout/Makefile.in 2000/10/20 06:56:47
@@ -80,7 +80,7 @@
bin_PROGRAMS = lbreakout
lbreakout_SOURCES = hiscore.cpp dynlist.c level.cpp breakout.cpp sndsrv.c sdl.c menumanager.cpp menuitem.cpp menu.cpp game.cpp main.cpp
-lbreakout_LDADD = -lpthread -lm @thread_flag@
+lbreakout_LDADD = @thread_flag@
EXTRA_SUBDIRS = manual

View File

@ -0,0 +1,10 @@
--- lbreakout/breakout.cpp 2000/10/20 07:01:37 1.1
+++ lbreakout/breakout.cpp 2000/10/20 07:02:11
@@ -19,6 +19,7 @@
#include "level.h"
#include <stdlib.h>
#include <stdio.h>
+#include <sys/types.h>
#include <sys/timeb.h>
#include <string.h>
#include <math.h>

View File

@ -0,0 +1,21 @@
--- lbreakout/game.cpp 2000/10/20 07:02:55 1.1
+++ lbreakout/game.cpp 2000/10/20 07:03:35
@@ -15,6 +15,7 @@
* *
***************************************************************************/
+#include <sys/types.h>
#include <sys/timeb.h>
#include <stdlib.h>
#include <string.h>
@@ -22,6 +23,10 @@
#include "breakout.h"
#include "menumanager.h"
#include "level.h"
+
+extern "C" {
+ int ftime(struct timeb *tp);
+};
#ifdef SOUND
extern SndSrv sndsrv;

View File

@ -0,0 +1,11 @@
--- Makefile.in.orig Wed Oct 18 17:27:21 2000
+++ Makefile.in Fri Oct 20 09:57:40 2000
@@ -46,7 +46,7 @@
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
-AUTOHEADER = @AUTOHEADER@
+AUTOHEADER = true
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)

View File

@ -0,0 +1,13 @@
--- configure 2000/10/20 06:57:57 1.1
+++ configure 2000/10/20 06:58:16
@@ -1783,8 +1783,8 @@
-sdir=$datadir/games/lbreakout
-hdir=/var/lib/games
+sdir=$datadir/lbreakout
+hdir=/var/games/lbreakout
inst_flag="-DSRC_DIR=\\\"$sdir/\\\""
hi_inst_flag="-DHI_DIR=\\\"$hdir/\\\""

View File

@ -0,0 +1 @@
A nice clone of classical Breakout game

21
games/lbreakout/pkg-descr Normal file
View File

@ -0,0 +1,21 @@
LBreakout is a classical Breakout game and this means (if you like Breakout ;-)
it is a lot of fun to play! If you never ever played such a game you can check
out the manual for more information and last but not least... play it!
This is a list of LBreakout's features:
Sound
HighScore
A menu with mouse support
Mouse or keyboard can be used for playing
Controls can be redefined
Mouse can be kept in window while playing
Your starting level can be chosen
A difficulty can be selected (easy, medium, hard)
Various backgrounds
A lot of collectable extras
Nice graphics
Cool effects
Own levels can be created
WWW: http://lgames.sourceforge.net/lbreakout/lbreakout.html

47
games/lbreakout/pkg-plist Normal file
View File

@ -0,0 +1,47 @@
bin/lbreakout
share/lbreakout/ball.bmp
share/lbreakout/bkgnd0.bmp
share/lbreakout/bkgnd1.bmp
share/lbreakout/bkgnd2.bmp
share/lbreakout/bricks.bmp
share/lbreakout/click.wav
share/lbreakout/club.bmp
share/lbreakout/damn.wav
share/lbreakout/damnit.wav
share/lbreakout/excellent.wav
share/lbreakout/exp.wav
share/lbreakout/expand.wav
share/lbreakout/extras.bmp
share/lbreakout/f_white.bmp
share/lbreakout/f_yellow.bmp
share/lbreakout/font_s.sdlfnt
share/lbreakout/fr_l.bmp
share/lbreakout/fr_luc.bmp
share/lbreakout/fr_r.bmp
share/lbreakout/fr_rlc.bmp
share/lbreakout/fr_ruc.bmp
share/lbreakout/fr_t.bmp
share/lbreakout/freeze.wav
share/lbreakout/gainlife.wav
share/lbreakout/life.bmp
share/lbreakout/logo.bmp
share/lbreakout/looselife.wav
share/lbreakout/metal.wav
share/lbreakout/numbers.bmp
share/lbreakout/reflect.wav
share/lbreakout/score.wav
share/lbreakout/shine2.bmp
share/lbreakout/shot.bmp
share/lbreakout/shot.wav
share/lbreakout/shrink.wav
share/lbreakout/slime.wav
share/lbreakout/title.bmp
share/lbreakout/verygood.wav
share/lbreakout/wall.wav
share/lbreakout/weapon.bmp
share/lbreakout/weapon.wav
share/lbreakout/wontgiveup.wav
@dirrm share/lbreakout
@cwd /var/games
lbreakout/lbreakout.hscr
@dirrm lbreakout