View | Details | Raw Unified | Return to bug 151915 | Differences between
and this patch

Collapse All | Expand All

(-)/home/micro/test/games/openttd/Makefile (-14 / +31 lines)
Lines 6-15 Link Here
6
#
6
#
7
7
8
PORTNAME=	openttd
8
PORTNAME=	openttd
9
PORTVERSION=	1.0.3
9
PORTVERSION=	1.0.4
10
CATEGORIES=	games
10
CATEGORIES=	games
11
MASTER_SITES=	http://gb.binaries.openttd.org/binaries/releases/${PORTVERSION}/ \
11
MASTER_SITES=	http://gb.binaries.openttd.org/binaries/releases/${PORTVERSION}/ \
12
		#SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
12
		http://ftp.snt.utwente.nl/pub/games/openttd/binaries/releases/${PORTVERSION}/
13
13
14
MAINTAINER=	danfe@FreeBSD.org
14
MAINTAINER=	danfe@FreeBSD.org
15
COMMENT=	An open source clone of Microprose Transport Tycoon Deluxe
15
COMMENT=	An open source clone of Microprose Transport Tycoon Deluxe
Lines 27-53 Link Here
27
DISTVERSIONSUFFIX=	-source
27
DISTVERSIONSUFFIX=	-source
28
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
28
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
29
29
30
.if defined(WITH_MIDI_PLAYER)
30
OPTIONS=	DEDICATED	"Build only dedicated server"	off \
31
CONFIGURE_ARGS+=	--with-midi=${WITH_MIDI_PLAYER}
31
		RC_NG		"Install RC_NG script for dedicated server"		off \
32
.endif
32
		OPENGFX		"Build with OpenGFX(graphic)"	on \
33
.if defined(WITH_MIDI_PLAYER_ARGS)
33
		OPENMSX		"Build with OpenMSX(music)" on \
34
CONFIGURE_ARGS+=	--with-midi-arg=${WITH_MIDI_PLAYER_ARGS}
34
		OPENSFX		"Build with OpenSFX(sound)" on
35
.endif
35
36
.if defined(WITH_DEDICATED_SERVER_ONLY)
36
.include <bsd.port.options.mk>
37
38
.if defined(WITH_DEDICATED)
37
CONFIGURE_ARGS+=	--enable-dedicated
39
CONFIGURE_ARGS+=	--enable-dedicated
38
# Aid it to find lzo2 headers; client build gets it via sdl-config
40
# Aid it to find lzo2 headers; client build gets it via sdl-config
39
CONFIGURE_ENV=	CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include"
41
CXXFLAGS+=	"-I${LOCALBASE}/include"
40
.else
42
.else
41
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2 \
43
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2 \
42
		fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
44
		fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
43
USE_SDL=	sdl
45
USE_SDL=	sdl
44
.endif
46
.endif
47
.if defined(WITH_RC_NG)
48
USE_RC_SUBR=	openttd.sh
49
.endif
50
.if defined(WITH_OPENGFX)
51
RUN_DEPENDS+=	${LOCALBASE}/share/${PORTNAME}/data/opengfx.obg:${PORTSDIR}/games/opengfx
52
.endif
53
.if defined(WITH_OPENMSX)
54
RUN_DEPENDS+=	${LOCALBASE}/share/${PORTNAME}/gm/openmsx.obm:${PORTSDIR}/games/openmsx
55
.endif
56
.if defined(WITH_OPENSFX)
57
RUN_DEPENDS+=	${LOCALBASE}/share/${PORTNAME}/data/opensfx.obs:${PORTSDIR}/games/opensfx
58
.endif
59
.if defined(WITH_MIDI_PLAYER)
60
CONFIGURE_ARGS+=	--with-midi=${WITH_MIDI_PLAYER}
61
.endif
62
.if defined(WITH_MIDI_PLAYER_ARGS)
63
CONFIGURE_ARGS+=	--with-midi-arg=${WITH_MIDI_PLAYER_ARGS}
64
.endif
45
65
46
SUB_FILES=	pkg-message
66
SUB_FILES=	pkg-message
47
MAN6=		openttd.6
67
MAN6=		openttd.6
48
68
49
DESKTOP_ENTRIES="OpenTTD" "${COMMENT}" "openttd" "openttd" \
69
DESKTOP_ENTRIES="OpenTTD" "${COMMENT}" "openttd" "openttd" \
50
		"Game;Simulation;StrategyGame;" false
70
		"Game;Simulation;StrategyGame;" ${FALSE}
