blob: 94fe1b4749b8bd541c273adece3b6bb13b0cb71a (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Created by: thierry@pompo.net
# $FreeBSD$
PORTNAME= torcs
DISTVERSION= 1.3.4
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/all-in-one/${PORTVERSION}
MAINTAINER= rene@FreeBSD.org
COMMENT= The Open Racing Car Simulator
LICENSE= GPLv2
MAKE_JOBS_UNSAFE= yes
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libvorbis.so:${PORTSDIR}/audio/libvorbis
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
USES= gmake shebangfix
SHEBANG_FILES= src/tools/accc/accc.in src/tools/nfsperf/nfsperf.in \
src/tools/texmapper/texmapper.in src/tools/nfs2ac/nfs2ac.in \
src/tools/trackgen/trackgen.in \
src/modules/telemetry/telemetry.sh robotgen
USE_XORG= xrender xmu ice xext x11 xxf86vm xrandr
USE_GL= glut
USE_OPENAL= al alut
USE_BZIP2= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --x-includes=${LOCALBASE}/include --x-libraries=${LOCALBASE}/lib
CONFIGURE_ENV= LIBS="${PTHREAD_LIBS}"
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include -DHAVE_DECL_GETOPT
ALL_TARGET= default
INSTALL_TARGET= install datainstall
LDFLAGS+= -L${LOCALBASE}/lib
INSTDIR= ${PREFIX}/share/games/${PORTNAME}
PORTDOCS= faq.html
BASH2FIX= src/linux/torcs.in Make-default.mk
DESKTOP_ENTRIES= "TORCS" \
"The Open Racing Car Simulator" \
"${INSTDIR}/Ticon.png" \
"torcs" \
"Game;Simulation;" \
false
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
EMPTYDIR= champ dtmrace endrace ncrace practice quickrace
# shebangfix does not catch these two (not at top of file):
post-patch:
.for FILE in ${BASH2FIX}
@${REINPLACE_CMD} -E -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
${WRKSRC}/${FILE}
.endfor
pre-install:
@${MKDIR} ${PREFIX}/share/games
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/faq/|} ${DOCSDIR}
.endif
.for ed in ${EMPTYDIR}
${TOUCH} ${INSTDIR}/results/${ed}/.keep_me
.endfor
.include <bsd.port.mk>
|