diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/openttd/Makefile | 10 | ||||
-rw-r--r-- | games/openttd/PLIST | 8 | ||||
-rw-r--r-- | games/openttd/distinfo | 14 | ||||
-rw-r--r-- | games/openttd/patches/patch-config.lib | 16 | ||||
-rw-r--r-- | games/openttd/patches/patch-src_language.h | 16 | ||||
-rw-r--r-- | games/openttd/patches/patch-src_strings.cpp | 25 |
6 files changed, 23 insertions, 66 deletions
diff --git a/games/openttd/Makefile b/games/openttd/Makefile index cb819caa12d..6e333fc61e8 100644 --- a/games/openttd/Makefile +++ b/games/openttd/Makefile @@ -1,10 +1,9 @@ -# $NetBSD: Makefile,v 1.76 2019/04/03 00:32:43 ryoon Exp $ +# $NetBSD: Makefile,v 1.77 2019/04/25 15:55:07 adam Exp $ -DISTNAME= openttd-1.8.0-source +DISTNAME= openttd-1.9.1-source PKGNAME= ${DISTNAME:S/-source//} -PKGREVISION= 3 CATEGORIES= games x11 -MASTER_SITES= http://binaries.openttd.org/releases/${PKGVERSION_NOREV}/ +MASTER_SITES= https://proxy.binaries.openttd.org/openttd-releases/${PKGVERSION_NOREV}/ EXTRACT_SUFX= .tar.xz MAINTAINER= pkgsrc-users@NetBSD.org @@ -29,9 +28,6 @@ CONFIGURE_ARGS+= --man-dir=${PKGMANDIR}/man6 CONFIGURE_ARGS+= --menu-dir=share/applications CONFIGURE_ARGS+= --personal-dir=.openttd CONFIGURE_ARGS+= --shared-dir=${VARBASE}/games/openttd -# Hack: built-in xz does not provide liblzma.pc, needed to configure -PREFER_PKGSRC+= xz - CONFIGURE_ARGS+= --with-iconv CONFIGURE_ARGS+= --with-lzo2=${BUILDLINK_PREFIX.lzo}/lib diff --git a/games/openttd/PLIST b/games/openttd/PLIST index 16692a1f7fa..9e5899c0b23 100644 --- a/games/openttd/PLIST +++ b/games/openttd/PLIST @@ -1,12 +1,12 @@ -@comment $NetBSD: PLIST,v 1.24 2018/07/07 11:57:33 adam Exp $ +@comment $NetBSD: PLIST,v 1.25 2019/04/25 15:55:07 adam Exp $ bin/openttd man/man6/openttd.6 share/applications/openttd.desktop share/doc/openttd/COPYING +share/doc/openttd/README.md share/doc/openttd/changelog.txt share/doc/openttd/known-bugs.txt share/doc/openttd/multiplayer.txt -share/doc/openttd/readme.txt share/icons/hicolor/128x128/apps/openttd.png share/icons/hicolor/16x16/apps/openttd.png share/icons/hicolor/256x256/apps/openttd.png @@ -23,14 +23,17 @@ share/openttd/ai/compat_1.5.nut share/openttd/ai/compat_1.6.nut share/openttd/ai/compat_1.7.nut share/openttd/ai/compat_1.8.nut +share/openttd/ai/compat_1.9.nut share/openttd/baseset/no_music.obm share/openttd/baseset/no_sound.obs share/openttd/baseset/openttd.grf share/openttd/baseset/opntitle.dat share/openttd/baseset/orig_dos.obg +share/openttd/baseset/orig_dos.obm share/openttd/baseset/orig_dos.obs share/openttd/baseset/orig_dos_de.obg share/openttd/baseset/orig_extra.grf +share/openttd/baseset/orig_tto.obm share/openttd/baseset/orig_win.obg share/openttd/baseset/orig_win.obm share/openttd/baseset/orig_win.obs @@ -41,6 +44,7 @@ share/openttd/game/compat_1.5.nut share/openttd/game/compat_1.6.nut share/openttd/game/compat_1.7.nut share/openttd/game/compat_1.8.nut +share/openttd/game/compat_1.9.nut share/openttd/lang/afrikaans.lng share/openttd/lang/arabic_egypt.lng share/openttd/lang/basque.lng diff --git a/games/openttd/distinfo b/games/openttd/distinfo index 527d259e710..b1722b4735f 100644 --- a/games/openttd/distinfo +++ b/games/openttd/distinfo @@ -1,10 +1,8 @@ -$NetBSD: distinfo,v 1.29 2018/07/07 11:57:33 adam Exp $ +$NetBSD: distinfo,v 1.30 2019/04/25 15:55:07 adam Exp $ -SHA1 (openttd-1.8.0-source.tar.xz) = fd6c90f04c4cbd626751acb9bf8a47a9f2b31520 -RMD160 (openttd-1.8.0-source.tar.xz) = a607e955189561cc980dffc50dec57fc9ea9b9fb -SHA512 (openttd-1.8.0-source.tar.xz) = a2d61b3c94a550c8f3a581127df8c3459b1ddff5ba924942c468cbc70e88e0bf4405cecb68a91243b544ead64f215aa8d489a07b38dce507ae7d59e8ec155d7a -Size (openttd-1.8.0-source.tar.xz) = 6521016 bytes -SHA1 (patch-config.lib) = 4d3d7d9cc917163c728a51c17efa7f6b2e100913 +SHA1 (openttd-1.9.1-source.tar.xz) = e99c02b6b895001dfa7541796e7cda5dfc74d04f +RMD160 (openttd-1.9.1-source.tar.xz) = ed38041dab371954ed72c573cf058357b22e96b0 +SHA512 (openttd-1.9.1-source.tar.xz) = 44d907299a14fd09ebff980f7c212bbdbd5def880bc56bfe106c3efa8cb32472bbcafdbb145d3f4340a3bc96179418f78fe2ddc62dd067b464eca73313b477c1 +Size (openttd-1.9.1-source.tar.xz) = 6647548 bytes +SHA1 (patch-config.lib) = 297caf33c50298a4efcbddbe3fea88e2b4f101c1 SHA1 (patch-src_core_alloc__func.hpp) = 17fcfe3ce984cd453f6756f4f212c8fe8ab15ed1 -SHA1 (patch-src_language.h) = 162b798adb6a78172f2191633f44c7e59506f129 -SHA1 (patch-src_strings.cpp) = 75dd2a6672fa0b49ae724820f899f8b7f9260a56 diff --git a/games/openttd/patches/patch-config.lib b/games/openttd/patches/patch-config.lib index e170ee412d3..0c1579e7571 100644 --- a/games/openttd/patches/patch-config.lib +++ b/games/openttd/patches/patch-config.lib @@ -1,12 +1,12 @@ -$NetBSD: patch-config.lib,v 1.1 2017/06/28 18:18:36 adam Exp $ +$NetBSD: patch-config.lib,v 1.2 2019/04/25 15:55:07 adam Exp $ Compile 'strip' test with CFLAGS, so -isysroot can be passed on OSX. Correct library detection on NetBSD. On Darwin, be able to locate iconv.h inside the SDK. ---- config.lib.orig 2017-06-13 18:35:00.000000000 +0000 +--- config.lib.orig 2019-04-08 19:42:35.000000000 +0000 +++ config.lib -@@ -2095,7 +2095,7 @@ check_strip() { +@@ -2140,7 +2140,7 @@ check_strip() { elif [ "$os" = "OSX" ]; then # Most targets have -V in strip, to see if they exists... OSX doesn't.. so execute something echo "int main(int argc, char *argv[]) { }" > strip.test.c @@ -15,7 +15,7 @@ On Darwin, be able to locate iconv.h inside the SDK. check_compiler "host strip" "strip" "$host" "$strip" "$STRIP" "strip" "strip" "3" "strip.test" rm -f strip.test.c strip.test else -@@ -2601,7 +2601,7 @@ detect_library() { +@@ -2676,7 +2676,7 @@ detect_library() { if [ -z "$res" ]; then log 2 " trying /opt/local/include/$4$5... no" fi @@ -24,10 +24,10 @@ On Darwin, be able to locate iconv.h inside the SDK. eval "$2=`ls -1 /usr/pkg/include/$4*.h 2>/dev/null | egrep \"\/$5\$\"`" eval "res=\$$2" if [ -z "$res" ]; then -@@ -2873,6 +2873,9 @@ detect_iconv() { - if [ -z "$iconv" ]; then - iconv=`ls -1 /usr/local/include 2>/dev/null | grep "iconv.h"` - fi +@@ -2926,6 +2926,9 @@ detect_iconv() { + break + fi + done + if [ -z "$iconv" ] && [ "$os" = "OSX" ]; then + iconv=`xcrun --show-sdk-path`/usr/include/iconv.h + fi diff --git a/games/openttd/patches/patch-src_language.h b/games/openttd/patches/patch-src_language.h deleted file mode 100644 index 6333fef1b56..00000000000 --- a/games/openttd/patches/patch-src_language.h +++ /dev/null @@ -1,16 +0,0 @@ -$NetBSD: patch-src_language.h,v 1.1 2018/07/07 11:57:34 adam Exp $ - -Fix for ICU 61. -https://github.com/OpenTTD/OpenTTD/issues/6690 - ---- src/language.h.orig 2018-07-07 11:12:28.000000000 +0000 -+++ src/language.h -@@ -105,7 +105,7 @@ extern LanguageList _languages; - extern const LanguageMetadata *_current_language; - - #ifdef WITH_ICU_SORT --extern Collator *_current_collator; -+extern icu::Collator *_current_collator; - #endif /* WITH_ICU_SORT */ - - bool ReadLanguagePack(const LanguageMetadata *lang); diff --git a/games/openttd/patches/patch-src_strings.cpp b/games/openttd/patches/patch-src_strings.cpp deleted file mode 100644 index 5e02e19c0b8..00000000000 --- a/games/openttd/patches/patch-src_strings.cpp +++ /dev/null @@ -1,25 +0,0 @@ -$NetBSD: patch-src_strings.cpp,v 1.1 2018/07/07 11:57:34 adam Exp $ - -Fix for ICU 61. -https://github.com/OpenTTD/OpenTTD/issues/6690 - ---- src/strings.cpp.orig 2018-07-07 11:13:01.000000000 +0000 -+++ src/strings.cpp -@@ -52,7 +52,7 @@ const LanguageMetadata *_current_languag - TextDirection _current_text_dir; ///< Text direction of the currently selected language. - - #ifdef WITH_ICU_SORT --Collator *_current_collator = NULL; ///< Collator for the language currently in use. -+icu::Collator *_current_collator = NULL; ///< Collator for the language currently in use. - #endif /* WITH_ICU_SORT */ - - static uint64 _global_string_params_data[20]; ///< Global array of string parameters. To access, use #SetDParam. -@@ -1795,7 +1795,7 @@ bool ReadLanguagePack(const LanguageMeta - - /* Create a collator instance for our current locale. */ - UErrorCode status = U_ZERO_ERROR; -- _current_collator = Collator::createInstance(Locale(_current_language->isocode), status); -+ _current_collator = icu::Collator::createInstance(icu::Locale(_current_language->isocode), status); - /* Sort number substrings by their numerical value. */ - if (_current_collator != NULL) _current_collator->setAttribute(UCOL_NUMERIC_COLLATION, UCOL_ON, status); - /* Avoid using the collator if it is not correctly set. */ |