diff --git a/games/Makefile b/games/Makefile index 9c03ee51d0e4..aae95e31563c 100644 --- a/games/Makefile +++ b/games/Makefile @@ -223,6 +223,7 @@ SUBDIR += freera SUBDIR += freesci SUBDIR += freesweep + SUBDIR += freetennis SUBDIR += fretsonfire SUBDIR += fretsonfire-data SUBDIR += frikqcc 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 +# +# $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 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