diff options
author | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2007-03-07 15:10:16 +0000 |
---|---|---|
committer | Jean-Yves Lefort <jylefort@FreeBSD.org> | 2007-03-07 15:10:16 +0000 |
commit | 6e75038caa52d9f343f82926bf03b1c3b204d2a7 (patch) | |
tree | 85b91599517ff95d61b1f862ad1ab66eaff2f639 /games/freetennis/Makefile | |
parent | dc96622abf4add6f146c58f2953ec9372087cf23 (diff) |
Notes
Diffstat (limited to 'games/freetennis/Makefile')
-rw-r--r-- | games/freetennis/Makefile | 53 |
1 files changed, 53 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> |