aboutsummaryrefslogtreecommitdiff
path: root/games/freetennis
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2007-03-07 15:10:16 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2007-03-07 15:10:16 +0000
commit6e75038caa52d9f343f82926bf03b1c3b204d2a7 (patch)
tree85b91599517ff95d61b1f862ad1ab66eaff2f639 /games/freetennis
parentdc96622abf4add6f146c58f2953ec9372087cf23 (diff)
downloadports-6e75038caa52d9f343f82926bf03b1c3b204d2a7.tar.gz
ports-6e75038caa52d9f343f82926bf03b1c3b204d2a7.zip
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/
Notes
Notes: svn path=/head/; revision=186813
Diffstat (limited to 'games/freetennis')
-rw-r--r--games/freetennis/Makefile53
-rw-r--r--games/freetennis/distinfo3
-rw-r--r--games/freetennis/files/patch-Makefile7
-rw-r--r--games/freetennis/pkg-descr18
4 files changed, 81 insertions, 0 deletions
diff --git a/games/freetennis/Makefile b/games/freetennis/Makefile
new file mode 100644
index 000000000000..fe5705ed59e7
--- /dev/null
+++ b/games/freetennis/Makefile
@@ -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>
diff --git a/games/freetennis/distinfo b/games/freetennis/distinfo
new file mode 100644
index 000000000000..46fce433677c
--- /dev/null
+++ b/games/freetennis/distinfo
@@ -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
diff --git a/games/freetennis/files/patch-Makefile b/games/freetennis/files/patch-Makefile
new file mode 100644
index 000000000000..04cb3387eb63
--- /dev/null
+++ b/games/freetennis/files/patch-Makefile
@@ -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
diff --git a/games/freetennis/pkg-descr b/games/freetennis/pkg-descr
new file mode 100644
index 000000000000..73c3ba056473
--- /dev/null
+++ b/games/freetennis/pkg-descr
@@ -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