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 |