aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2005-01-14 18:30:03 +0800
committerdanfe <danfe@FreeBSD.org>2005-01-14 18:30:03 +0800
commit29984123f71f275f492161aa66077a75a0ac8c5c (patch)
tree89e5c4e6f1440d1313f18d37fccad23d711ed4fe /games
parentf4aef08fd6879a9ac1c2a859a6191f39d02a7020 (diff)
downloadfreebsd-ports-graphics-29984123f71f275f492161aa66077a75a0ac8c5c.tar.gz
freebsd-ports-graphics-29984123f71f275f492161aa66077a75a0ac8c5c.tar.zst
freebsd-ports-graphics-29984123f71f275f492161aa66077a75a0ac8c5c.zip
Update to most recent version 0.3.5.
Some of the features introduced in this version: - [Network] New network, very stable, a lot of new features - [Network] Ingame Serverlist (with online game-servers to join) - [Network] Webbased Serverlist: http://servers.openttd.org/ - [Network] Added dedicated server support - [Network] Cheat protection in MultiPlayer - [Network] Patch settings are also synced with the server - [Network] Chat - Custom currency settings - Per-station vehicle lists - More realistically sized catchment areas - Sticky windows - Even better support for newgrf-files - Implement improved vehicle loading algorithm - Even more advanced console - Many more new things...
Diffstat (limited to 'games')
-rw-r--r--games/openttd/Makefile41
-rw-r--r--games/openttd/distinfo4
-rw-r--r--games/openttd/files/patch-Makefile47
-rw-r--r--games/openttd/pkg-plist7
4 files changed, 79 insertions, 20 deletions
diff --git a/games/openttd/Makefile b/games/openttd/Makefile
index 67d4972e237..7f6846c645e 100644
--- a/games/openttd/Makefile
+++ b/games/openttd/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= openttd
-PORTVERSION= 0.3.4
+PORTVERSION= 0.3.5
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -14,24 +14,12 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= danfe@FreeBSD.org
COMMENT= An open source clone of Microprose Transport Tycoon Deluxe
+DISTVERSIONSUFFIX= -source
+
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
-USE_BZIP2= yes
USE_GMAKE= yes
USE_REINPLACE= yes
-USE_SDL= sdl
-
-post-extract:
- @${REINPLACE_CMD} -e 's|-O2 $$(WARNING_DISPLAY)|${CFLAGS} $$(WARNING_DISPLAY)|' \
- -e 's|`$$(SDL-CONFIG) --cflags`|$$(shell $$(SDL-CONFIG) --cflags)|' \
- -e 's|`$$(SDL-CONFIG) --libs`|$$(shell $$(SDL-CONFIG) --libs)|' \
- -e 's|CC=|CC\?=|; s|CXX=|CXX\?=|; s|x86_64|amd64|' ${WRKSRC}/Makefile
- @${REINPLACE_CMD} -e 's|/usr|${PREFIX}|' ${WRKSRC}/extmidi.c
-
-MAKE_ARGS+= RELEASE=${PORTVERSION} GAME_DATA_DIR=${DATADIR}/ \
- USE_HOMEDIR=1 PERSONAL_DIR=.openttd
-
-PKGMESSAGE= ${WRKDIR}/pkg-message
pre-everything::
.if !defined(WITH_MIDI_PLAYER)
@@ -39,17 +27,34 @@ pre-everything::
.else
MAKE_ARGS+= MIDI=${WITH_MIDI_PLAYER}
.endif
-.if !defined(WITH_NETWORK)
- @${ECHO_MSG} "Define WITH_NETWORK to enable networking (EXPERIMENTAL!)"
+.if !defined(WITH_DEDICATED_SERVER_ONLY)
+ @${ECHO_MSG} "Define WITH_DEDICATED_SERVER_ONLY to build CLI-based dedicated server"
+USE_SDL= sdl
.else
-MAKE_ARGS+= WITH_NETWORK=1
+MAKE_ARGS+= DEDICATED=1
.endif
+post-extract:
+ @${REINPLACE_CMD} -e 's|-O2 $$(WARNING_DISPLAY)|${CFLAGS} $$(WARNING_DISPLAY)|' \
+ ${WRKSRC}/Makefile
+.if defined(WITH_DEDICATED_SERVER_ONLY)
+ @${REINPLACE_CMD} -e 's|^WITH_SDL|#WITH_SDL|' ${WRKSRC}/makefiledir/Makefile.libdetection
+.endif
+
+MAKE_ARGS+= RELEASE=${PORTVERSION} DATA_DIR="share/openttd" \
+ USE_HOMEDIR=1 PERSONAL_DIR=.openttd INSTALL=1 VERBOSE=1
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+MAN6= openttd.6
+
do-install:
@${MKDIR} ${DATADIR}/data ${DATADIR}/lang
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/data
${INSTALL_DATA} ${WRKSRC}/lang/*.lng ${DATADIR}/lang
+ ${INSTALL_MAN} ${WRKSRC}/docs/${MAN6} ${MANPREFIX}/man/man6
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
. for f in Howto_compile_lng_files_from_CLI.txt Manual.txt console.txt landscape.html \
diff --git a/games/openttd/distinfo b/games/openttd/distinfo
index 1dc58d2f856..e5d3f99be85 100644
--- a/games/openttd/distinfo
+++ b/games/openttd/distinfo
@@ -1,2 +1,2 @@
-MD5 (openttd-0.3.4.tar.bz2) = 14a4761593ac31418454c9cc1fe8a8bb
-SIZE (openttd-0.3.4.tar.bz2) = 1394627
+MD5 (openttd-0.3.5-source.tar.gz) = 10a97eac9c77b977ddaa11660a3ccb7c
+SIZE (openttd-0.3.5-source.tar.gz) = 2059465
diff --git a/games/openttd/files/patch-Makefile b/games/openttd/files/patch-Makefile
new file mode 100644
index 00000000000..4a558317926
--- /dev/null
+++ b/games/openttd/files/patch-Makefile
@@ -0,0 +1,47 @@
+--- Makefile.orig Fri Dec 24 07:40:45 2004
++++ Makefile Thu Jan 13 17:50:56 2005
+@@ -232,8 +232,8 @@
+ #
+ # Compiler configuration
+ #
+-CC=gcc
+-CXX=g++
++CC?=gcc
++CXX?=g++
+
+ ifdef MORPHOS
+ CC += -noixemul -pipe
+@@ -274,7 +274,7 @@
+ BUILDDATE=`date +%d.%m.%y`
+
+ # AMD64 needs a little more settings to work
+-ifeq ($(shell uname -m), x86_64)
++ifeq ($(shell uname -m), amd64)
+ endwarnings:=endwarnings
+ 64_bit_warnings:=64_bit_warnings
+ BASECFLAGS += -m64
+@@ -371,11 +371,11 @@
+ # SDL config
+ ifdef WITH_SDL
+ CDEFS += -DWITH_SDL
+-CFLAGS += `$(SDL-CONFIG) --cflags`
++CFLAGS += $(shell $(SDL-CONFIG) --cflags)
+ ifdef STATIC
+-LIBS += `$(SDL-CONFIG) --static-libs`
++LIBS += $(shell $(SDL-CONFIG) --static-libs)
+ else
+-LIBS += `$(SDL-CONFIG) --libs`
++LIBS += $(shell $(SDL-CONFIG) --libs)
+ endif
+ endif
+
+@@ -420,7 +420,8 @@
+ CDEFS += -DWITH_PNG
+ # FreeBSD doesn't use libpng-config
+ ifdef FREEBSD
+-LIBS += -lpng
++LIBS += -lpng -L$(PREFIX)/lib
++CFLAGS += -I$(PREFIX)/include/libpng
+ else
+ CFLAGS += `libpng-config --cflags`
+
diff --git a/games/openttd/pkg-plist b/games/openttd/pkg-plist
index a38a285559e..98562379f81 100644
--- a/games/openttd/pkg-plist
+++ b/games/openttd/pkg-plist
@@ -6,6 +6,7 @@ bin/openttd
%%DATADIR%%/data/trkfoundw.grf
@dirrm %%DATADIR%%/data
%%DATADIR%%/lang/american.lng
+%%DATADIR%%/lang/catalan.lng
%%DATADIR%%/lang/czech.lng
%%DATADIR%%/lang/danish.lng
%%DATADIR%%/lang/dutch.lng
@@ -15,13 +16,19 @@ bin/openttd
%%DATADIR%%/lang/galician.lng
%%DATADIR%%/lang/german.lng
%%DATADIR%%/lang/hungarian.lng
+%%DATADIR%%/lang/icelandic.lng
%%DATADIR%%/lang/italian.lng
+%%DATADIR%%/lang/latvian.lng
%%DATADIR%%/lang/norwegian.lng
%%DATADIR%%/lang/origveh.lng
%%DATADIR%%/lang/polish.lng
+%%DATADIR%%/lang/portuguese.lng
%%DATADIR%%/lang/romanian.lng
+%%DATADIR%%/lang/russian.lng
%%DATADIR%%/lang/slovak.lng
+%%DATADIR%%/lang/spanish.lng
%%DATADIR%%/lang/swedish.lng
+%%DATADIR%%/lang/turkish.lng
@dirrm %%DATADIR%%/lang
@dirrm %%DATADIR%%
%%PORTDOCS%%%%DOCSDIR%%/Howto_compile_lng_files_from_CLI.txt