From nobody Tue Mar 15 11:50:40 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 469FF1A14B40; Tue, 15 Mar 2022 11:50:41 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KHsDK1Fm8z3LFj; Tue, 15 Mar 2022 11:50:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647345041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QP4MT41WcK4I3QGzbC4zrpWwiumY1zg2I8jHW4iCme0=; b=nXoEWAtziFmJ4vewF+xjpfxkC/HVSw76m/9gqHatZ+LK249P6yS1O1JYnj9U0E1XGBsQKO rJ6z+/IhEHatcdqVZ3nGIn8Se+iYt131th8X2WPqpkPClC0ZNGN0r6QoEkt8G5Foq7FWFs 84c+Hsms5zigTj8x19Nlq0JIxYlXEHqpCppWz6Mj1CJEX7ANLA5gZmVf9VKAd5JjLwCWI0 qwCxAqC7w5x8dYpGuyvX39tb3myzlpdGMdUn1wAkoeZMiwlissE5rmQhF+G7P9j9rAya3U Qj0iGKOZbESi0yK+TVEUpdAjwrKnGnY1yqoAlZlOjf9NdxJWn6/ouSWguMMVmw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 0CCE021225; Tue, 15 Mar 2022 11:50:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22FBoeHw059110; Tue, 15 Mar 2022 11:50:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22FBoeCu059109; Tue, 15 Mar 2022 11:50:40 GMT (envelope-from git) Date: Tue, 15 Mar 2022 11:50:40 GMT Message-Id: <202203151150.22FBoeCu059109@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: 157ae5bb91f7 - main - games/widelands: add NLS option List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 157ae5bb91f76b01a33fb770445b67534363dd34 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647345041; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QP4MT41WcK4I3QGzbC4zrpWwiumY1zg2I8jHW4iCme0=; b=xSrR1Vg825nqVG4ZPq9R/qMUuBT/KyqvyZXdc1lt5Rpy12X3IJaQSxjuijcRSar/SJFaZR 7vhoa7FVElFhHeLrkXrKdjs+KpsSCaq/tYkcnATcBcXNBFRKljodjvXWFRLJtOV9txkBqJ F2XC5m/O5CFVFJO0QlMR6xMYKVg0cD5Nu+a3ZqlgUkMwFJWIbpmd+zAXSo5qF2xSq+tXVX ImoS8moLl5pWEtO8Xe6xFnswVFQ0dGT0fFqJmG6B7gEM+d5WZDFv7rx7WTJpY+3g0perCL 5d5ra/PVP0aO/Vnxw76dZZls3juq/YWobBAUqCsysuaaydXHSosLAHNDbnziLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647345041; a=rsa-sha256; cv=none; b=XoTdigY6Ezs6ti8kmnvs0elnCDNz2X5rfxLh8ZgK+sK9rS98sfcucKyvPGwFcpmvdZrkT/ y5oSadfV82DG10BKuTbT9txXtx8A7yGlM9zZK6AGPSnpDLhPCM+5wQKRzoEuEYSRG9ssTz Cd8hjqW++9XWEdy4P7/HluQJMKgy17ANS9JOeBLjwcbWIcma82EN6OFxQwqHvXyUOma4Gc vRUDGCfsQ1ywPazjvKxnXsjRN549VhLzt+gMyWGCgykPEodJkc0oo2oNUa0R25ftBbIQ12 JtjUxQD3Z9kD/ZjjdA90o8FuhYvLjif/Gjx9BxOttBI0gJHTeUHGGQCoYi3h6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=157ae5bb91f76b01a33fb770445b67534363dd34 commit 157ae5bb91f76b01a33fb770445b67534363dd34 Author: Dmitry Marakasov AuthorDate: 2022-03-14 19:25:40 +0000 Commit: Dmitry Marakasov CommitDate: 2022-03-15 11:50:05 +0000 games/widelands: add NLS option --- games/widelands/Makefile | 3 ++- games/widelands/files/patch-CMakeLists.txt | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/games/widelands/Makefile b/games/widelands/Makefile index 2222c3eacf5f..606629812a1a 100644 --- a/games/widelands/Makefile +++ b/games/widelands/Makefile @@ -30,10 +30,11 @@ CMAKE_ARGS= -DWL_INSTALL_BASEDIR="${PREFIX}" \ PORTDATA= * PORTDOCS= * -OPTIONS_DEFINE= DOCS LTO TEST +OPTIONS_DEFINE= DOCS LTO NLS TEST OPTIONS_DEFAULT=LTO LTO_CMAKE_ON= -DUSE_FLTO_IF_AVAILABLE:STRING="yes" +NLS_CMAKE_BOOL= OPTION_BUILD_TRANSLATIONS TEST_CMAKE_BOOL=OPTION_BUILD_TESTS post-patch: diff --git a/games/widelands/files/patch-CMakeLists.txt b/games/widelands/files/patch-CMakeLists.txt index 855e522366d1..b72857536aa1 100644 --- a/games/widelands/files/patch-CMakeLists.txt +++ b/games/widelands/files/patch-CMakeLists.txt @@ -124,3 +124,19 @@ CONFIGURATIONS Debug COMPONENT DocFiles PATTERN "CMakeLists.txt" EXCLUDE +@@ -482,6 +436,7 @@ install( + + set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${WL_INSTALL_DATADIR}/locale) + ++if(OPTION_BUILD_TRANSLATIONS) + install( + DIRECTORY + ${CMAKE_CURRENT_BINARY_DIR}/locale/ +@@ -489,6 +444,7 @@ install( + CONFIGURATIONS Debug;Release + COMPONENT CoreLanguageFiles + ) ++endif() + + if (UNIX AND NOT APPLE) + add_subdirectory(xdg)