blob: 9458d813da7cf9cf1ae3ffea3a9d9c97ceb4dd32 (
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
|
# $FreeBSD$
PORTNAME= simutrans
DISTVERSION= 112-2
CATEGORIES= games
MASTER_SITES= SF/simutrans/simutrans/${DISTVERSION} \
SF/simutrans/pak64/${PAK64_DISTVERSION}:pak64 \
SF/simutrans/pak128/pak128%20for%20${PAK128_SUBDIR}:pak128
DISTFILES= simutrans-src-${DISTVERSION}.zip \
simulinux-${DISTVERSION}.zip
MAINTAINER= tijl@FreeBSD.org
COMMENT= Transport Simulator
LICENSE= ART10
LICENSE_FILE= ${WRKSRC}/simutrans/license.txt
PAK64_DISTVERSION= ${DISTVERSION}
PAK128_DISTVERSION= 2.3.0--112.2
PAK128_SUBDIR= ${DISTVERSION}
SIMUTRANS_REVISION= 6390
OPTIONS_DEFINE= DOCS
OPTIONS_MULTI= PAK
OPTIONS_MULTI_PAK= PAK64 PAK128
OPTIONS_DEFAULT= PAK64
PAK64_DESC= Default graphics
PAK128_DESC= High resolution graphics
MAKE_ARGS= BACKEND=mixer_sdl \
COLOUR_DEPTH=16 \
OSTYPE=freebsd \
FLAGS="-DUSE_C -DREVISION=${SIMUTRANS_REVISION}" \
VERBOSE=1
NO_WRKSUBDIR= yes
USE_GMAKE= yes
USE_SDL= sdl mixer
USE_ZIP= yes
DESKTOP_ENTRIES=Simutrans "" "" simutrans "Game;Simulation;" "false"
PLIST_FILES= bin/simutrans bin/simutrans-bin
PORTDATA= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPAK64}
DISTFILES+= simupak64-${PAK64_DISTVERSION}.zip:pak64
.endif
.if ${PORT_OPTIONS:MPAK128}
DISTFILES+= pak128-${PAK128_DISTVERSION}.zip:pak128
.endif
post-patch:
@${REINPLACE_CMD} 's/-O[^ ]*//' ${WRKSRC}/Makefile
@${REINPLACE_CMD} 's/simutrans/.simutrans/' ${WRKSRC}/simsys.cc
do-install:
cd ${WRKSRC}/simutrans && ${COPYTREE_SHARE} \
"config font music script skin text" ${DATADIR}
.if ${PORT_OPTIONS:MPAK64}
cd ${WRKSRC}/simutrans && ${COPYTREE_SHARE} pak ${DATADIR}
.endif
.if ${PORT_OPTIONS:MPAK128}
cd ${WRKSRC}/simutrans && ${COPYTREE_SHARE} pak128 ${DATADIR}
.endif
.if ${PORT_OPTIONS:MDOCS}
${INSTALL_DATA} ${WRKSRC}/simutrans/readme.txt ${DATADIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/build/default/sim \
${PREFIX}/bin/simutrans-bin
${INSTALL_SCRIPT} ${FILESDIR}/simutrans ${PREFIX}/bin/simutrans
.include <bsd.port.mk>
|