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

Free Tennis is a tennis simulation. The most notable features of Free Tennis

are:

- Real tactics are useful in the game. For example, it is best to take the net
  with a slow, low shot (backspin); it is best to play diagonal when you are
  decentered horizontally, in order not to give angles; you should get back to
  center and behind the baseline after the shot, in order not to be caught in
  No-Man's-Land when the opponent hits
- The A.I. is very advanced and reflects those tactics;
- You have total control over the parabola described by the shot;
- The graphic gestures are realistic and elegant;
- Different players have different skills;
- The game is developed by a former tennis player;

WWW: http://freetennis.sourceforge.net/
This commit is contained in:
Jean-Yves Lefort 2007-03-07 15:10:16 +00:00
parent dc96622abf
commit 6e75038caa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186813
5 changed files with 82 additions and 0 deletions

View File

@ -223,6 +223,7 @@
SUBDIR += freera
SUBDIR += freesci
SUBDIR += freesweep
SUBDIR += freetennis
SUBDIR += fretsonfire
SUBDIR += fretsonfire-data
SUBDIR += frikqcc

53
games/freetennis/Makefile Normal file
View File

@ -0,0 +1,53 @@
# New ports collection makefile for: freetennis
# Date created: 07 Mar 2007
# Whom: Jean-Yves Lefort <jylefort@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= freetennis
PORTVERSION= 0.4.8
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= freetennis
MAINTAINER= jylefort@FreeBSD.org
COMMENT= A tennis simulation
BUILD_DEPENDS= ocamlopt:${PORTSDIR}/lang/ocaml \
${OCAML_DEPENDS}
RUN_DEPENDS= ${OCAML_DEPENDS}
OCAML_DEPENDS= ${LOCALBASE}/lib/ocaml/lablgtk2/gtk.ml:${PORTSDIR}/x11-toolkits/ocaml-lablgtk2 \
${LOCALBASE}/lib/ocaml/lablGL/gl.ml:${PORTSDIR}/graphics/ocaml-lablgl \
${LOCALBASE}/lib/ocaml/camlimages/oImages.cmx:${PORTSDIR}/graphics/ocaml-images \
${LOCALBASE}/lib/ocaml/site-lib/sdl/sdl.mli:${PORTSDIR}/devel/ocaml-sdl
USE_BZIP2= yes
PLIST= ${WRKDIR}/pkg-plist
PLIST_FILES= bin/freetennis
PLIST_DIRS= %%DATADIR%%
post-patch:
@${REINPLACE_CMD} -e 's|sfxDir = "sfx"|sfxDir = "${DATADIR}/sfx"|; \
s|gfxDir = "graphics"|gfxDir = "${DATADIR}/graphics"|' \
${WRKSRC}/freetennis.ml
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC} && \
${FIND} graphics sfx -type f | ${SORT} \
| ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} graphics sfx -type d | ${SORT} -r \
| ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/freetennis ${PREFIX}/bin
cd ${WRKSRC} && \
${FIND} graphics sfx -type d -exec \
${MKDIR} "${DATADIR}/{}" \; && \
${FIND} graphics sfx -type f -exec \
${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (freetennis-0.4.8.tar.bz2) = 9a8dc8f588420ff246b3f2b602ae02de
SHA256 (freetennis-0.4.8.tar.bz2) = 0d4663d1c9ce5bbef4d87a9d9f85a4570016a2945c41d1d293fb1357e426bebf
SIZE (freetennis-0.4.8.tar.bz2) = 7119435

View File

@ -0,0 +1,7 @@
--- Makefile.orig Wed Mar 7 15:50:40 2007
+++ Makefile Wed Mar 7 15:51:29 2007
@@ -1,3 +1,3 @@
# add -noassert for speedup
all: freetennis.ml
- ocamlopt -I +camlimages -I +lablGL -I +lablgtk2 -I +sdl -o freetennis bigarray.cmxa sdl.cmxa lablgtk.cmxa lablgl.cmxa ci_core.cmxa sdlmixer.cmxa sdlttf.cmxa unix.cmxa freetennis.ml
+ ocamlopt -noassert -cclib -pthread -I +camlimages -I +lablGL -I +lablgtk2 -I +site-lib/sdl -o freetennis bigarray.cmxa sdl.cmxa lablgtk.cmxa lablgl.cmxa ci_core.cmxa sdlmixer.cmxa sdlttf.cmxa unix.cmxa freetennis.ml

View File

@ -0,0 +1,18 @@
Free Tennis is a tennis simulation. The most notable features of Free Tennis
are:
- Real tactics are useful in the game. For example, it is best to take the net
with a slow, low shot (backspin); it is best to play diagonal when you are
decentered horizontally, in order not to give angles; you should get back to
center and behind the baseline after the shot, in order not to be caught in
No-Man's-Land when the opponent hits
- The A.I. is very advanced and reflects those tactics;
- You have total control over the parabola described by the shot;
- The graphic gestures are realistic and elegant;
- Different players have different skills;
- The game is developed by a former tennis player;
WWW: http://freetennis.sourceforge.net/
- Jean-Yves Lefort
jylefort@FreeBSD.org