diff options
author | rene <rene@FreeBSD.org> | 2016-07-23 22:19:05 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2016-07-23 22:19:05 +0800 |
commit | cf30caeb7c67bfd1feabe3b67061fdac6bc5d042 (patch) | |
tree | 1798d940c2bd7e82387d52f9f743b579e41e2d3d /games | |
parent | 88d37c4451595ea05092d37082b883fe7ad909ec (diff) | |
download | freebsd-ports-gnome-cf30caeb7c67bfd1feabe3b67061fdac6bc5d042.tar.gz freebsd-ports-gnome-cf30caeb7c67bfd1feabe3b67061fdac6bc5d042.tar.zst freebsd-ports-gnome-cf30caeb7c67bfd1feabe3b67061fdac6bc5d042.zip |
Ressurect devel/omake, graphics/ocaml-images and games/freetennis [1]
- devel/omake:
- add new MASTER_SITES
- regenerate patches [1]
- graphics/ocaml-images:
- add missing LIB_DEPENDS
- pet portlint
- bump PORTREVISION
- games/freetennis:
- add missing indirect depedencies [2]
- bump PORTREVISION
PR: 210853 [1]
Submitted by: lightside@gmx.com [1]
Reported by: poudriere testport [2]
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/freetennis/Makefile | 44 | ||||
-rw-r--r-- | games/freetennis/distinfo | 2 | ||||
-rw-r--r-- | games/freetennis/files/patch-Makefile | 7 | ||||
-rw-r--r-- | games/freetennis/pkg-descr | 15 |
5 files changed, 69 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 528a4b243046..04d40320e1eb 100644 --- a/games/Makefile +++ b/games/Makefile @@ -294,6 +294,7 @@ SUBDIR += freera SUBDIR += freesweep SUBDIR += freesynd + 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..cc05bd13d0e2 --- /dev/null +++ b/games/freetennis/Makefile @@ -0,0 +1,44 @@ +# Created by: Jean-Yves Lefort <jylefort@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= freetennis +PORTVERSION= 0.4.8 +PORTREVISION= 14 +CATEGORIES= games +MASTER_SITES= SF + +MAINTAINER= ports@FreeBSD.org +COMMENT= Tennis simulation + +BUILD_DEPENDS= ocamlopt:lang/ocaml \ + ocaml-images>3.0:graphics/ocaml-images \ + ${OCAML_DEPENDS} +RUN_DEPENDS= ${OCAML_DEPENDS} +LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 + +OCAML_DEPENDS= ${LOCALBASE}/lib/ocaml/site-lib/lablgtk2/gtk.ml:x11-toolkits/ocaml-lablgtk2 \ + ${LOCALBASE}/lib/ocaml/lablGL/gl.ml:graphics/ocaml-lablgl \ + ${LOCALBASE}/lib/ocaml/site-lib/sdl/sdl.mli:devel/ocaml-sdl + +USES= gettext tar:bzip2 +USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango +USE_GL= gl glu +USE_SDL= ttf mixer sdl +USE_XORG= x11 xext xmu + +PLIST_FILES= bin/freetennis +PORTDATA= * + +post-patch: + @${REINPLACE_CMD} -e 's|sfxDir = "sfx"|sfxDir = "${DATADIR}/sfx"|; \ + s|gfxDir = "graphics"|gfxDir = "${DATADIR}/graphics"|' \ + ${WRKSRC}/freetennis.ml + @${REINPLACE_CMD} -Ee 's@(\+)(lablgtk2)@\1site-lib/\2@' \ + ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/freetennis ${STAGEDIR}${PREFIX}/bin + (cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics sfx" ${STAGEDIR}${DATADIR}) + +.include <bsd.port.mk> diff --git a/games/freetennis/distinfo b/games/freetennis/distinfo new file mode 100644 index 000000000000..abc57ad26be2 --- /dev/null +++ b/games/freetennis/distinfo @@ -0,0 +1,2 @@ +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..405bb49683f5 --- /dev/null +++ b/games/freetennis/files/patch-Makefile @@ -0,0 +1,7 @@ +--- Makefile.orig 2005-11-21 13:20:33.000000000 -0800 ++++ Makefile 2010-04-09 02:58:00.000000000 -0700 +@@ -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 +site-lib/camlimages -I +lablGL -I +lablgtk2 -I +site-lib/sdl -o freetennis bigarray.cmxa sdl.cmxa lablgtk.cmxa lablgl.cmxa camlimages_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..aa65bef7850f --- /dev/null +++ b/games/freetennis/pkg-descr @@ -0,0 +1,15 @@ +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/ |