From owner-svn-ports-all@freebsd.org Sat Feb 23 15:09:37 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3A2E1518FE3; Sat, 23 Feb 2019 15:09:36 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 828BB8E757; Sat, 23 Feb 2019 15:09:36 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4C97F1EF60; Sat, 23 Feb 2019 15:09:36 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x1NF9avA088977; Sat, 23 Feb 2019 15:09:36 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x1NF9ZQT088975; Sat, 23 Feb 2019 15:09:35 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201902231509.x1NF9ZQT088975@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Sat, 23 Feb 2019 15:09:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r493684 - in head/games/xray_re-tools: . files X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/games/xray_re-tools: . files X-SVN-Commit-Revision: 493684 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 828BB8E757 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 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: Sat, 23 Feb 2019 15:09:37 -0000 Author: danfe Date: Sat Feb 23 15:09:35 2019 New Revision: 493684 URL: https://svnweb.freebsd.org/changeset/ports/493684 Log: - Mute service target after it was debugged and works as intended - Amend the COMMENT line and port description, add missing articles - Fix several (mostly harmless) bugs reported by PVS Studio Added: head/games/xray_re-tools/files/patch-sources_xray__re_xr__packet.h (contents, props changed) Modified: head/games/xray_re-tools/Makefile head/games/xray_re-tools/pkg-descr Modified: head/games/xray_re-tools/Makefile ============================================================================== --- head/games/xray_re-tools/Makefile Sat Feb 23 15:04:25 2019 (r493683) +++ head/games/xray_re-tools/Makefile Sat Feb 23 15:09:35 2019 (r493684) @@ -6,7 +6,7 @@ DISTVERSION= g20180902 CATEGORIES= games converters MAINTAINER= danfe@FreeBSD.org -COMMENT= X-Ray engine assets converter (unofficial) +COMMENT= X-Ray engine game asset converter (unofficial) LIB_DEPENDS= liblzo2.so:archivers/lzo2 \ libvorbisfile.so:audio/libvorbis \ @@ -34,6 +34,14 @@ post-patch: ${WRKSRC}/sources/utils/converter/opcode/OPC_IceHook.h @${REINPLACE_CMD} -e 's,string& version,string version,' \ ${WRKSRC}/sources/utils/converter/level_tools.cxx + @${REINPLACE_CMD} -e '19s,attenuation1,attenuation2,' \ + ${WRKSRC}/sources/xray_re/xr_d3d_light.cxx + @${REINPLACE_CMD} -e '/OGF3_S_SMPARAMS_VERSION/s,||,\&\&,' \ + ${WRKSRC}/sources/xray_re/xr_ogf_v3.cxx + @${REINPLACE_CMD} -e 's,mP0,mP1,' \ + ${WRKSRC}/sources/utils/converter/opcode/Ice/IceLSS.h + @${REINPLACE_CMD} -e 's,} if,} else if,' \ + ${WRKSRC}/sources/utils/converter/level_mesh_ladders.cxx @${REINPLACE_CMD} -e 's,push_back,this->&,' \ ${WRKSRC}/sources/xray_re/xr_influence.h @${REINPLACE_CMD} -e 's,type_info& type,std::&,' \ @@ -52,7 +60,7 @@ do-install: # Alternative to DOS2UNIX_FILES that preserves original timestamps, # to be used together with `-l' switch added to PATCH_ARGS below. fixpatches: - ${FIND} ${FILESDIR} -name patch-* | ${XARGS} ${SED} -i '' \ + @${FIND} ${FILESDIR} -name patch-* | ${XARGS} ${SED} -i '' \ -E 's,[[:cntrl:]]*$$,,' .include Added: head/games/xray_re-tools/files/patch-sources_xray__re_xr__packet.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/xray_re-tools/files/patch-sources_xray__re_xr__packet.h Sat Feb 23 15:09:35 2019 (r493684) @@ -0,0 +1,20 @@ +--- sources/xray_re/xr_packet.h.orig 2018-09-02 12:42:44 UTC ++++ sources/xray_re/xr_packet.h +@@ -180,14 +180,14 @@ inline void xr_ini_packet::w_seq(std::vector + } + + template inline void xr_ini_packet::write(const T& value){ +- int n = xr_snprintf(m_key_buffer, sizeof(m_key_buffer), "%06d", ++m_counter); ++ xr_snprintf(m_key_buffer, sizeof(m_key_buffer), "%06d", ++m_counter); + w->write(m_key_buffer, value); + w_seek(w_tell() + sizeof(T)); + } + + template inline void xr_ini_packet::write_number(const T& value){ +- int n = xr_snprintf(m_key_buffer, sizeof(m_key_buffer), "%06d", ++m_counter); +- n = xr_snprintf(m_temp_buffer, sizeof(m_temp_buffer), "%d", value); ++ xr_snprintf(m_key_buffer, sizeof(m_key_buffer), "%06d", ++m_counter); ++ xr_snprintf(m_temp_buffer, sizeof(m_temp_buffer), "%d", value); + w->write(m_key_buffer, m_temp_buffer, false); + w_seek(w_tell() + sizeof(T)); + } Modified: head/games/xray_re-tools/pkg-descr ============================================================================== --- head/games/xray_re-tools/pkg-descr Sat Feb 23 15:04:25 2019 (r493683) +++ head/games/xray_re-tools/pkg-descr Sat Feb 23 15:09:35 2019 (r493684) @@ -1,9 +1,10 @@ Portable (POSIX) subset of the X-Ray unofficial toolset used for modding the S.T.A.L.K.E.R. game series by GSC Game World. Currently includes standalone -converter utility which is useful for casual gamers to unpack game resources. +converter utility which is useful for casual gamers to unpack game resources +in order to adjust various game parameters. -Usage examples, first for Russian release version of Shadow of Chernobyl and -second for Clear Sky and Call of Pripyat: +Usage examples, the first for Russian release version of Shadow of Chernobyl +and the second for Clear Sky and Call of Pripyat: $ xr_converter -unpack /path/to/gamedata.db0 -2947ru -dir ./put_it_here $ xr_converter -unpack /path/to/resources.db0 -xdb -dir ./put_it_here