aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2004-12-17 22:38:00 +0800
committerdanfe <danfe@FreeBSD.org>2004-12-17 22:38:00 +0800
commit0d8fee860d742eb8043c1f15ad971d67dadb395c (patch)
tree20069f28fbc519f6749af08a339d156ea2f42d91 /games
parent41540751a3ec21ed0ea4bfebf6594b1f175f529d (diff)
downloadfreebsd-ports-graphics-0d8fee860d742eb8043c1f15ad971d67dadb395c.tar.gz
freebsd-ports-graphics-0d8fee860d742eb8043c1f15ad971d67dadb395c.tar.zst
freebsd-ports-graphics-0d8fee860d742eb8043c1f15ad971d67dadb395c.zip
An open source clone of the Microprose game "Transport Tycoon Deluxe".
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/openttd/Makefile65
-rw-r--r--games/openttd/distinfo2
-rw-r--r--games/openttd/pkg-descr5
-rw-r--r--games/openttd/pkg-message16
-rw-r--r--games/openttd/pkg-plist35
6 files changed, 124 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index b14554961bd..a911ef2f098 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -332,6 +332,7 @@
SUBDIR += oonsoo
SUBDIR += openglad
SUBDIR += openmortal
+ SUBDIR += openttd
SUBDIR += orbital_eunuchs_sniper
SUBDIR += p5-Games-Bingo
SUBDIR += p5-Games-Bingo-Bot
diff --git a/games/openttd/Makefile b/games/openttd/Makefile
new file mode 100644
index 00000000000..67d4972e237
--- /dev/null
+++ b/games/openttd/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: OpenTTD
+# Date created: 16 Dec 2004
+# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= openttd
+PORTVERSION= 0.3.4
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= danfe@FreeBSD.org
+COMMENT= An open source clone of Microprose Transport Tycoon Deluxe
+
+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)
+ @${ECHO_MSG} "Define WITH_MIDI_PLAYER=/path/to/player to build with external MIDI player"
+.else
+MAKE_ARGS+= MIDI=${WITH_MIDI_PLAYER}
+.endif
+.if !defined(WITH_NETWORK)
+ @${ECHO_MSG} "Define WITH_NETWORK to enable networking (EXPERIMENTAL!)"
+.else
+MAKE_ARGS+= WITH_NETWORK=1
+.endif
+
+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
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+. for f in Howto_compile_lng_files_from_CLI.txt Manual.txt console.txt landscape.html \
+ multiplayer.txt ottd-colour-palette.gif textcolor.txt tileh.png
+ ${INSTALL_DATA} ${WRKSRC}/docs/${f} ${DOCSDIR}
+. endfor
+.endif
+
+post-install:
+ @${SED} -e 's|$${DATADIR}|${DATADIR}|' ${.CURDIR}/pkg-message >${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/games/openttd/distinfo b/games/openttd/distinfo
new file mode 100644
index 00000000000..1dc58d2f856
--- /dev/null
+++ b/games/openttd/distinfo
@@ -0,0 +1,2 @@
+MD5 (openttd-0.3.4.tar.bz2) = 14a4761593ac31418454c9cc1fe8a8bb
+SIZE (openttd-0.3.4.tar.bz2) = 1394627
diff --git a/games/openttd/pkg-descr b/games/openttd/pkg-descr
new file mode 100644
index 00000000000..98b3bff2964
--- /dev/null
+++ b/games/openttd/pkg-descr
@@ -0,0 +1,5 @@
+OpenTTD is a clone of Transport Tycoon Deluxe, a popular Microprose game
+originally written by Chris Sawyer. It attempts to mimic the original game
+as closely as possible while extending it with new features.
+
+WWW: http://www.openttd.org/
diff --git a/games/openttd/pkg-message b/games/openttd/pkg-message
new file mode 100644
index 00000000000..d6fad80077e
--- /dev/null
+++ b/games/openttd/pkg-message
@@ -0,0 +1,16 @@
+==========================================================================
+
+ OpenTTD requires the original Windows version of "Transport Tycoon
+ Deluxe" data files in order to function. Copy the following files
+ to ${DATADIR}/data/ directory:
+
+ sample.cat
+ trg1r.grf
+ trgcr.grf
+ trghr.grf
+ trgir.grf
+ trgtr.grf
+
+ Enjoy!!
+
+==========================================================================
diff --git a/games/openttd/pkg-plist b/games/openttd/pkg-plist
new file mode 100644
index 00000000000..a38a285559e
--- /dev/null
+++ b/games/openttd/pkg-plist
@@ -0,0 +1,35 @@
+bin/openttd
+%%DATADIR%%/data/canalsw.grf
+%%DATADIR%%/data/openttd.grf
+%%DATADIR%%/data/opntitle.dat
+%%DATADIR%%/data/signalsw.grf
+%%DATADIR%%/data/trkfoundw.grf
+@dirrm %%DATADIR%%/data
+%%DATADIR%%/lang/american.lng
+%%DATADIR%%/lang/czech.lng
+%%DATADIR%%/lang/danish.lng
+%%DATADIR%%/lang/dutch.lng
+%%DATADIR%%/lang/english.lng
+%%DATADIR%%/lang/finnish.lng
+%%DATADIR%%/lang/french.lng
+%%DATADIR%%/lang/galician.lng
+%%DATADIR%%/lang/german.lng
+%%DATADIR%%/lang/hungarian.lng
+%%DATADIR%%/lang/italian.lng
+%%DATADIR%%/lang/norwegian.lng
+%%DATADIR%%/lang/origveh.lng
+%%DATADIR%%/lang/polish.lng
+%%DATADIR%%/lang/romanian.lng
+%%DATADIR%%/lang/slovak.lng
+%%DATADIR%%/lang/swedish.lng
+@dirrm %%DATADIR%%/lang
+@dirrm %%DATADIR%%
+%%PORTDOCS%%%%DOCSDIR%%/Howto_compile_lng_files_from_CLI.txt
+%%PORTDOCS%%%%DOCSDIR%%/Manual.txt
+%%PORTDOCS%%%%DOCSDIR%%/console.txt
+%%PORTDOCS%%%%DOCSDIR%%/landscape.html
+%%PORTDOCS%%%%DOCSDIR%%/multiplayer.txt
+%%PORTDOCS%%%%DOCSDIR%%/ottd-colour-palette.gif
+%%PORTDOCS%%%%DOCSDIR%%/textcolor.txt
+%%PORTDOCS%%%%DOCSDIR%%/tileh.png
+%%PORTDOCS%%@dirrm %%DOCSDIR%%