pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/openttd Initial import of openttd-0.3.6, provide...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18877d905263
branches:  trunk
changeset: 491819:18877d905263
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Mar 30 15:12:48 2005 +0000

description:
Initial import of openttd-0.3.6, provided by Ian Zagorskih via pkgsrc-wip:

Open source clone of Transport Tycoon Deluxe.

diffstat:

 games/openttd/DESCR            |   1 +
 games/openttd/MESSAGE          |  23 +++++++++++++++++++++
 games/openttd/Makefile         |  45 ++++++++++++++++++++++++++++++++++++++++++
 games/openttd/PLIST            |  39 ++++++++++++++++++++++++++++++++++++
 games/openttd/distinfo         |   8 +++++++
 games/openttd/patches/patch-aa |  30 ++++++++++++++++++++++++++++
 games/openttd/patches/patch-ab |  24 ++++++++++++++++++++++
 games/openttd/patches/patch-ac |  12 +++++++++++
 8 files changed, 182 insertions(+), 0 deletions(-)

diffs (214 lines):

diff -r 8428fdccc813 -r 18877d905263 games/openttd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/DESCR       Wed Mar 30 15:12:48 2005 +0000
@@ -0,0 +1,1 @@
+Open source clone of Transport Tycoon Deluxe.
diff -r 8428fdccc813 -r 18877d905263 games/openttd/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/MESSAGE     Wed Mar 30 15:12:48 2005 +0000
@@ -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 -r 8428fdccc813 -r 18877d905263 games/openttd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/Makefile    Wed Mar 30 15:12:48 2005 +0000
@@ -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@localhost
+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 -r 8428fdccc813 -r 18877d905263 games/openttd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/PLIST       Wed Mar 30 15:12:48 2005 +0000
@@ -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 -r 8428fdccc813 -r 18877d905263 games/openttd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/distinfo    Wed Mar 30 15:12:48 2005 +0000
@@ -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 -r 8428fdccc813 -r 18877d905263 games/openttd/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/patches/patch-aa    Wed Mar 30 15:12:48 2005 +0000
@@ -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 -r 8428fdccc813 -r 18877d905263 games/openttd/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/patches/patch-ab    Wed Mar 30 15:12:48 2005 +0000
@@ -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 -r 8428fdccc813 -r 18877d905263 games/openttd/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/openttd/patches/patch-ac    Wed Mar 30 15:12:48 2005 +0000
@@ -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))



Home | Main Index | Thread Index | Old Index