blob: e284da8240ebff1f92dff904ac56b7358ac4adc0 (
plain)
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
|
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$
PORTNAME= trigger
PORTVERSION= 0.6.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}-rally/${PORTNAME}-rally/${PORTNAME}-${PORTVERSION}
DISTFILES= trigger-rally-${PORTVERSION}-src${EXTRACT_SUFX} \
trigger-rally-${DATAVERSION}-data${EXTRACT_SUFX}
MAINTAINER= makc@FreeBSD.org
COMMENT= Rally car racing game
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
LIB_DEPENDS= libphysfs.so:${PORTSDIR}/devel/physfs
USES= openal:al,alut tar:bzip2
USE_SDL= sdl image
USE_GL= glu
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
WRKSRC= ${WRKDIR}/trigger-rally-${PORTVERSION}-src
DATASRC= ${WRKDIR}/trigger-rally-${DATAVERSION}-data
DATAVERSION= 0.6.0
DESKTOP_ENTRIES="Trigger" "${COMMENT}" "" \
"trigger" "" false
PORTDOCS= README-stereo.txt README.txt
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|SDL/||' \
${WRKSRC}/src/trigger/main.cpp \
${WRKSRC}/src/pengine/texture.cpp
@${REINPLACE_CMD} -e 's|\$${prefix}/share|${DATADIR}|; \
s|-lopenal|& -lalut|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-O3||' ${WRKSRC}/Jamrules
do-build:
@cd ${BUILD_WRKSRC} && ${LOCALBASE}/bin/jam
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/trigger ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}
.for d in events fonts maps plugins sounds textures vehicles
cd ${DATASRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}
.endfor
${INSTALL_DATA} ${DATASRC}/trigger.config.defs ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
|