diff options
author | edwin <edwin@FreeBSD.org> | 2005-12-21 13:31:00 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-12-21 13:31:00 +0800 |
commit | f4ebd0f1ed8092587b09cfc74b193e7c86b86263 (patch) | |
tree | 3e5052480646f3861c7c2fa52014fe9dc96ac15d /games | |
parent | 928a3b54cc863fb70c5d131f79f9742058583273 (diff) | |
download | freebsd-ports-gnome-f4ebd0f1ed8092587b09cfc74b193e7c86b86263.tar.gz freebsd-ports-gnome-f4ebd0f1ed8092587b09cfc74b193e7c86b86263.tar.zst freebsd-ports-gnome-f4ebd0f1ed8092587b09cfc74b193e7c86b86263.zip |
New port: games/toycars Physics-based 2D racing game
Toy Cars is a physics based 2-D racer. The graphics and the interface
use SDL and OpenGL.
Toy Cars is partly inspired by Micromachines and partly by the old
Atari ST game called Jupiter's Masterdrive.
WWW: http://sourceforge.net/projects/toycars/
PR: ports/90642
Submitted by: Dmitry Marakasov <amdmi3@mail.ru>
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/toycars/Makefile | 24 | ||||
-rw-r--r-- | games/toycars/distinfo | 3 | ||||
-rw-r--r-- | games/toycars/files/patch-src-Player.cpp | 13 | ||||
-rw-r--r-- | games/toycars/files/patch-src-ToyCar.h | 14 | ||||
-rw-r--r-- | games/toycars/pkg-descr | 7 | ||||
-rw-r--r-- | games/toycars/pkg-plist | 42 |
7 files changed, 104 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 4a9e295a263e..cfb49c468f50 100644 --- a/games/Makefile +++ b/games/Makefile @@ -577,6 +577,7 @@ SUBDIR += torcs SUBDIR += tornado SUBDIR += torrent + SUBDIR += toycars SUBDIR += trackballs SUBDIR += tractorgen SUBDIR += traindirector diff --git a/games/toycars/Makefile b/games/toycars/Makefile new file mode 100644 index 000000000000..583ed5c8a11a --- /dev/null +++ b/games/toycars/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: toycars +# Date created: 15 Dec 2005 +# Whom: Dmitry Marakasov <amdmi3@mail.ru> +# +# $FreeBSD$ +# + +PORTNAME= toycars +PORTVERSION= 0.2.5 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= toycars + +MAINTAINER= amdmi3@mail.ru +COMMENT= Physics-based 2D racing game + +USE_SDL= image sdl +USE_GMAKE= yes +GNU_CONFIGURE= yes +USE_REINPLACE= yes + +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" + +.include <bsd.port.mk> diff --git a/games/toycars/distinfo b/games/toycars/distinfo new file mode 100644 index 000000000000..5c6a8a20cff1 --- /dev/null +++ b/games/toycars/distinfo @@ -0,0 +1,3 @@ +MD5 (toycars-0.2.5.tar.gz) = aab7be40e4e12d465752bd94f09e3268 +SHA256 (toycars-0.2.5.tar.gz) = 3f0022e8b368109997d23781cdade47a0c45655d1d4182b97106ca0a9a0c86bb +SIZE (toycars-0.2.5.tar.gz) = 3278359 diff --git a/games/toycars/files/patch-src-Player.cpp b/games/toycars/files/patch-src-Player.cpp new file mode 100644 index 000000000000..6169527fffcb --- /dev/null +++ b/games/toycars/files/patch-src-Player.cpp @@ -0,0 +1,13 @@ +--- src/Player.cpp.orig Sat Nov 26 01:04:36 2005 ++++ src/Player.cpp Mon Dec 19 11:26:04 2005 +@@ -33,6 +33,10 @@ + + // member functions + ++#ifndef INFINITY ++#define INFINITY MAXFLOAT ++#endif ++ + Player::Player(ToyCar& inCar) + : car(inCar), lapFlag(-1), laps(0), curLap(0.0), prevLap(0.0), bestLapTime(INFINITY), courseTime(0.0) + { diff --git a/games/toycars/files/patch-src-ToyCar.h b/games/toycars/files/patch-src-ToyCar.h new file mode 100644 index 000000000000..d01b2247a582 --- /dev/null +++ b/games/toycars/files/patch-src-ToyCar.h @@ -0,0 +1,14 @@ +--- src/ToyCar.h.orig Mon Dec 12 04:11:19 2005 ++++ src/ToyCar.h Mon Dec 19 11:39:10 2005 +@@ -25,6 +25,11 @@ + #include "WheelSprite.h" + #include "ScSprite.h" + ++#include <stdio.h> ++#include <time.h> ++#include <unistd.h> ++#include <string> ++ + // ToyCar class + + class ToyCar : public Vehicle, public ScSprite diff --git a/games/toycars/pkg-descr b/games/toycars/pkg-descr new file mode 100644 index 000000000000..4c00b6cab6ec --- /dev/null +++ b/games/toycars/pkg-descr @@ -0,0 +1,7 @@ +Toy Cars is a physics based 2-D racer. The graphics and the interface +use SDL and OpenGL. + +Toy Cars is partly inspired by Micromachines and partly by the old +Atari ST game called Jupiter's Masterdrive. + +WWW: http://sourceforge.net/projects/toycars/ diff --git a/games/toycars/pkg-plist b/games/toycars/pkg-plist new file mode 100644 index 000000000000..de16869191ae --- /dev/null +++ b/games/toycars/pkg-plist @@ -0,0 +1,42 @@ +bin/toycars +%%DATADIR%%/data/cars/carslist.xml +%%DATADIR%%/data/cars/concept_sedan/concept_sedan.png +%%DATADIR%%/data/cars/concept_sedan/concept_sedan.xml +%%DATADIR%%/data/cars/concept_sedan/concept_sedan_wheel.png +%%DATADIR%%/data/cars/dodge-viper/dodge-viper-sprite.png +%%DATADIR%%/data/cars/dodge-viper/dodge-viper.xml +%%DATADIR%%/data/cars/dodge-viper/wheel.png +%%DATADIR%%/data/cars/ferrari-f1/ferrari-f1-sprite.png +%%DATADIR%%/data/cars/ferrari-f1/ferrari-f1.xml +%%DATADIR%%/data/cars/ferrari-f1/ferrari-wheel-sprite.png +%%DATADIR%%/data/fonts/cricket1.glf +%%DATADIR%%/data/images/bombsprite.png +%%DATADIR%%/data/images/loading.png +%%DATADIR%%/data/images/needle.png +%%DATADIR%%/data/images/title.png +%%DATADIR%%/data/tilesets/default/default.xml +%%DATADIR%%/data/tilesets/default/tiles.png +%%DATADIR%%/data/tracks/Circuit/Circuit.xml +%%DATADIR%%/data/tracks/Circuit/oval.map +%%DATADIR%%/data/tracks/Corner/Corner.xml +%%DATADIR%%/data/tracks/Corner/corner.map +%%DATADIR%%/data/tracks/Helix/Helix.xml +%%DATADIR%%/data/tracks/Helix/helix.map +%%DATADIR%%/data/tracks/Rings/Rings.xml +%%DATADIR%%/data/tracks/Rings/rings.map +%%DATADIR%%/data/tracks/tracklist.xml +@dirrm %%DATADIR%%/data/tracks/Rings +@dirrm %%DATADIR%%/data/tracks/Helix +@dirrm %%DATADIR%%/data/tracks/Corner +@dirrm %%DATADIR%%/data/tracks/Circuit +@dirrm %%DATADIR%%/data/tracks +@dirrm %%DATADIR%%/data/tilesets/default +@dirrm %%DATADIR%%/data/tilesets +@dirrm %%DATADIR%%/data/images +@dirrm %%DATADIR%%/data/fonts +@dirrm %%DATADIR%%/data/cars/ferrari-f1 +@dirrm %%DATADIR%%/data/cars/dodge-viper +@dirrm %%DATADIR%%/data/cars/concept_sedan +@dirrm %%DATADIR%%/data/cars +@dirrm %%DATADIR%%/data +@dirrm %%DATADIR%% |