51
71
52
PORTDOCS=	32bpp.txt HOWTO_compile_lang_files.txt elrail.svg \
72
PORTDOCS=	32bpp.txt HOWTO_compile_lang_files.txt elrail.svg \
53
		elrail_tile.png elrail_track.png landscape.html \
73
		elrail_tile.png elrail_track.png landscape.html \
Lines 62-70 Link Here
62
.if !defined(WITH_MIDI_PLAYER_ARGS)
82
.if !defined(WITH_MIDI_PLAYER_ARGS)
63
	@${ECHO_MSG} "Define WITH_MIDI_PLAYER_ARGS=arguments for external MIDI player"
83
	@${ECHO_MSG} "Define WITH_MIDI_PLAYER_ARGS=arguments for external MIDI player"
64
.endif
84
.endif
65
.if !defined(WITH_DEDICATED_SERVER_ONLY)
66
	@${ECHO_MSG} "Define WITH_DEDICATED_SERVER_ONLY to build CLI-based dedicated server"
67
.endif
68
85
69
post-patch:
86
post-patch:
70
# Remove extra (vendor-provided) CFLAGS and LDFLAGS
87
# Remove extra (vendor-provided) CFLAGS and LDFLAGS
(-)/home/micro/test/games/openttd/distinfo (-3 / +2 lines)
Lines 1-3 Link Here
1
MD5 (openttd-1.0.3-source.tar.bz2) = cff60c624913a491ed3c91474e845722
1
SHA256 (openttd-1.0.4-source.tar.bz2) = 2c6b1c314f6d5e2d72543cad78769d47837d59b69c98c4356d0076498db6426c
2
SHA256 (openttd-1.0.3-source.tar.bz2) = f52f2381c678de024d26ee465c8203323eb3484300c4dc182c0d68c439ee8c57
2
SIZE (openttd-1.0.4-source.tar.bz2) = 5684460
3
SIZE (openttd-1.0.3-source.tar.bz2) = 5395672
(-)/home/micro/test/games/openttd/files/openttd.sh.in (+28 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# PROVIDE: openttd
4
# REQUIRE: LOGIN
5
# KEYWORD: shutdown
6
7
#
8
# Add the following lines to /etc/rc.conf to enable openttd:
9
# openttd_enable="YES" (bool):    Set to "NO" by default.
10
#                                 Set it to "YES" to enable openttd 
11
# openttd_flags=""  (str):        Set to "" by default.
12
#                                 Extra flags passed to start command.
13
#
14
# Note: flag -D and -f set to default
15
16
. /etc/rc.subr
17
18
name="openttd"
19
rcvar=`set_rcvar`
20
21
load_rc_config $name
22
23
: ${openttd_enable="NO"}
24
25
command=/usr/local/bin/openttd
26
command_args="-s null -m null -v null -b null -D -f"
27
28
run_rc_command "$1"
(-)/home/micro/test/games/openttd/files/pkg-message.in (-3 / +8 lines)
Lines 1-8 Link Here
1
==========================================================================
1
==========================================================================
2
    After first run dedicated server automaticaly created config file
3
    in ~/.openttd/openttd.cfg. For example, we get a config file:
4
    /usr/local/etc/rc.d/openttd start && sleep 10 && /usr/local/etc/rc.d/openttd stop
2
5
3
    OpenTTD requires the original Windows version of "Transport Tycoon
6
    Also don't edit config file while running dedicated server, becose server
4
    Deluxe" data files in order to function.  Copy the following files
7
    overwrite his.
5
    to %%DATADIR%%/data/ directory:
8
9
    If you want game with original Windows data files of "Transport Tycoon
10
    Deluxe".  Copy the following files to %%DATADIR%%/data/ directory:
6
11
7
	sample.cat
12
	sample.cat
8
	trg1r.grf
13
	trg1r.grf
(-)/home/micro/test/games/openttd/pkg-plist (+1 lines)
Lines 19-24 Link Here
19
%%DATADIR%%/lang/afrikaans.lng
19
%%DATADIR%%/lang/afrikaans.lng
20
%%DATADIR%%/lang/arabic_egypt.lng
20
%%DATADIR%%/lang/arabic_egypt.lng
21
%%DATADIR%%/lang/brazilian_portuguese.lng
21
%%DATADIR%%/lang/brazilian_portuguese.lng
22
%%DATADIR%%/lang/belarusian.lng
22
%%DATADIR%%/lang/bulgarian.lng
23
%%DATADIR%%/lang/bulgarian.lng
23
%%DATADIR%%/lang/catalan.lng
24
%%DATADIR%%/lang/catalan.lng
24
%%DATADIR%%/lang/croatian.lng
25
%%DATADIR%%/lang/croatian.lng

Return to bug 151915