From owner-svn-ports-all@FreeBSD.ORG Tue Apr 7 02:49:03 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 87C9653A; Tue, 7 Apr 2015 02:49:03 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 72347CF5; Tue, 7 Apr 2015 02:49:03 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t372n3K8026484; Tue, 7 Apr 2015 02:49:03 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t372n13I026479; Tue, 7 Apr 2015 02:49:01 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201504070249.t372n13I026479@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Tue, 7 Apr 2015 02:49:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r383488 - in head/games/openttd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2015 02:49:03 -0000 Author: danfe Date: Tue Apr 7 02:49:01 2015 New Revision: 383488 URL: https://svnweb.freebsd.org/changeset/ports/383488 Log: - Update to version 1.5.0, fixup optional persistent password saving patch - Replace references to PORTVERSION with DISTVERSION throughout Makefile to make testing of beta- and RC-versions easier (e.g., just set DISTVERSION= 1.x.y-RCz and go) Modified: head/games/openttd/Makefile head/games/openttd/distinfo head/games/openttd/files/extra-patch-save-passwords head/games/openttd/pkg-plist Modified: head/games/openttd/Makefile ============================================================================== --- head/games/openttd/Makefile Tue Apr 7 01:39:11 2015 (r383487) +++ head/games/openttd/Makefile Tue Apr 7 02:49:01 2015 (r383488) @@ -2,13 +2,12 @@ # $FreeBSD$ PORTNAME= openttd -PORTVERSION= 1.4.4 -PORTREVISION= 2 +DISTVERSION= 1.5.0 CATEGORIES= games -MASTER_SITES= http://gb.binaries.openttd.org/binaries/releases/${PORTVERSION}/ \ - http://ftp.snt.utwente.nl/pub/games/openttd/binaries/releases/${PORTVERSION}/ \ - http://us.binaries.openttd.org/binaries/releases/${PORTVERSION}/ -DISTNAME= ${PORTNAME}-${PORTVERSION}-source +MASTER_SITES= http://gb.binaries.openttd.org/binaries/releases/${DISTVERSION}/ \ + http://ftp.snt.utwente.nl/pub/games/openttd/binaries/releases/${DISTVERSION}/ \ + http://us.binaries.openttd.org/binaries/releases/${DISTVERSION}/ +DISTNAME= ${PORTNAME}-${DISTVERSION}-source MAINTAINER= danfe@FreeBSD.org COMMENT= Open source clone of Microprose Transport Tycoon Deluxe @@ -27,7 +26,7 @@ CONFIGURE_ARGS= --prefix-dir="${PREFIX}" MAKE_ARGS= VERBOSE=1 .endif -WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} CXXFLAGS= # Set to empty as OpenTTD treats it as an addition to CFLAGS SUB_FILES= pkg-message @@ -92,8 +91,6 @@ pre-everything:: post-patch: @${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},' ${WRKSRC}/config.lib - @${REINPLACE_CMD} -e '/FS_NORMAL/s,max(1,&U,' \ - ${WRKSRC}/src/fontcache.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin Modified: head/games/openttd/distinfo ============================================================================== --- head/games/openttd/distinfo Tue Apr 7 01:39:11 2015 (r383487) +++ head/games/openttd/distinfo Tue Apr 7 02:49:01 2015 (r383488) @@ -1,2 +1,2 @@ -SHA256 (openttd-1.4.4-source.tar.xz) = 70f430b883c44f5e62111ea2dfd83f4e1c67835d8cd40dbb73bf89becac2d3f7 -SIZE (openttd-1.4.4-source.tar.xz) = 6342508 +SHA256 (openttd-1.5.0-source.tar.xz) = cb2735c3c94709430c58eb4e8820cd5d26b1a17447c34ca8792bb3432a3f7c2d +SIZE (openttd-1.5.0-source.tar.xz) = 6554560 Modified: head/games/openttd/files/extra-patch-save-passwords ============================================================================== --- head/games/openttd/files/extra-patch-save-passwords Tue Apr 7 01:39:11 2015 (r383487) +++ head/games/openttd/files/extra-patch-save-passwords Tue Apr 7 02:49:01 2015 (r383488) @@ -1,6 +1,6 @@ --- src/network/network_func.h 2014-10-21 21:36:31.000000000 +0300 +++ src/network/network_func.h 2014-11-09 21:37:49.000000000 +0200 -@@ -73,7 +73,8 @@ +@@ -74,7 +74,8 @@ bool NetworkServerStart(); void NetworkServerNewCompany(const Company *company, NetworkClientInfo *ci); bool NetworkServerChangeClientName(ClientID client_id, const char *new_name); @@ -17,11 +17,11 @@ #include "../core/random_func.hpp" #include "../rev.h" - -+#include "../fileio_func.h" ++#include "../fileio_func.h" + #include "../safeguards.h" - /* This file handles all the server-commands */ -@@ -498,6 +498,7 @@ +@@ -500,6 +500,7 @@ /* Reset 'lag' counters */ this->last_frame = this->last_frame_server = _frame_counter; @@ -29,7 +29,7 @@ Packet *p = new Packet(PACKET_SERVER_NEED_GAME_PASSWORD); this->SendPacket(p); return NETWORK_RECV_STATUS_OKAY; -@@ -1696,6 +1697,9 @@ +@@ -1684,6 +1685,9 @@ IConsolePrintF(CC_DEFAULT, "Auto-removed protection from company #%d", c->index + 1); _network_company_states[c->index].months_empty = 0; NetworkServerUpdateCompanyPassworded(c->index, false); @@ -39,7 +39,7 @@ } /* Is the company empty for autoclean_novehicles-months, and has no vehicles? */ if (_settings_client.network.autoclean_novehicles != 0 && _network_company_states[c->index].months_empty > _settings_client.network.autoclean_novehicles && vehicles_in_company[c->index] == 0) { -@@ -1794,6 +1798,9 @@ +@@ -1782,6 +1786,9 @@ strecpy(_network_company_states[company_id].password, password, lastof(_network_company_states[company_id].password)); NetworkServerUpdateCompanyPassworded(company_id, !StrEmpty(_network_company_states[company_id].password)); @@ -49,7 +49,7 @@ } /** -@@ -2218,4 +2225,47 @@ +@@ -2206,4 +2213,47 @@ } } @@ -99,10 +99,10 @@ #endif /* ENABLE_NETWORK */ --- src/openttd.cpp 2014-10-21 21:36:36.000000000 +0300 +++ src/openttd.cpp 2014-11-09 21:40:39.000000000 +0200 -@@ -1101,6 +1101,10 @@ +@@ -1111,6 +1111,10 @@ #ifdef ENABLE_NETWORK if (_network_server) { - snprintf(_network_game_info.map_name, lengthof(_network_game_info.map_name), "%s (Loaded game)", _file_to_saveload.title); + seprintf(_network_game_info.map_name, lastof(_network_game_info.map_name), "%s (Loaded game)", _file_to_saveload.title); + // Try to load password + if ( _settings_client.network.save_password ) { + NetworkLoadPassword( ); @@ -122,7 +122,7 @@ }; --- src/table/settings.ini 2014-10-21 21:36:21.000000000 +0300 +++ src/table/settings.ini 2014-11-09 21:37:49.000000000 +0200 -@@ -3874,6 +3874,12 @@ +@@ -3915,6 +3915,12 @@ def = false cat = SC_EXPERT Modified: head/games/openttd/pkg-plist ============================================================================== --- head/games/openttd/pkg-plist Tue Apr 7 01:39:11 2015 (r383487) +++ head/games/openttd/pkg-plist Tue Apr 7 02:49:01 2015 (r383488) @@ -7,6 +7,7 @@ share/pixmaps/openttd.32.xpm %%DATADIR%%/ai/compat_1.2.nut %%DATADIR%%/ai/compat_1.3.nut %%DATADIR%%/ai/compat_1.4.nut +%%DATADIR%%/ai/compat_1.5.nut %%DATADIR%%/baseset/no_music.obm %%DATADIR%%/baseset/no_sound.obs %%DATADIR%%/baseset/openttd.grf @@ -49,6 +50,7 @@ share/pixmaps/openttd.32.xpm %%DATADIR%%/lang/japanese.lng %%DATADIR%%/lang/korean.lng %%DATADIR%%/lang/latvian.lng +%%DATADIR%%/lang/latin.lng %%DATADIR%%/lang/lithuanian.lng %%DATADIR%%/lang/luxembourgish.lng %%DATADIR%%/lang/malay.lng