Tue May 4 17:08:05 2021 UTC ()
openttd: update to 1.11.2

1.11.2 (2021-05-03)
------------------------------------------------------------------------
Change: More improvements to the GUI at different scales (#9075, #9102, #9107, #9133, #9174, #9183)
Fix: Query windows could be partially drawn (#9184)
Fix #9113: Crash when removing an airport that exists in an aircraft's orders (#9182)
Fix #9117: [Fluidsynth] Hang when changing song (#9181)
Fix: String validation could leave invalid UTF-8 encoded strings (#9096)
Fix: [Network] Out-of-bounds memory access with modified servers sending too short password salts (#9176)
Fix: Crash when extra viewport with zero height has sign in view (#9175)
Fix #9147: Crash when taking screenshots (#9169)
Fix #6598: [Network] Prevent crashes when (re)joining network game by falling back to main menu first (#9163)
Fix #9152: Screenshot success popup window was treated as an error (#9159)
Fix: Fast-forward stuttering when vsync is enabled (#9140)
Fix: [Network] Savegame transfer could stall in rare cases (#9106)
Fix #9097: [NewGRF] Cargo initial payment variable was being truncated (#9098)
Fix: [NewGRF] Industry variable 66 and object variable 46 erroneously truncated the distance (#9088)
Fix: [NewGRF] Industry variables 65 and 66 ignored the parameter, and always used the north tile (#9088)
Fix: Do not include regression test AI in bundle (#9068, #9164)

1.11.1 (2021-04-18)
------------------------------------------------------------------------
Feature: Toggle to enable/disable vsync (#8997)
Feature: Volume controls in the Game Options window, and better defaults (#8943)
Add: Hotkey to focus object and rail filters (#8908)
Add: Better plural support for Romanian (#8936)
Change: Improve layout and spacing of several windows at different GUI scales (#9041, #9042, #9044, #9050)
Change: Make effect volume scale more intuitively (#8945, #8950)
Change: Improve padding of Object & Rail station windows (#8929)
Fix #6322: [Script] Crash when script allocates too much memory, now kills script instead (#9047)
Fix #7513: [Script] Crash on garbage collection with misbehaving script (#9040)
Fix #9028: [OpenGL] Crash when changing max sprite zoom level (#9032)
Fix #8874: show a warning when a NewGRF scan is requested multiple times (#9022)
Fix: Desync when GS unlocks railtype with wagon unlock (#9021)
Fix #9008: Validate starting year given on the command line (-t) (#9014)
Fix #8878: [Network] Slow DNS queries could block the server and disconnect clients (#9013)
Fix: Improve validation of OpenGL video driver to avoid crashes (#9007)
Fix: Credits scrolled too slowly with larger font sizes (#8994)
Fix #8977: Crash when altering max sprite resolution (#8993)
Fix #8956: Industry disaster news messages showed the wrong location (#8992)
Fix: [Network] Potential stale client entries in client list (#8959)
Fix: Graphical issues when dragging measurement tooltips (#8951)
Fix: [Fluidsynth] Use provided default soundfont if available (#8948, #8953)
Fix #8935: [macOS] Crash on save (#8944)
Fix #8922: Crash when selling shared vehicles with shared vehicle window open (#8926)
Fix: Compiling on armhf (Raspberry Pi) (#8924)

1.11.0 (2021-04-01)
------------------------------------------------------------------------
Feature: Allow setting a custom terrain type to define highest peak (#8891)
Feature: Auto-detect map height limit based on generated map (#8891)
Feature: Setting to indicate desert coverage for tropic climate and snow coverage for arctic climate (replaces snow line height) (#8891)
Add: Allow setting the highest mountain for heightmaps (#8891)
Change: Scale exported heightmaps to highest peak and inform the user of this value (#8891)
Change: Remove "maximum map height" from the New Game GUI (#8891)
Fix #8803: Only auto-remove signals when rail can be built (#8904)
Fix #8565: Stopped road vehicle displays a speed different than 0 (#8901)
Fix #8886: Don't try to resolve folders within tars named '.' (#8893)
Fix: Placing random trees in SE crashes the game (#8892)
Fix #8875: Filter string in station window breaks flow in user interface (#8885)
Fix #8871: [OpenGL] Initialize all buffers after resize and clear back buffer (#8877)
Fix: OpenGL performance with some AMD GPUs (#8876)
Fix: Recompute road/railtype availability after disabling the engine (#8872)
Fix: OSK layout not scaled for 2x or 4x GUI scale (#8868)

1.11.0-RC1 (2021-03-14)
------------------------------------------------------------------------
Feature: Option to (dis-)allow hardware accelerated video drivers (#8819)
Feature: Option to set display refresh rate (#8813)
Feature: Allow custom width/height of screenshot and making heightmap screenshots via console (#8804)
Feature: Allow filtering on name in rail station window (#8706)
Feature: Setting for highest resolution of sprites to use (#8604)
Add: Make NewGRF Scanner / World Generation update smoother and make aborting it react faster (#8830)
Add: Malaysia Ringgit as Currency (#8783)
Add: "Engines only" filter in build train window (#8733)
Change: De-limit framerate window's framerate (#8772)
Change: Clarify what effect town interactions have (#8744)
Change: Don't show global goals in company goal windows (#8709)
Change: Recolour graph windows to brown (#8700)
Fix #8855: Bootstrap could result in an empty screen when bootstrap fails (#8856)
Fix #8851: Don't allow infinite "exec" depth in script, but limit to 10 deep (#8852)
Fix #8647: Incorrect drawing order of tram catenary sprites (#8843)
Fix #8711: Having gui_zoom lower than zoom_min causes a crash (#8835)
Fix #8810: "aircraft out of fuel" news shows the wrong place (#8832)
Fix #8833: Don't reload NewGRFs when we are shutting down (#8830)
Fix: Scale padding between elements the same as other padding (#8829)
Fix #8808: [OSX, OpenGL] Crash on switching blitters due to double-mapping the video buffer (#8822)
Fix #8784: Using Alt+Enter doesn't update the fullscreen toggle visibly (#8820)
Fix #8817: Keep NewGRF order for object class sorting (#8818)
Fix #8809: Crash when removing airport when hangar window open (#8815)
Fix #8799: Crash when Search Internet in Multiplayer (#8801)
Fix #8774: Black screenshots when using 40bpp-blitter (#8791)
Fix: [OSX] Hide dock when entering fullscreen (#8789)
Fix: Bootstrap fails to start on clean install (#8788)
Fix: Terraform limit acts random when maxing out per_64k_frames setting (#8782)
Fix: Max-value of fast-forward-speed-limit can be outside its storage size (#8769)

1.11.0-beta2 (2021-02-28)
------------------------------------------------------------------------
Feature: Add setting to limit fast-forward speed (#8766)
Feature: Significant performance improvements to all video drivers (#8605, #8652, #8660, #8685, #8702, #8703, #8707, #8726, #8740)
Feature: Configurable display refresh-rate, default to 60fps (#8680)
Feature: Automatically upload releases to Steam (#8644)
Feature: Generic Linux builds (#8641)
Feature: [GS] Allow non-question type windows to have no buttons (#8638)
Feature: [macOS] ZIP build (#8614)
Feature: Object class selection string filtering (#8603)
Feature: 'Remove all industries' button in scenario editor (#8550)
Feature: Automatic UI and font zoom levels when supported by the OS (#8537)
Feature: [macOS] Render screen at native resolution by default for HiDPI screens (#8519)
Feature: OpenGL video driver (#7744)
Add: Indonesia Rupiah currency (#8616)
Change: Improve graph period markings (#8732)
Change: Make pathfinder account for maximum order speed, if set (#8722)
Change: Darken graph grid lines for legibility (#8690)
Change: Make order window hotkeys toggle for load & unload variants (#8669)
Change: Use a more specific error message when attempting to bulldoze your own HQ (#8667)
Change: Convert .md to .rtf for Windows/Mac packages (#8617)
Change: Move the 'tree placer algorithm' & 'road drive side' settings to the Settings window (#8566)
Change: Move town name generator selection to mapgen GUI (#8566)
Change: [macOS] Native font rendering (#8518)
Fix: Display of network lobby windows for different GUI sizes (#8765)
Fix: Don't desync if client leaves before you finish downloading map (#8755)
Fix: Allow estimating vehicle clone cost even if short on money (#8748)
Fix: Don't notify twice that a client left because of a timeout (#8746)
Fix: Vehicle cursor size did not account for the interface zoom level (#8739)
Fix #8123: Trams on half-tiles couldn't find depots (#8738)
Fix #8276: [NewGRF] Crash when an object's size was not set (#8719)
Fix #8349: Close depot vehicle list windows when closing the depot window (#8717)
Fix #8594: [NRT] Road pathfinder did not account for roadtype speed limits or lengths of tunnels/bridges (#8710)
Fix: Whole status bar instead of money widget refreshed on money change (#8692)
Fix: Unnecessary status bar redraws when there is no news to show (#8691)
Fix: New orders are non-stop by default (#8689)
Fix: Framerate window showed a slightly higher rate than actually measured (#8682)
Fix: Autorenew failure advice due to bad refit being shown to all companies (#8681)
Fix #8625: Wrong ending year was displayed in highscore table (#8672)
Fix #8620: Scale spacing between date & news in history window according to font scaling (#8671)
Fix: Mention our websites with https:// (instead of http://) (#8657)
Fix: Don't crash when towns upgrade road tiles during expansion (#8651)
Fix #8029: [SDL2] Blank display when under Wayland (#8648)
Fix: Default Network Server List sorter put compatible servers in wrong order (#8626)
Fix: Use non-pulsating red highlight for coverage (#8622)
Fix: Center text and image in vehicle statusbar vertically (#8602)
Fix: Don't walk out of the map when trying to build tunnels (#8600)
Fix: Off-by-one error in desert/rainforest positioning at world gen (#8588)
Fix #8037: Crash when restarting AI that is controlling the same company as the player (#8587)
Fix: Stopped ships shouldn't block depots (#8578)

1.11.0-beta1 (2021-01-22)
------------------------------------------------------------------------
Feature: [GS] Ability to set some extra text in the industry window (#8576)
Feature: Show rainforest under vegetation on smallmap (#8562)
Feature: Automatically determine window size on new install (#8536)
Feature: Towns can build tunnels (#8473)
Feature: Make maximum length of town bridges depend on population (with a minimum limit of 4) (#8439)
Feature: New icons for renaming and go-to-location on GUI windows, and improve consistency of usage (#8455)
Feature: Support for ARM64 on Apple Silicon and Windows (#8340, #8577, #8583)
Feature: Add an option to disable tree growth completely (#8415)
Feature: Show group name as part of the default vehicle name (#8307)
Feature: "Frozen" economy setting that stops production changes and industry closures (#8282)
Feature: New velocity unit "tiles/day" (#8278)
Feature: Option to automatically remove signals when placing rail (#8274)
Feature: Increase max possible distance from border for oil refineries and rigs (#8237)
Feature: Improve tree planting window, and allow planting 'clumps' of trees by dragging in the scenario editor (#8234)
Feature: Indian Rupee (INR) currency (#8136)
Feature: [GS] Ability to give a company exclusive access to an industry (#8115)
Feature: Hotkeys for Land Info window, News window & close error window (#8053, #8266)
Feature: Improve rendering of large viewports (#7962)
Feature: [GS] Influence industry production changes from GameScript (#7912)
Feature: [GS] Push-buttons on storybook pages (#7896)
Feature: Option to group vehicle lists by shared orders (#7028)
Feature: Drag-and-drop vehicles in group GUI for shared order groups (#7028)
Add: [GS] A tile parameter to GSCompany::ChangeBankBalance for showing changes more visually (#8573)
Add: [NewGRF] Allow NewGRF vehicles to query the current rail/road/tram type (#8554)
Add: [Script] ScriptCargo::GetName for the human readable name of cargoes (#8544)
Add: "reload" console command to reload the current scenario or heightmap (#8527)
Add: [NewGRF] Flag to test if inflation is on or off (#8427)
Add: [Script] Native priority queue (useful for things like pathfinders) (#8091)
Add: [NewGRF] Industry behaviour flag to override second cargo production clamping for water industries when using smooth economy (#8079)
Change: [SDL2] Start game on the screen where the cursor is (#8572)
Change: Use a dark background for all profit graphs to increase contrast (#8557)
Change: Reword warning in cheat window (#8538)
Change: Enable the toolbar for road/rail/dock/airport, regardless of vehicle availability (#8521)
Change: For arctic and tropical climates, make sure at least a few hills are generated (#8513)
Change: Destroying a tunnel/bridge now sells the tracks before destroying the tunnel/bridge (#8508)
Change: Move "give money" from client-list to company window (#8500)
Change: [MacOS] Hide Dock and menu when in fullscreen mode (#8487)
Change: Improve performance for complex vehicle chains by resolving sprites less frequently (#8485)
Change: Make engine reliability independent of introduction date (#8470)
Change: Some default settings to improve gameplay for new players - default non-stop orders on, disable inflation, quick goto orders, show track reservations, and more (#8463)
Change: Converting town-owned road types now requires a positive town rating (#8457)
Change: Rework server list buttons for searching LAN/internet servers (#8426)
Change: Add some styling to GS question windows depending on the type (#8422)
Change: [Linkgraph] Speed up game exit by allowing job threads to be aborted early (#8416)
Change: Prevent towns from building dead-end road bridges (#8401)
Change: Send network error to the server before making an emergency save (#8387)
Change: Extend the allowed range for max loan setting up to 贈2 billion (#8386)
Change: Don't display OS name when exiting the game (#8366)
Change: Save openttd.cfg immediately on changing a setting (#8358)
Change: Autorenew now defaults to on (#8352)
Change: [NewGRF] Also use aircraft property 12 for helicopters (#8347)
Change: Service at depot also resets breakdown chance (#8317)
Change: Use key names instead of characters in hotkey.cfg (#8291)
Change: Allow command cost-estimation while paused (#8222)
Change: Always apply inflation from 1920 to 2090, no matter the game start year (#7589)
Change: Use CMake for build system (#7270)
Change: [Linkgraph] Pause the game when linkgraph jobs lag (#7081)
Change: Place "Group by" above "Sort by" in station window for consistency (#7028)
Fix #8589: Prevent desyncs with vehicle motion counters and NewGRFs (#8591)
Fix #7670: Improve pathfinder performance when lost vehicles are blocked from moving (#8568)
Fix: Inform user if a custom font failed to load due to missing glyphs (#8559)
Fix: Don't allow wagon chains (without an engine) to exceed maximum train length (#8533)
Fix #7619: Super fast NewGRF aircraft could be unable to land (#8531)
Fix: Improve connection retries for the content server in cases of broken networking (#8530)
Fix #7972: Show invalid orders to stations that don't accept the vehicle (#8516)
Fix: Error when trying to clone a vehicle with invalid orders (#8515)
Fix #8050: Various off-by-one errors in how the end-year of the game was used (#8512)
Fix #8332: Aborting vehicle group drag & drop could cause crashes (#8511)
Fix #8168: Allow relocating HQ partially over an existing HQ (#8510)
Fix #8068: Allow selling tram track regardless of bank balance (#8509)
Fix #7604: Prevent houses from wandering away from roads (#8507)
Fix: Make the "password" button the same size as the other buttons in the Company window (#8500)
Fix #7611: Keep news about vehicle accidents around after the vehicle is cleaned up (#8497)
Fix: [MacOS] Full animation in fullscreen mode was reducing the height of the window (#8491)
Fix: [MacOS] Loading custom fonts (#8484)
Fix: Network client makes emergency saves twice if the server is disconnected (#8477)
Fix #8462: Stop towns from trying to build roads on water (#8471)
Fix: [NewGRF] GetCurveSpeedLimit should use the railtype from the current tile (#8466)
Fix #8437: Crash when using certain heliports with certain rotated airports (#8458)
Fix #8437: Planes would land at the wrong height if the top corner of the airport was lowered (#8458)
Fix #8297: Infrastructure counters for road tunnels, bridges & depots (#8454)
Fix #6468: Don't store the version of AIs that are started via console (#8430)
Fix: Don't lower tree density if spreading is not enabled (#8413)
Fix: Prevent savegame version conflicts with certain old patchpacks (#8411)
Fix: [NewGRF] Variable 0x44 was always HZB_TOWN_EDGE for road stops (#8400)
Fix #8313: Use correct capitalization for TTO / DOS music files in the baseset metadata (#8385)
Fix: [NewGRF] Action 7/9 conditions 0x0F to 0x12 failed, if 'param' was 0x88 (#8382)
Fix: Change the working-dir searchpath when using '-c' (#8367)
Fix: Useless warning with -snull and no BaseSounds available (#8361)
Fix: Crash trying to load TTO/TTD savegames. (#8356)
Fix: [Script] Don't echo script exceptions to console (#8331)
Fix: Slovak ownname was using the wrong form (#8326)
Fix #8311: [NewGRF] Industry probability at map generation was scaled differently when set via property or callback (#8312)
Fix: Only check houses for cargo when generating subsidies with towns (#8305)
Fix: Sprite preview in sprite aligner was too small with scaled UI (#8288)
Fix: Spell 'Viewport' consistently (#8260)
Fix #7772: Show vehicle destination on mouseover when vehicle stopped (#8236, #8543)
Fix #8232: Huge screenshot warning was shown incorrectly (#8224)
Fix #8153: Report incompatible cargo/order when autoreplace fails (#8169)
Fix: [Script] ScriptMarine::AreWaterTilesConnected did not work for aqueducts (#8074)
Fix #7645: Add cost of clearing the sloped tile to the price of a dock (#7947)
Fix #6452: Reset only editable and visible settings from GUI (#7890)
Fix: Original terrain generator did not keep a single gap of water at the borders (#7883)
Remove: In-game console command "content select all" (#8363)
Remove: [OSX] Support for OSX older than 10.7, including QuickTime music driver (#8078)


(nia)
diff -r1.97 -r1.98 pkgsrc/games/openttd/Makefile
diff -r1.27 -r1.28 pkgsrc/games/openttd/PLIST
diff -r1.37 -r1.38 pkgsrc/games/openttd/distinfo
diff -r0 -r1.1 pkgsrc/games/openttd/patches/patch-cmake_InstallAndPackage.cmake
diff -r1.3 -r0 pkgsrc/games/openttd/patches/patch-config.lib
diff -r1.1 -r0 pkgsrc/games/openttd/patches/patch-src_core_alloc__func.hpp
diff -r1.1 -r0 pkgsrc/games/openttd/patches/patch-src_core_endian__type.hpp

cvs diff -r1.97 -r1.98 pkgsrc/games/openttd/Makefile (expand / switch to unified diff)

--- pkgsrc/games/openttd/Makefile 2021/04/21 11:41:45 1.97
+++ pkgsrc/games/openttd/Makefile 2021/05/04 17:08:05 1.98
@@ -1,69 +1,56 @@ @@ -1,69 +1,56 @@
1# $NetBSD: Makefile,v 1.97 2021/04/21 11:41:45 adam Exp $ 1# $NetBSD: Makefile,v 1.98 2021/05/04 17:08:05 nia Exp $
2 2
3DISTNAME= openttd-1.10.3-source 3DISTNAME= openttd-1.11.2-source
4PKGNAME= ${DISTNAME:S/-source//} 4PKGNAME= ${DISTNAME:S/-source//}
5PKGREVISION= 3 
6CATEGORIES= games 5CATEGORIES= games
7MASTER_SITES= https://proxy.binaries.openttd.org/openttd-releases/${PKGVERSION_NOREV}/ 6MASTER_SITES= https://proxy.binaries.openttd.org/openttd-releases/${PKGVERSION_NOREV}/
8EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
9 8
10MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://www.openttd.org/ 10HOMEPAGE= https://www.openttd.org/
12COMMENT= Open source clone of Transport Tycoon Deluxe 11COMMENT= Open source clone of Transport Tycoon Deluxe
13LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
14 13
15WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} 14WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
16HAS_CONFIGURE= yes 15USE_CMAKE= yes
17USE_LANGUAGES= c c++ 16USE_LANGUAGES= c c++
18USE_TOOLS+= gmake pkg-config 17USE_TOOLS+= pkg-config
19BUILD_DEFS+= VARBASE 18CONFIGURE_DIRS= build
20BUILD_TARGET= bundle 19CMAKE_ARG_PATH= ..
21 
22# C++11 
23GCC_REQD+= 4.8 
24 20
25CONFIGURE_ARGS+= --os=UNIX 21# C++17
26CONFIGURE_ARGS+= --prefix-dir=${PREFIX} 22GCC_REQD+= 7
27CONFIGURE_ARGS+= --binary-dir=bin 
28CONFIGURE_ARGS+= --data-dir=share/openttd 
29CONFIGURE_ARGS+= --doc-dir=share/doc/openttd 
30CONFIGURE_ARGS+= --icon-theme-dir=share/icons/hicolor 
31CONFIGURE_ARGS+= --install-dir=${DESTDIR} 
32CONFIGURE_ARGS+= --man-dir=${PKGMANDIR}/man6 
33CONFIGURE_ARGS+= --menu-dir=share/applications 
34CONFIGURE_ARGS+= --personal-dir=.openttd 
35CONFIGURE_ARGS+= --shared-dir=${VARBASE}/games/openttd 
36 23
37CONFIGURE_ARGS+= --without-allegro 24BUILD_DEFS+= VARBASE
38 25
39.include "../../mk/bsd.prefs.mk" 26.include "../../mk/bsd.prefs.mk"
40 27
41.if ${OPSYS} == "Darwin" 28CMAKE_ARGS+= -DPERSONAL_DIR=.openttd
42CONFIGURE_ARGS+= --disable-cocoa-quickdraw 29CMAKE_ARGS+= -DSHARED_DIR=${VARBASE}/games/openttd
43CONFIGURE_ARGS+= --with-cocoa 30CMAKE_ARGS+= -DGLOBAL_DIR=${PREFIX}/share/openttd
44CONFIGURE_ARGS+= --without-application-bundle 31CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
45CONFIGURE_ARGS+= --without-osx-sysroot 32CMAKE_ARGS+= -DCMAKE_INSTALL_BINDIR=bin
46.else 33CMAKE_ARGS+= -DCMAKE_INSTALL_DATADIR=share
47CONFIGURE_ARGS+= --with-sdl=sdl2 34CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Allegro=ON
48.include "../../devel/SDL2/buildlink3.mk" 35CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
49.include "../../x11/libxdg-basedir/buildlink3.mk" 36CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Grfcodec=ON
50BUILDLINK_API_DEPENDS.libxdg-basedir+= libxdg-basedir>=1.2.0 
51.endif 
52 37
53MAKE_FLAGS.NetBSD+= MD5SUM="/usr/bin/cksum -n -a md5" 38BUILDLINK_TRANSFORM+= opt:-std=c++17:-std=gnu++17 # alloca
54 39
55BUILDLINK_TRANSFORM+= opt:-std=c++11:-std=gnu++11 # alloca 40pre-configure:
 41 ${MKDIR} ${WRKSRC}/build
56 42
57.include "../../archivers/lzo/buildlink3.mk" 43.include "../../archivers/lzo/buildlink3.mk"
58.include "../../archivers/xz/buildlink3.mk" 44.include "../../archivers/xz/buildlink3.mk"
59.include "../../audio/fluidsynth/buildlink3.mk" 45.include "../../audio/fluidsynth/buildlink3.mk"
60.include "../../converters/libiconv/buildlink3.mk" 46.include "../../converters/libiconv/buildlink3.mk"
 47.include "../../devel/SDL2/buildlink3.mk"
61.include "../../devel/zlib/buildlink3.mk" 48.include "../../devel/zlib/buildlink3.mk"
62.include "../../fonts/fontconfig/buildlink3.mk" 49.include "../../fonts/fontconfig/buildlink3.mk"
63.include "../../graphics/freetype2/buildlink3.mk" 50.include "../../graphics/freetype2/buildlink3.mk"
64.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 51.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
65.include "../../graphics/png/buildlink3.mk" 52.include "../../graphics/png/buildlink3.mk"
66.include "../../sysutils/desktop-file-utils/desktopdb.mk" 53.include "../../sysutils/desktop-file-utils/desktopdb.mk"
67.include "../../textproc/icu/buildlink3.mk" 54.include "../../textproc/icu/buildlink3.mk"
68.include "../../mk/pthread.buildlink3.mk" 55.include "../../mk/pthread.buildlink3.mk"
69.include "../../mk/bsd.pkg.mk" 56.include "../../mk/bsd.pkg.mk"

cvs diff -r1.27 -r1.28 pkgsrc/games/openttd/PLIST (expand / switch to unified diff)

--- pkgsrc/games/openttd/PLIST 2020/04/05 14:41:21 1.27
+++ pkgsrc/games/openttd/PLIST 2021/05/04 17:08:05 1.28
@@ -1,55 +1,56 @@ @@ -1,55 +1,56 @@
1@comment $NetBSD: PLIST,v 1.27 2020/04/05 14:41:21 nia Exp $ 1@comment $NetBSD: PLIST,v 1.28 2021/05/04 17:08:05 nia Exp $
2bin/openttd 2bin/openttd
3man/man6/openttd.6 3man/man6/openttd.6
4share/applications/openttd.desktop 4share/applications/openttd.desktop
5share/doc/openttd/COPYING.md 5share/doc/openttd/COPYING.md
6share/doc/openttd/README.md 6share/doc/openttd/README.md
7share/doc/openttd/changelog.txt 7share/doc/openttd/changelog.txt
8share/doc/openttd/known-bugs.txt 8share/doc/openttd/known-bugs.txt
9share/doc/openttd/multiplayer.md 9share/doc/openttd/multiplayer.md
10share/icons/hicolor/128x128/apps/openttd.png 10share/icons/hicolor/128x128/apps/openttd.png
11share/icons/hicolor/16x16/apps/openttd.png 11share/icons/hicolor/16x16/apps/openttd.png
12share/icons/hicolor/256x256/apps/openttd.png 12share/icons/hicolor/256x256/apps/openttd.png
13share/icons/hicolor/32x32/apps/openttd.png 13share/icons/hicolor/32x32/apps/openttd.png
14share/icons/hicolor/48x48/apps/openttd.png 14share/icons/hicolor/48x48/apps/openttd.png
15share/icons/hicolor/64x64/apps/openttd.png 15share/icons/hicolor/64x64/apps/openttd.png
16share/openttd/ai/compat_0.7.nut 16share/openttd/ai/compat_0.7.nut
17share/openttd/ai/compat_1.0.nut 17share/openttd/ai/compat_1.0.nut
18share/openttd/ai/compat_1.1.nut 18share/openttd/ai/compat_1.1.nut
19share/openttd/ai/compat_1.10.nut 19share/openttd/ai/compat_1.10.nut
 20share/openttd/ai/compat_1.11.nut
20share/openttd/ai/compat_1.2.nut 21share/openttd/ai/compat_1.2.nut
21share/openttd/ai/compat_1.3.nut 22share/openttd/ai/compat_1.3.nut
22share/openttd/ai/compat_1.4.nut 23share/openttd/ai/compat_1.4.nut
23share/openttd/ai/compat_1.5.nut 24share/openttd/ai/compat_1.5.nut
24share/openttd/ai/compat_1.6.nut 25share/openttd/ai/compat_1.6.nut
25share/openttd/ai/compat_1.7.nut 26share/openttd/ai/compat_1.7.nut
26share/openttd/ai/compat_1.8.nut 27share/openttd/ai/compat_1.8.nut
27share/openttd/ai/compat_1.9.nut 28share/openttd/ai/compat_1.9.nut
28share/openttd/baseset/no_music.obm 29share/openttd/baseset/no_music.obm
29share/openttd/baseset/no_sound.obs 30share/openttd/baseset/no_sound.obs
30share/openttd/baseset/openttd.32.bmp 
31share/openttd/baseset/openttd.grf 31share/openttd/baseset/openttd.grf
32share/openttd/baseset/opntitle.dat 32share/openttd/baseset/opntitle.dat
33share/openttd/baseset/orig_dos.obg 33share/openttd/baseset/orig_dos.obg
34share/openttd/baseset/orig_dos.obm 34share/openttd/baseset/orig_dos.obm
35share/openttd/baseset/orig_dos.obs 35share/openttd/baseset/orig_dos.obs
36share/openttd/baseset/orig_dos_de.obg 36share/openttd/baseset/orig_dos_de.obg
37share/openttd/baseset/orig_extra.grf 37share/openttd/baseset/orig_extra.grf
38share/openttd/baseset/orig_tto.obm 38share/openttd/baseset/orig_tto.obm
39share/openttd/baseset/orig_win.obg 39share/openttd/baseset/orig_win.obg
40share/openttd/baseset/orig_win.obm 40share/openttd/baseset/orig_win.obm
41share/openttd/baseset/orig_win.obs 41share/openttd/baseset/orig_win.obs
42share/openttd/game/compat_1.10.nut 42share/openttd/game/compat_1.10.nut
 43share/openttd/game/compat_1.11.nut
43share/openttd/game/compat_1.2.nut 44share/openttd/game/compat_1.2.nut
44share/openttd/game/compat_1.3.nut 45share/openttd/game/compat_1.3.nut
45share/openttd/game/compat_1.4.nut 46share/openttd/game/compat_1.4.nut
46share/openttd/game/compat_1.5.nut 47share/openttd/game/compat_1.5.nut
47share/openttd/game/compat_1.6.nut 48share/openttd/game/compat_1.6.nut
48share/openttd/game/compat_1.7.nut 49share/openttd/game/compat_1.7.nut
49share/openttd/game/compat_1.8.nut 50share/openttd/game/compat_1.8.nut
50share/openttd/game/compat_1.9.nut 51share/openttd/game/compat_1.9.nut
51share/openttd/lang/afrikaans.lng 52share/openttd/lang/afrikaans.lng
52share/openttd/lang/arabic_egypt.lng 53share/openttd/lang/arabic_egypt.lng
53share/openttd/lang/basque.lng 54share/openttd/lang/basque.lng
54share/openttd/lang/belarusian.lng 55share/openttd/lang/belarusian.lng
55share/openttd/lang/brazilian_portuguese.lng 56share/openttd/lang/brazilian_portuguese.lng
@@ -104,13 +105,14 @@ share/openttd/lang/turkish.lng @@ -104,13 +105,14 @@ share/openttd/lang/turkish.lng
104share/openttd/lang/ukrainian.lng 105share/openttd/lang/ukrainian.lng
105share/openttd/lang/vietnamese.lng 106share/openttd/lang/vietnamese.lng
106share/openttd/lang/welsh.lng 107share/openttd/lang/welsh.lng
107share/openttd/scripts/autoexec.scr.example 108share/openttd/scripts/autoexec.scr.example
108share/openttd/scripts/game_start.scr.example 109share/openttd/scripts/game_start.scr.example
109share/openttd/scripts/on_client.scr.example 110share/openttd/scripts/on_client.scr.example
110share/openttd/scripts/on_dedicated.scr.example 111share/openttd/scripts/on_dedicated.scr.example
111share/openttd/scripts/on_server.scr.example 112share/openttd/scripts/on_server.scr.example
112share/openttd/scripts/on_server_connect.scr.example 113share/openttd/scripts/on_server_connect.scr.example
113share/openttd/scripts/pre_dedicated.scr.example 114share/openttd/scripts/pre_dedicated.scr.example
114share/openttd/scripts/pre_server.scr.example 115share/openttd/scripts/pre_server.scr.example
115share/openttd/scripts/readme.txt 116share/openttd/scripts/readme.txt
116share/pixmaps/openttd.32.xpm 117share/pixmaps/openttd.32.xpm
 118share/pixmaps/openttd.64.xpm

cvs diff -r1.37 -r1.38 pkgsrc/games/openttd/distinfo (expand / switch to unified diff)

--- pkgsrc/games/openttd/distinfo 2020/10/03 10:17:15 1.37
+++ pkgsrc/games/openttd/distinfo 2021/05/04 17:08:05 1.38
@@ -1,9 +1,7 @@ @@ -1,9 +1,7 @@
1$NetBSD: distinfo,v 1.37 2020/10/03 10:17:15 nia Exp $ 1$NetBSD: distinfo,v 1.38 2021/05/04 17:08:05 nia Exp $
2 2
3SHA1 (openttd-1.10.3-source.tar.xz) = 5a68b97d1f84e9f7e361c12996e741fe64537802 3SHA1 (openttd-1.11.2-source.tar.xz) = 1894134b7bfc7c645ce9c4fe5747db3dd40abf61
4RMD160 (openttd-1.10.3-source.tar.xz) = 863de2742c84f198d44d02268575cd5233f1c56f 4RMD160 (openttd-1.11.2-source.tar.xz) = 19d5edf788076fe562bcc8f095e44dd3910c83b0
5SHA512 (openttd-1.10.3-source.tar.xz) = d1cd535e8e49f0ac147704341287af1b16bde6725fd9152dd36dcb780559b400da8bb31c4e8eb665a0d11e9b1f5bf8a96be0f97f7a85bd967eec534fdd3dd0d4 5SHA512 (openttd-1.11.2-source.tar.xz) = 9a6364bf19627db9f8ec58bfa85fa3a8febf1109f3b5fb9053bef810ac2d0c41df91b58f0b253dd45320a29cae2e8485df794afa7b5240f19759f98fd65c35ea
6Size (openttd-1.10.3-source.tar.xz) = 6815924 bytes 6Size (openttd-1.11.2-source.tar.xz) = 6783972 bytes
7SHA1 (patch-config.lib) = 1e8319816aba9d7bf4d0f749c0a4725d1747388a 7SHA1 (patch-cmake_InstallAndPackage.cmake) = 18b02c11bf59639124c2a852d5a19dda3ae0ff81
8SHA1 (patch-src_core_alloc__func.hpp) = 17fcfe3ce984cd453f6756f4f212c8fe8ab15ed1 
9SHA1 (patch-src_core_endian__type.hpp) = 23564a89fd0e2ebe97043c7d16d5831831b65f40 

File Added: pkgsrc/games/openttd/patches/patch-cmake_InstallAndPackage.cmake
$NetBSD: patch-cmake_InstallAndPackage.cmake,v 1.1 2021/05/04 17:08:05 nia Exp $

Do not try to generate Linux distribution packages.

--- cmake/InstallAndPackage.cmake.orig	2021-05-03 18:41:45.000000000 +0000
+++ cmake/InstallAndPackage.cmake
@@ -145,47 +145,9 @@ elseif(UNIX)
     if(OPTION_PACKAGE_DEPENDENCIES)
         set(CPACK_GENERATOR "TXZ")
         set(PLATFORM "generic")
-    elseif(NOT OPTION_INSTALL_FHS)
+    else()
         set(CPACK_GENERATOR "TXZ")
         set(PLATFORM "unknown")
-    else()
-        find_program(LSB_RELEASE_EXEC lsb_release)
-        execute_process(COMMAND ${LSB_RELEASE_EXEC} -is
-            OUTPUT_VARIABLE LSB_RELEASE_ID
-            OUTPUT_STRIP_TRAILING_WHITESPACE
-        )
-        if(LSB_RELEASE_ID)
-            if(LSB_RELEASE_ID STREQUAL "Ubuntu" OR LSB_RELEASE_ID STREQUAL "Debian")
-                execute_process(COMMAND ${LSB_RELEASE_EXEC} -cs
-                    OUTPUT_VARIABLE LSB_RELEASE_CODENAME
-                    OUTPUT_STRIP_TRAILING_WHITESPACE
-                )
-                string(TOLOWER "${LSB_RELEASE_ID}-${LSB_RELEASE_CODENAME}" PLATFORM)
-
-                set(CPACK_GENERATOR "DEB")
-                include(PackageDeb)
-            else()
-                set(UNSUPPORTED_PLATFORM_NAME "LSB-based Linux distribution '${LSB_RELEASE_ID}'")
-            endif()
-        elseif(EXISTS "/etc/os-release")
-            file(STRINGS "/etc/os-release" OS_RELEASE_CONTENTS REGEX "^ID=")
-            string(REGEX MATCH "ID=(.*)" _ ${OS_RELEASE_CONTENTS})
-            set(DISTRO_ID ${CMAKE_MATCH_1})
-            if(DISTRO_ID STREQUAL "arch")
-                set(PLATFORM "arch")
-                set(CPACK_GENERATOR "TXZ")
-            else()
-                set(UNSUPPORTED_PLATFORM_NAME "Linux distribution '${DISTRO_ID}' from /etc/os-release")
-            endif()
-        else()
-            set(UNSUPPORTED_PLATFORM_NAME "Linux distribution")
-        endif()
-
-        if(NOT PLATFORM)
-            set(PLATFORM "generic")
-            set(CPACK_GENERATOR "TXZ")
-            message(WARNING "Unknown ${UNSUPPORTED_PLATFORM_NAME} found for packaging; can only pack to a txz. Please consider creating a Pull Request to add support for this distribution.")
-        endif()
     endif()
 
     set(CPACK_PACKAGE_FILE_NAME "openttd-#CPACK_PACKAGE_VERSION#-linux-${PLATFORM}-${CPACK_SYSTEM_NAME}")

File Deleted: pkgsrc/games/openttd/patches/Attic/patch-config.lib

File Deleted: pkgsrc/games/openttd/patches/patch-src_core_alloc__func.hpp

File Deleted: pkgsrc/games/openttd/patches/Attic/patch-src_core_endian__type.hpp