pkgsrc/games/openttd/Makefile
nia 634e1a356c openttd: Update to 1.10.2
1.10.2 (2020-06-01)
------------------------------------------------------------------------
Add: Ubuntu 20.04 packages (#8127)
Fix: [OSX] Possible crash on failure to set colourspace (#8181)
Fix #8166: Prevent crash from a NewGRF with an invalid RoadType (#8180)
Fix #8024: Make Online Content GUI more responsive while loading (#8179)
Fix #7970: Disable event loop when generating crash dump (#8176)
Fix: [Build] Compatibility with modern Visual Studio (#8170)
Fix: Trees would disappear completely after a few years if tree spread was disabled (#8160)
Fix #8155: Roadtype speed limit in scenario editor toolbar dropdown was doubled (#8156)
Fix: Desync after house replacement (#8151)
Fix #8137: New clients can't join (desync) after funding an industry (#8140)
Fix #8132: Corrupted savegame with station with multiple owners caused a crash (#8134, #8142)
Fix: Stop gamelog when recovering from a savegame load error (#8133)
Fix: Exceptionally unlikely issue when reading MIDI files (#8125)
Fix #8119: Docking areas were not properly updated when clearing, causing desyncs (#8124, #8130)
Fix #8117: Memory leak for incoming admin port packets (#8122)
Fix: Non-roadbridges potentially had roadtype information set (#8111)
Fix #8108: Possible crash on loading TTD savegames with phantom oil rigs (#8109, #8110)
Fix #8093: Build & refit test run changed game state and could cause desyncs (#8103)
Fix: [Script] AreWaterTilesConnected did not handle aqueducts properly (#8074)
2020-06-03 16:52:39 +00:00

68 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.91 2020/06/03 16:52:39 nia Exp $
DISTNAME= openttd-1.10.2-source
PKGNAME= ${DISTNAME:S/-source//}
CATEGORIES= games
MASTER_SITES= https://proxy.binaries.openttd.org/openttd-releases/${PKGVERSION_NOREV}/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.openttd.org/
COMMENT= Open source clone of Transport Tycoon Deluxe
LICENSE= gnu-gpl-v2
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
HAS_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= gmake pkg-config
BUILD_DEFS+= VARBASE
BUILD_TARGET= bundle
# C++11
GCC_REQD+= 4.8
CONFIGURE_ARGS+= --os=UNIX
CONFIGURE_ARGS+= --prefix-dir=${PREFIX}
CONFIGURE_ARGS+= --binary-dir=bin
CONFIGURE_ARGS+= --data-dir=share/openttd
CONFIGURE_ARGS+= --doc-dir=share/doc/openttd
CONFIGURE_ARGS+= --icon-theme-dir=share/icons/hicolor
CONFIGURE_ARGS+= --install-dir=${DESTDIR}
CONFIGURE_ARGS+= --man-dir=${PKGMANDIR}/man6
CONFIGURE_ARGS+= --menu-dir=share/applications
CONFIGURE_ARGS+= --personal-dir=.openttd
CONFIGURE_ARGS+= --shared-dir=${VARBASE}/games/openttd
CONFIGURE_ARGS+= --without-allegro
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
CONFIGURE_ARGS+= --disable-cocoa-quickdraw
CONFIGURE_ARGS+= --with-cocoa
CONFIGURE_ARGS+= --without-application-bundle
CONFIGURE_ARGS+= --without-osx-sysroot
.else
CONFIGURE_ARGS+= --with-sdl=sdl2
.include "../../devel/SDL2/buildlink3.mk"
.include "../../x11/libxdg-basedir/buildlink3.mk"
BUILDLINK_API_DEPENDS.libxdg-basedir+= libxdg-basedir>=1.2.0
.endif
MAKE_FLAGS.NetBSD+= MD5SUM="/usr/bin/cksum -n -a md5"
BUILDLINK_TRANSFORM+= opt:-std=c++11:-std=gnu++11 # alloca
.include "../../archivers/lzo/buildlink3.mk"
.include "../../archivers/xz/buildlink3.mk"
.include "../../audio/fluidsynth/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"