summaryrefslogtreecommitdiff
path: root/games/openttd
diff options
context:
space:
mode:
authorwiz <wiz>2005-03-30 15:12:48 +0000
committerwiz <wiz>2005-03-30 15:12:48 +0000
commit80f9b86e620647b6190fc97b123ca967f1bb4049 (patch)
treec08009fb088e03140189b35ebb11a3c9972c4818 /games/openttd
parent10ddfcc77fcac6e74de0bd8fb9e78aeb74798439 (diff)
downloadpkgsrc-80f9b86e620647b6190fc97b123ca967f1bb4049.tar.gz
Initial import of openttd-0.3.6, provided by Ian Zagorskih via pkgsrc-wip:
Open source clone of Transport Tycoon Deluxe.
Diffstat (limited to 'games/openttd')
-rw-r--r--games/openttd/DESCR1
-rw-r--r--games/openttd/MESSAGE23
-rw-r--r--games/openttd/Makefile45
-rw-r--r--games/openttd/PLIST39
-rw-r--r--games/openttd/distinfo8
-rw-r--r--games/openttd/patches/patch-aa30
-rw-r--r--games/openttd/patches/patch-ab24
-rw-r--r--games/openttd/patches/patch-ac12
8 files changed, 182 insertions, 0 deletions
diff --git a/games/openttd/DESCR b/games/openttd/DESCR
new file mode 100644
index 00000000000..c454889c1f7
--- /dev/null
+++ b/games/openttd/DESCR
@@ -0,0 +1 @@
+Open source clone of Transport Tycoon Deluxe.
diff --git a/games/openttd/MESSAGE b/games/openttd/MESSAGE
new file mode 100644
index 00000000000..b810438fc54
--- /dev/null
+++ b/games/openttd/MESSAGE
@@ -0,0 +1,23 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+
+To run openttd you need data files provided by the original Transport
+Tycoon Deluxe.
+
+The following files should be copied to ${PREFIX}/share/games/openttd/data
+in order to play:
+
+ sample.cat
+ trg1r.grf
+ trgcr.grf
+ trghr.grf
+ trgir.grf
+ trgtr.grf
+
+All *.gm files should be copied to ${PREFIX}/share/games/openttd/gm
+in order to play original MIDI music.
+
+Note: On NetBSD playing MIDI music is not supported now. Probably in a
+future versions.
+
+===========================================================================
diff --git a/games/openttd/Makefile b/games/openttd/Makefile
new file mode 100644
index 00000000000..fd11c8630e5
--- /dev/null
+++ b/games/openttd/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+
+DISTNAME= openttd-0.3.6-source
+PKGNAME= openttd-0.3.6
+CATEGORIES= games x11
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openttd/}
+
+MAINTAINER= froz@icix.org
+HOMEPAGE= http://www.openttd.com/
+COMMENT= Open source clone of Transport Tycoon Deluxe
+
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+USE_X11= yes
+
+DATA_DIR= ${PREFIX}/share/games/openttd
+
+MAKE_ENV+= PREFIX=${PREFIX}
+MAKE_ENV+= INSTALL=1
+MAKE_ENV+= BINARY_DIR=bin
+MAKE_ENV+= DATA_DIR=share/games/openttd
+MAKE_ENV+= USE_HOMEDIR=1
+MAKE_ENV+= PERSONAL_DIR=.openttd
+MAKE_ENV+= WITH_NETWORK=1
+MAKE_ENV+= X11BASE=${X11BASE}
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/openttd ${PREFIX}/bin
+ @${INSTALL_DATA_DIR} ${DATA_DIR}
+ @${INSTALL_DATA_DIR} ${DATA_DIR}/lang
+ @${INSTALL_DATA_DIR} ${DATA_DIR}/data
+ @${INSTALL_DATA_DIR} ${DATA_DIR}/docs
+ @${INSTALL_DATA_DIR} ${DATA_DIR}/gm
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/lang/*.lng ${DATA_DIR}/lang
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/data/* ${DATA_DIR}/data
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/readme.txt ${DATA_DIR}/docs
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/changelog.txt ${DATA_DIR}/docs
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/Manual.txt ${DATA_DIR}/docs
+ ${INSTALL_DATA} -m 644 ${WRKSRC}/docs/multiplayer.txt ${DATA_DIR}/docs
+
+.include "../../graphics/png/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/openttd/PLIST b/games/openttd/PLIST
new file mode 100644
index 00000000000..c811b09bc26
--- /dev/null
+++ b/games/openttd/PLIST
@@ -0,0 +1,39 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+bin/openttd
+share/games/openttd/data/autorail.grf
+share/games/openttd/data/canalsw.grf
+share/games/openttd/data/openttd.grf
+share/games/openttd/data/opntitle.dat
+share/games/openttd/data/signalsw.grf
+share/games/openttd/data/trkfoundw.grf
+share/games/openttd/docs/Manual.txt
+share/games/openttd/docs/changelog.txt
+share/games/openttd/docs/multiplayer.txt
+share/games/openttd/docs/readme.txt
+share/games/openttd/lang/american.lng
+share/games/openttd/lang/catalan.lng
+share/games/openttd/lang/czech.lng
+share/games/openttd/lang/danish.lng
+share/games/openttd/lang/dutch.lng
+share/games/openttd/lang/english.lng
+share/games/openttd/lang/finnish.lng
+share/games/openttd/lang/french.lng
+share/games/openttd/lang/galician.lng
+share/games/openttd/lang/german.lng
+share/games/openttd/lang/hungarian.lng
+share/games/openttd/lang/icelandic.lng
+share/games/openttd/lang/italian.lng
+share/games/openttd/lang/norwegian.lng
+share/games/openttd/lang/origveh.lng
+share/games/openttd/lang/polish.lng
+share/games/openttd/lang/portuguese.lng
+share/games/openttd/lang/romanian.lng
+share/games/openttd/lang/slovak.lng
+share/games/openttd/lang/spanish.lng
+share/games/openttd/lang/swedish.lng
+@dirrm share/games/openttd/lang
+@dirrm share/games/openttd/docs
+@unexec ${RMDIR} %D/share/games/openttd/data 2>/dev/null || ${TRUE}
+@exec ${MKDIR} %D/share/games/openttd/gm 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} %D/share/games/openttd/gm 2>/dev/null || ${TRUE}
+@unexec ${RMDIR} %D/share/games/openttd 2>/dev/null || ${TRUE}
diff --git a/games/openttd/distinfo b/games/openttd/distinfo
new file mode 100644
index 00000000000..067110bb2c0
--- /dev/null
+++ b/games/openttd/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+
+SHA1 (openttd-0.3.6-source.tar.gz) = 0e76068e046b53cb31eb4b623e460a785d6d836b
+RMD160 (openttd-0.3.6-source.tar.gz) = 0a562b33e5cb284173951d83e2865d9bb6c732d7
+Size (openttd-0.3.6-source.tar.gz) = 2511895 bytes
+SHA1 (patch-aa) = 66de93f2353045b4f22243cbff036f61c2e6d5ce
+SHA1 (patch-ab) = 273b476ef19c1e69be0a076f1c9bad85dae683b1
+SHA1 (patch-ac) = 2d89f01332b66431b2dc438fffcf9854071a46af
diff --git a/games/openttd/patches/patch-aa b/games/openttd/patches/patch-aa
new file mode 100644
index 00000000000..d6dccc21d47
--- /dev/null
+++ b/games/openttd/patches/patch-aa
@@ -0,0 +1,30 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+
+--- makefiledir/Makefile.libdetection.orig 2004-12-07 23:58:06.000000000 +0600
++++ makefiledir/Makefile.libdetection
+@@ -18,6 +18,11 @@ ifeq ($(shell uname),FreeBSD)
+ FREEBSD:=1
+ endif
+
++# Automatically recognize if building on NetBSD
++ifeq ($(shell uname),NetBSD)
++NETBSD:=1
++endif
++
+ # Automatically recognize if building on MacOSX
+ ifeq ($(VENDOR), apple)
+ OSX:=1
+@@ -75,8 +80,13 @@ ifdef WITH_PNG
+ WITH_PNG:=1
+ endif
+ else
++ifdef NETBSD
++# NetBSD uses generic pkg-config instead of libpng-config
++WITH_PNG:=$(shell pkg-config --version libpng12 2>/dev/null)
++else
+ WITH_PNG:=$(shell libpng-config --version 2>/dev/null)
+ endif
++endif
+
+ ifdef WITH_PNG
+ # LibPNG depends on Zlib
diff --git a/games/openttd/patches/patch-ab b/games/openttd/patches/patch-ab
new file mode 100644
index 00000000000..58a4d36593a
--- /dev/null
+++ b/games/openttd/patches/patch-ab
@@ -0,0 +1,24 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+
+--- Makefile.orig 2005-01-25 06:07:50.000000000 +0600
++++ Makefile
+@@ -434,6 +434,11 @@ CDEFS += -DWITH_PNG
+ ifdef FREEBSD
+ LIBS += -lpng
+ else
++ifdef NETBSD
++# NetBSD uses pkg-config
++LIBS += `pkg-config --libs libpng12`
++CFLAGS += `pkg-config --cflags libpng12`
++else
+ CFLAGS += `libpng-config --cflags`
+
+ # seems like older libpng versions are broken and need this
+@@ -450,6 +455,7 @@ LIBS += `libpng-config --L_opts $(PNGCO
+ endif
+ endif
+ endif
++endif
+
+ # enables/disables assert()
+ ifdef DISABLE_ASSERTS
diff --git a/games/openttd/patches/patch-ac b/games/openttd/patches/patch-ac
new file mode 100644
index 00000000000..1efc2bfbf39
--- /dev/null
+++ b/games/openttd/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+
+--- makefiledir/Makefile.config_writer.orig 2004-12-24 06:33:41.000000000 +0600
++++ makefiledir/Makefile.config_writer
+@@ -80,6 +80,7 @@ $(MAKE_CONFIG):
+ $(call CONFIG_LINE,UNIX:=$(UNIX))
+ $(call CONFIG_LINE,OSX:=$(OSX))
+ $(call CONFIG_LINE,FREEBSD:=$(FREEBSD))
++ $(call CONFIG_LINE,NETBSD:=$(NETBSD))
+ $(call CONFIG_LINE,MORPHOS:=$(MORPHOS))
+ $(call CONFIG_LINE,BEOS:=$(BEOS))
+ $(call CONFIG_LINE,SUNOS:=$(SUNOS))