blob: 3aca7e2eb94b5e07d86a933390de0cf6459c4a4b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# 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
PORTREVISION= 1
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>
|