Subject: pkg/30238: Update package games/openttd
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Ian Zagorskih <ianzag@megasignal.com>
List: pkgsrc-bugs
Date: 05/16/2005 09:38:00
>Number:         30238
>Category:       pkg
>Synopsis:       Update package games/openttd
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon May 16 09:38:00 +0000 2005
>Originator:     Ian Zagorskih
>Release:        NetBSD 3.99.3
>Organization:
NGEDC
>Environment:
System: NetBSD IANZAG 3.99.3 NetBSD 3.99.3 (DWL-G122) #8: Sat May 14 12:15:50 
NOVST 2005 ianzag@IANZAG:/home/ianzag/NetBSD/kernel/DWL-G122 i386
Architecture: i386
Machine: i386
>Description:
Package games/openttd now is v0.4.0. As a maintainer of this package i made
an update patch. Please review it and if all is ok submit into pkgsrc. Thanks.

---cut---
https://sourceforge.net/project/shownotes.php?release_id=327580
Changes:
0.4.0 (2005-05-15)
------------------------------------------------------------------------
- Feature: Bigger maps. Enjoy playing up to 2028x2048 (64 times as big as you 
were used to!)
- Feature: New realistic acceleration; should be much better. Inlcudes gigger 
penalty on narrow curves and speedlimits in depots/stations
- Feature: It is now possible to build multiple road stations (up to 8) on a 
single station (multibus).
- Feature: New PathFinder (NPF). Support for train/road and ship based on A*. 
No more braindead pathfinding
- Feature: Dynamic towns/industries/stations/vehicles/signs/orders/everything, 
up to 64K
- Feature: Brand new OldLoader so OpenTTD is TTD(Patch) compatible again. Also 
endian safe
- Feature: Even better newgrf support, except for callbacks, everything works 
(ok, almost)
- Feature: Improved multiplayer. More console options, less desyncs and more 
fun
- Feature: Protected OpenTTD from interference of hacked clients, so it should 
be safe to play again.
- Feature: [ 1093261 ] Saving vehicle sorting criteria for each vehicle type
- Feature: [ 1107690 ] Resizable orders GUI
- Feature: [ 1166978 ] Focus keyboard on input-box in Multiplayer Menu
- Feature: [ 1174313 ] terrain hotkeys nonfunctional in scenario editor 
(D,Q,W,E,R,T,Y,U fltr)
- Feature: Complete rework of console and new commands like ls, save, load, 
help, etc.
- Feature: Signs are shown in the colour of the player who created them
- Feature: Add cheat option to set production of raw-material industries in 
game
- Feature: Replace trian GUI remembers railtype selected from the dropdown 
menu
- Feature: Improved Autoreplace
- Feature: many more smaller features :D
- Fix: [ 1108618 ] A wrong error message was displayed when trying to
- Fix: [ 1110407 ] Game does not crash any more when a newgrf file doesn't 
exist
- Fix: [ 1112469 ] Clearing land for free by reallocating HQ
- Fix: [ 1112469 ] Clearing land for free by reallocating HQ
- Fix: [ 1113037 ] crash when accessing hi-scores in editor, it is now 
disabled.
- Fix: [ 1113399 ] Game no longer crashes when right-clicking a disabled Full 
Load button
- Fix: [ 1114100 ] Dedicated server boots again
- Fix: [ 1114950 ] Game crashed sometimes when there were no industries in the 
map
- Fix: [ 1115200 ] In the main menu, when starting a new game while the load 
game dialog is open, openttd asserts.
- Fix: [ 1117538 ] non-stop orders are no longer accidently skipped
- Fix: [ 1116619 ] Generate the correct smoke type for diesel trains
- Fix: [ 1119308 ] Max passengers / mail variables are now 32 bit
- Fix: [ 1109400 ] Better test if a string actually contains any console 
command
- Fix: [ 1108637 ] 'Play scenario' now loads game options and difficulty, 
'Load game' starts game with user-selected values.
- Fix: [ 1143587 ] carriages of newgrfs can be refitted again
- Fix: [ 1117730 ] Production values of temperate-climate banks can now be 
altered
- Fix: [ 1118810 ] openttd: ship_cmd.c:642 ... Assertion failed. Mapwrap fixed 
in ship_cmd.c (was implicitely ok before biggermaps).
- Fix: [ 1117327 ] Assertion error on kick. When a company is cleaned all its 
windows need to be closed. For global vehicle lists, the no-staiton index of 
-1 was not taken into account
- Fix: [ 1114261 ] Speeding up when pressing ALT+TAB (Windows)
- Fix: [ 1149403 ] Signals dissaper after typing text and pressing enter!. 
Signs in Scenario Editor have no owner so ignore that.
- Fix: [ 1149766 ] Single tile Bridge in Volcano City scenario. Some bridges 
still had the old single-tile bridge bug that was caused by improper town 
growth in combination with DC_AUTO. Fixed the scenario.
- Fix: [ 1119147 ] Stop startup memory corruption crash using optimized MSVC6. 
MSVC6 workaround as it's too stupid again for its own good
- Fix: [ 1101874 ] Dedicated server now accepts '-g' (load game) as param
- Fix: [ 1155696 ] Crash with german umlauts in station names.
- Fix: [ 1158618 ] Segmentation fault when loading savegame, out of bounds 
array check.
- Fix: [ 1149487 ] Autosave ignoring settings
- Fix: [ 1024703 ] Infinite access for A:\ (win32). Patch [1171208]. Only 
requery drive(s) if the user changes a directory, also surpress the OS error 
box that pops up on some windows machines.
- Fix: [ 1095110 ] Create Lake and draggable Create Desert tools
- Fix: [ 1172878 ] Trains "Go to depot" button: click twice skip to next order
- Fix: [ 1146215 ] Engine power not updated w/auto replace" autoreplace now 
forces an update of the cache.
- Fix: [ 1173690 ] Path displaying as "C:\\" in saveload window win32-only
- Fix: [ 1179892 ] click & drag removal of road assertion fail.
- Fix: [ 1174237 ] Max loan always in euros, use _opt_ptr instead of _opt
- Fix: [ 1184201 ] AI orders its vehicles to a competitor's truck stop.
- Fix: [ 1188986 ] Song in main menu screen should loop when it ends.
- Fix: [ 1188777 ] Non-existing sprite #5125 (presignal). The DOS grf file 
trgi.grf has 6 less sprites than the windows one.
- Fix: [ 1190625 ] Changing mapsize crashes game with highlighting.
- Fix: [ 1190896 1184378 ] [NPF] Trains ignoring their railtype (mono, maglev)
- Fix: [ 1202115 ] Clicking shipslist on bouy asserts GetPlayer().
- Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button
- Fix: [ 1193048 ] Pre-signal stays red when there is only a single exit 
signal
- Fix: [ 1185176 ] Train in tunnel is not properly detected by signal code
- Fix: [newgrf] rotors of custom helicopters are displayed correctly in the 
hangar window
- Fix: Scenario Editor now handles human-made roads better (try to build a 
city layout before placing the city, finally that works very nice)
- Fix: [Newgrf] helicopters are correctly recognized
- Fix: [autoreplace] made sure that planes only show planes in replace GUI and 
helicopters only show helicopters
- Fix: (Work around?) crash when generating tropical maps
- Fix: [autoreplace] Cheaters can no longer exploit autoreplace to get 
vehicles, that's not invented yet
- Fix: [autoreplace] Fixed a stupid bug introduced in r1687, that made a crash 
if anybody tried to autoreplace anything but an aircraft
- Fix: expand railroad stations beyond maximum spread
- Fix: [autoreplace] fixed a typo that could prevent autoreplaced aircraft 
from automatically go to a hangar
- Fix: Hacked clients can no longer be used to build vehicles that are not 
available yet
- Fix: Minimum profit of vehicles was calculated wrong for Performance Rating
- Fix: no longer a station where you only unload is bad for your town-rating
- Fix: Crash in scenario-editor with terraforming out-of-map bounds.
- Fix: Game would crash if you full-screened with the 'fullscreen' button than 
chose a resolution from the dropdown box that was no longer valid.
- Fix: Scrolling with the arrow keys is now smooth and it now also scrolls 
exactly in tile direction if e.g. up and left are pressed
- Fix: many more fixes but I am too tired to list them all
---cut---

