openttd-0.4.7, open source clone of the game Transport Tycoon Deluxe

from mk@
This commit is contained in:
jolan 2006-06-01 08:06:45 +00:00
parent 015e465499
commit a5cbd8a95f
7 changed files with 233 additions and 0 deletions

50
games/openttd/Makefile Normal file
View File

@ -0,0 +1,50 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/06/01 08:06:45 jolan Exp $
COMMENT= "open source clone of the game Transport Tycoon Deluxe"
DISTNAME= openttd-0.4.7-source
PKGNAME= ${DISTNAME:S/-source//}
EXTRACT_SUFX= .tar.bz2
CATEGORIES= games
HOMEPAGE= http://www.openttd.com/
MAINTAINER= Michael Knudsen <mk@molioner.dk>
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= X11 Xext c m pthread usbhid z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openttd/}
LIB_DEPENDS= SDL::devel/sdl \
png.2::graphics/png
MAKE_ENV+= WITH_ZLIB=1 WITH_PNG=1 INSTALL=1 VERBOSE=1 \
DATA_DIR=share/openttd \
ICON_DIR=share/pixmaps \
BINARY_DIR=bin \
PERSONAL_DIR=.openttd \
USE_HOMEDIR=1
USE_X11= Yes
USE_GMAKE= Yes
WRKDIST= ${WRKDIR}/${DISTNAME:S/-source//}
DOCSDIR= ${PREFIX}/share/doc/openttd
EXAMPLESDIR= ${PREFIX}/share/examples/openttd
GAMEDIR= ${PREFIX}/share/openttd
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/scripts/* ${EXAMPLESDIR}
${INSTALL_DATA_DIR} ${GAMEDIR}
${INSTALL_DATA_DIR} ${GAMEDIR}/media
${INSTALL_DATA} ${WRKSRC}/media/* ${GAMEDIR}/media
.include <bsd.port.mk>

4
games/openttd/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (openttd-0.4.7-source.tar.bz2) = 7a7201ed0f6c1727ac22a977d20c7611
RMD160 (openttd-0.4.7-source.tar.bz2) = 14817f7c87f8086a60f058b6d046ed2c6183e8d0
SHA1 (openttd-0.4.7-source.tar.bz2) = 44bd917c1b583213c3998bf1bb33a1ed53a9e7be
SIZE (openttd-0.4.7-source.tar.bz2) = 2202261

View File

@ -0,0 +1,63 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2006/06/01 08:06:45 jolan Exp $
--- Makefile.orig Sun Mar 26 13:32:00 2006
+++ Makefile Sun May 28 21:12:34 2006
@@ -292,7 +292,7 @@ CFLAGS_HOST = $(BASECFLAGS)
endif
-CC_VERSION = $(shell $(CC) -dumpversion | cut -c 1,3)
+CC_VERSION = 0
# GNU make can only test for (in)equality
# this is a workaround to test for >=
@@ -379,7 +379,7 @@ LDFLAGS += -mno-cygwin
endif
endif
-CFLAGS += $(BASECFLAGS)
+#CFLAGS += $(BASECFLAGS)
ifdef UNIX
CDEFS += -DUNIX
@@ -821,7 +821,7 @@ endian_target.h: $(ENDIAN_CHECK)
$(ENDIAN_CHECK): endian_check.c
@echo '===> Compiling and Linking $@'
- $(Q)$(CC_HOST) $(CFLAGS_HOST) $(CDEFS) $< -o $@
+ $(Q)$(CC_HOST) $(CFLAGS) $(CDEFS) $< -o $@
$(TTD): $(OBJS) $(MAKE_CONFIG)
@@ -830,7 +830,7 @@ $(TTD): $(OBJS) $(MAKE_CONFIG)
$(STRGEN): strgen/strgen.c endian_host.h
@echo '===> Compiling and Linking $@'
- $(Q)$(CC_HOST) $(CFLAGS_HOST) $(CDEFS) $< -o $@
+ $(Q)$(CC_HOST) $(CFLAGS) $(CDEFS) $< -o $@
table/strings.h: lang/english.txt $(STRGEN)
@echo '===> Generating $@'
@@ -926,9 +926,9 @@ endif
$(ICON_DIR_INSTALL) \
$(BINARY_DIR_INSTALL)
ifndef USE_HOMEDIR
- mkdir -p $(PERSONAL_DIR)/scenario
+ #mkdir -p $(PERSONAL_DIR)/scenario
else
- mkdir -p $(DATA_DIR_INSTALL)/scenario
+ #mkdir -p $(DATA_DIR_INSTALL)/scenario
endif
install $(TTD) $(BINARY_DIR_INSTALL)
install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang
@@ -937,9 +937,9 @@ endif
install -m 644 media/openttd.64.png $(ICON_DIR_INSTALL)
install -m 644 media/openttd.32.xpm $(ICON_DIR_INSTALL)
ifndef USE_HOMEDIR
- cp scenario/* $(PERSONAL_DIR)/scenario/
+ #cp scenario/* $(PERSONAL_DIR)/scenario/
else
- cp scenario/* $(DATA_DIR_INSTALL)/scenario/
+ #cp scenario/* $(DATA_DIR_INSTALL)/scenario/
endif
else #MorphOS
install:

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-endian_check_c,v 1.1.1.1 2006/06/01 08:06:45 jolan Exp $
--- endian_check.c.orig Tue Dec 6 08:35:10 2005
+++ endian_check.c Thu Feb 2 00:46:34 2006
@@ -1,6 +1,7 @@
/* $Id: patch-endian_check_c,v 1.1.1.1 2006/06/01 08:06:45 jolan Exp $ */
#include <stdio.h>
+#include <string.h>
// This pretty simple file checks if the system is LITTLE_ENDIAN or BIG_ENDIAN
// it does that by putting a 1 and a 0 in an array, and read it out as one

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-settings_c,v 1.1.1.1 2006/06/01 08:06:45 jolan Exp $
--- settings.c.orig Wed Mar 22 05:17:21 2006
+++ settings.c Thu Jun 1 00:50:15 2006
@@ -733,7 +733,7 @@ static void save_setting_desc(IniFile *i
//***************************
#ifndef EXTERNAL_PLAYER
-#define EXTERNAL_PLAYER "timidity"
+#define EXTERNAL_PLAYER "midiplay"
#endif
static const SettingDesc music_settings[] = {
@@ -742,7 +742,7 @@ static const SettingDesc music_settings[
{"effect_vol",SDT_UINT8, (void*)128, &msf.effect_vol, NULL},
{"custom_1", SDT_INTLIST | SDT_UINT8 | lengthof(msf.custom_1) << 16, NULL, &msf.custom_1, NULL},
{"custom_2", SDT_INTLIST | SDT_UINT8 | lengthof(msf.custom_2) << 16, NULL, &msf.custom_2, NULL},
- {"playing", SDT_BOOL, (void*)true, &msf.btn_down, NULL},
+ {"playing", SDT_BOOL, (void*)false, &msf.btn_down, NULL},
{"shuffle", SDT_BOOL, (void*)false, &msf.shuffle, NULL},
{"extmidi", SDT_STRINGBUF | (lengthof(msf.extmidi)<<16), EXTERNAL_PLAYER, &msf.extmidi, NULL},
{NULL, 0, NULL, NULL, NULL}

8
games/openttd/pkg/DESCR Normal file
View File

@ -0,0 +1,8 @@
OpenTTD is modeled after the original Transport Tycoon game by Chris
Sawyer and enhances the game experience dramatically. Many features were
inspired by TTDPatch while others are original.
OpenTTD requires the original version of Transport Tycoon Deluxe data
files in order to function. Data files and music files should be placed
in ${PREFIX}/share/openttd/data and ${PREFIX}/share/openttd/gm
respectively.

76
games/openttd/pkg/PLIST Normal file
View File

@ -0,0 +1,76 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/06/01 08:06:45 jolan Exp $
bin/openttd
share/doc/openttd/
share/doc/openttd/Howto_compile_lng_files_from_CLI.txt
share/doc/openttd/Manual.txt
share/doc/openttd/OSX_install_instructions.txt
share/doc/openttd/OSX_why_multiple_applications.txt
share/doc/openttd/Readme_Mandrake_Linux.txt
share/doc/openttd/Readme_OS2.txt
share/doc/openttd/Readme_Windows_MSVC6.0.txt
share/doc/openttd/console.txt
share/doc/openttd/directmusic.txt
share/doc/openttd/landscape.html
share/doc/openttd/landscape_grid.html
share/doc/openttd/multiplayer.txt
share/doc/openttd/openttd.6
share/doc/openttd/ottd-colour-palette.gif
share/doc/openttd/ottd-colourtext-palette.png
share/doc/openttd/tileh.png
share/examples/openttd/
share/examples/openttd/autoexec.scr.example
share/examples/openttd/on_client.scr.example
share/examples/openttd/on_dedicated.scr.example
share/examples/openttd/on_server.scr.example
share/examples/openttd/pre_dedicated.scr.example
share/examples/openttd/pre_server.scr.example
share/examples/openttd/readme.txt
share/openttd/
share/openttd/data/
share/openttd/data/autorail.grf
share/openttd/data/canalsw.grf
share/openttd/data/dosdummy.grf
share/openttd/data/nsignalsw.grf
share/openttd/data/openttd.grf
share/openttd/data/opntitle.dat
share/openttd/data/trkfoundw.grf
share/openttd/gm/
share/openttd/lang/
share/openttd/lang/american.lng
share/openttd/lang/brazilian_portuguese.lng
share/openttd/lang/catalan.lng
share/openttd/lang/czech.lng
share/openttd/lang/danish.lng
share/openttd/lang/dutch.lng
share/openttd/lang/english.lng
share/openttd/lang/estonian.lng
share/openttd/lang/finnish.lng
share/openttd/lang/french.lng
share/openttd/lang/galician.lng
share/openttd/lang/german.lng
share/openttd/lang/hungarian.lng
share/openttd/lang/icelandic.lng
share/openttd/lang/italian.lng
share/openttd/lang/norwegian.lng
share/openttd/lang/origveh.lng
share/openttd/lang/polish.lng
share/openttd/lang/portuguese.lng
share/openttd/lang/romanian.lng
share/openttd/lang/slovak.lng
share/openttd/lang/spanish.lng
share/openttd/lang/swedish.lng
share/openttd/lang/turkish.lng
share/openttd/media/
share/openttd/media/openttd.128.png
share/openttd/media/openttd.16.png
share/openttd/media/openttd.256.png
share/openttd/media/openttd.32.png
share/openttd/media/openttd.32.xpm
share/openttd/media/openttd.48.png
share/openttd/media/openttd.64.png
share/openttd/media/openttd.64.xpm
share/openttd/media/palette.act
share/openttd/scenario/
share/pixmaps/
share/pixmaps/openttd.32.xpm
share/pixmaps/openttd.64.png