>How-To-Repeat:
>Fix:
---cut---
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/games/openttd/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	11 Apr 2005 21:45:56 -0000	1.2
+++ Makefile	16 May 2005 09:15:35 -0000
@@ -1,7 +1,7 @@
 # $NetBSD: Makefile,v 1.2 2005/04/11 21:45:56 tv Exp $

-DISTNAME=	openttd-0.3.6-source
-PKGNAME=	openttd-0.3.6
+DISTNAME=	openttd-0.4.0-src
+PKGNAME=	openttd-0.4.0
 CATEGORIES=	games x11
 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=openttd/}

@@ -32,12 +32,16 @@
 	@${INSTALL_DATA_DIR} ${DATA_DIR}/data
 	@${INSTALL_DATA_DIR} ${DATA_DIR}/docs
 	@${INSTALL_DATA_DIR} ${DATA_DIR}/gm
+	@${INSTALL_DATA_DIR} ${DATA_DIR}/media
+	@${INSTALL_DATA_DIR} ${DATA_DIR}/scenario
 	${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
+	${INSTALL_DATA} -m 644 ${WRKSRC}/media/* ${DATA_DIR}/media
+	${INSTALL_DATA} -m 644 ${WRKSRC}/scenario/*.scn ${DATA_DIR}/scenario

 .include "../../graphics/png/buildlink3.mk"
 .include "../../devel/SDL/buildlink3.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/games/openttd/PLIST,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 PLIST
--- PLIST	30 Mar 2005 15:12:48 -0000	1.1.1.1
+++ PLIST	16 May 2005 09:15:35 -0000
@@ -2,6 +2,7 @@
 bin/openttd
 share/games/openttd/data/autorail.grf
 share/games/openttd/data/canalsw.grf
+share/games/openttd/data/dosdummy.grf
 share/games/openttd/data/openttd.grf
 share/games/openttd/data/opntitle.dat
 share/games/openttd/data/signalsw.grf
@@ -11,6 +12,7 @@
 share/games/openttd/docs/multiplayer.txt
 share/games/openttd/docs/readme.txt
 share/games/openttd/lang/american.lng
+share/games/openttd/lang/brazilian_portuguese.lng
 share/games/openttd/lang/catalan.lng
 share/games/openttd/lang/czech.lng
 share/games/openttd/lang/danish.lng
@@ -23,6 +25,8 @@
 share/games/openttd/lang/hungarian.lng
 share/games/openttd/lang/icelandic.lng
 share/games/openttd/lang/italian.lng
+share/games/openttd/lang/latvian.lng
+share/games/openttd/lang/lithuanian.lng
 share/games/openttd/lang/norwegian.lng
 share/games/openttd/lang/origveh.lng
 share/games/openttd/lang/polish.lng
@@ -31,9 +35,22 @@
 share/games/openttd/lang/slovak.lng
 share/games/openttd/lang/spanish.lng
 share/games/openttd/lang/swedish.lng
+share/games/openttd/media/openttd.128.png
+share/games/openttd/media/openttd.16.png
+share/games/openttd/media/openttd.256.png
+share/games/openttd/media/openttd.32.png
+share/games/openttd/media/openttd.48.png
+share/games/openttd/media/openttd.64.png
+share/games/openttd/media/openttd.64.xpm
+share/games/openttd/media/palette.act
+share/games/openttd/scenario/Linkgame Islands 2004.scn
+share/games/openttd/scenario/Mountain Pass.scn
+share/games/openttd/scenario/Volcano City.scn
+@dirrm share/games/openttd/scenario
+@dirrm share/games/openttd/media
 @dirrm share/games/openttd/lang
+@exec ${MKDIR} %D/share/games/openttd/gm
+@dirrm share/games/openttd/gm
 @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}
+@dirrm share/games/openttd/data
+@dirrm share/games/openttd
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/games/openttd/distinfo,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 distinfo
--- distinfo	30 Mar 2005 15:12:48 -0000	1.1.1.1
+++ distinfo	16 May 2005 09:15:35 -0000
@@ -1,8 +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
+SHA1 (openttd-0.4.0-src.tar.gz) = 7d36a19580d784f49a653c1c3baeb4cf4280cc1e
+RMD160 (openttd-0.4.0-src.tar.gz) = 1eec1eca9cd3a3b94ebf132f088193d68fae58cf
+Size (openttd-0.4.0-src.tar.gz) = 2944631 bytes
+SHA1 (patch-aa) = 99714f8a81b1a30037b556057e46441dd6a9ee3f
+SHA1 (patch-ab) = cb8537939d103d2c5f0c4f2ff76d6c6a5587792a
+SHA1 (patch-ac) = 0652e5a09e475a7c9a6c2ab1f1ca562448cb9595
Index: patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/games/openttd/patches/patch-aa,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-aa
--- patches/patch-aa	30 Mar 2005 15:12:48 -0000	1.1.1.1
+++ patches/patch-aa	16 May 2005 09:15:35 -0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+$NetBSD$

 --- makefiledir/Makefile.libdetection.orig	2004-12-07 23:58:06.000000000 
+0600
 +++ makefiledir/Makefile.libdetection
@@ -14,12 +14,11 @@
  # Automatically recognize if building on MacOSX
  ifeq ($(VENDOR), apple)
  OSX:=1
-@@ -75,8 +80,13 @@ ifdef WITH_PNG
+@@ -75,8 +80,12 @@ 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)
Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/games/openttd/patches/patch-ab,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-ab
--- patches/patch-ab	30 Mar 2005 15:12:48 -0000	1.1.1.1
+++ patches/patch-ab	16 May 2005 09:15:35 -0000
@@ -1,20 +1,20 @@
-$NetBSD: patch-ab,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+$NetBSD$

---- Makefile.orig	2005-01-25 06:07:50.000000000 +0600
+--- Makefile.orig	2005-05-15 05:42:33.000000000 +0700
 +++ Makefile
-@@ -434,6 +434,11 @@ CDEFS += -DWITH_PNG
+@@ -461,6 +461,11 @@ CDEFS += -DWITH_PNG
  ifdef FREEBSD
  LIBS += -lpng
  else
-+ifdef NETBSD
 +# NetBSD uses pkg-config
++ifdef NETBSD
 +LIBS += `pkg-config --libs libpng12`
 +CFLAGS += `pkg-config --cflags libpng12`
 +else
- CFLAGS += `libpng-config --cflags`
+ CFLAGS += $(shell libpng-config --cflags)

  # seems like older libpng versions are broken and need this
-@@ -450,6 +455,7 @@ LIBS += `libpng-config  --L_opts $(PNGCO
+@@ -477,6 +482,7 @@ LIBS += $(shell libpng-config  --L_opts
  endif
  endif
  endif
Index: patches/patch-ac
===================================================================
RCS file: /cvsroot/pkgsrc/games/openttd/patches/patch-ac,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-ac
--- patches/patch-ac	30 Mar 2005 15:12:48 -0000	1.1.1.1
+++ patches/patch-ac	16 May 2005 09:15:35 -0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.1.1.1 2005/03/30 15:12:48 wiz Exp $
+$NetBSD$

---- makefiledir/Makefile.config_writer.orig	2004-12-24 06:33:41.000000000 
+0600
+--- makefiledir/Makefile.config_writer.orig	2005-04-14 19:57:21.000000000 
+0700
 +++ makefiledir/Makefile.config_writer
-@@ -80,6 +80,7 @@ $(MAKE_CONFIG):
+@@ -80,6 +80,7 @@ $(MAKE_CONFIG):
  	$(call CONFIG_LINE,UNIX:=$(UNIX))
  	$(call CONFIG_LINE,OSX:=$(OSX))
  	$(call CONFIG_LINE,FREEBSD:=$(FREEBSD))
---cut---

>Unformatted:
 SEND-PR: -*- send-pr -*-
 SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as
 SEND-PR: will all comments (text enclosed in `<' and `>').
 SEND-PR:
 SEND-PR: Please consult the send-pr man page `send-pr(1)' or the Texinfo
 SEND-PR: manual if you are not sure how to fill out a problem report.
 SEND-PR:
 SEND-PR: NOTE: If you include a patch that corrects the problem, the
 SEND-PR: issue will probably be handled much more quickly.
 SEND-PR:
 SEND-PR: Choose from the following categories:
 SEND-PR:
 SEND-PR: bin               install           kern
 SEND-PR: lib               misc              pkg
 SEND-PR: port-acorn26      port-acorn32      port-algor
 SEND-PR: port-alpha        port-amd64        port-amiga
 SEND-PR: port-amigappc     port-arc          port-arm
 SEND-PR: port-atari        port-bebox        port-cats
 SEND-PR: port-cesfic       port-cobalt       port-dreamcast
 SEND-PR: port-evbarm       port-evbmips      port-evbppc
 SEND-PR: port-evbsh3       port-evbsh5       port-hp300
 SEND-PR: port-hp700        port-hpcarm       port-hpcmips
 SEND-PR: port-hpcsh        port-hppa         port-i386
 SEND-PR: port-iyonix       port-luna68k      port-m68k
 SEND-PR: port-mac68k       port-macppc       port-mips
 SEND-PR: port-mipsco       port-mmeye        port-mvme68k
 SEND-PR: port-mvmeppc      port-netwinder    port-news68k
 SEND-PR: port-newsmips     port-next68k      port-ofppc
 SEND-PR: port-pc532        port-playstation2 port-pmax
 SEND-PR: port-pmppc        port-powerpc      port-prep
 SEND-PR: port-sandpoint    port-sbmips       port-sgimips
 SEND-PR: port-sh3          port-sh5          port-shark
 SEND-PR: port-sparc        port-sparc64      port-sun2
 SEND-PR: port-sun3         port-vax          port-x68k
 SEND-PR: port-xen          security          standards
 SEND-PR: toolchain         xsrc              y2k
 SEND-PR:
 SEND-PR:
 To: gnats-bugs@gnats.NetBSD.org
 Subject: Update package games/openttd
 From: ianzag@megasignal.com
 Reply-To: ianzag@megasignal.com
 X-send-pr-version: 3.95