From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id KCTLLmOV52Yl+AAAqHPOHw:P1 (envelope-from ) for ; Mon, 16 Sep 2024 02:18:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id KCTLLmOV52Yl+AAAqHPOHw (envelope-from ) for ; Mon, 16 Sep 2024 04:18:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=k0b6BmUZ; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="hZKJ/lz2"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726453091; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qu9MRX2p6DxzfN3r79dKqkNgb+wm8Y8v5wh5vua/TcI=; b=gRsOeqKHvFj9BGEZIhjUv5gwxIVI37a092anftRG6qccGbAkiP/+wV5ZlNPg2WSbWDxFmG 3TCMwCZ9bxEZBoG/K7/sPBKD316OEoA7/6S44L7MfXaXEC5v4ZPA5vpnIBZxC5tp8g1m/t WJegSho92hiA0cQrrnAMNT82NDw5jNZOhDg1bw3vv4EuYQDomvEa4S+fKUgSXJDTudOfLE 7M+t0tOdsdmlNrXSvwaTtVuIWRGDqjfKtnhrDya2tZ89DIiuYtLF3XMXkkbvQslfOpUg9g W41XcwWEvpAl1NhKJ0y/lT6IdxoHoMs3D89dnQpusAjikB+/3RnUDZH5YP4pxQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=k0b6BmUZ; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="hZKJ/lz2"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726453091; a=rsa-sha256; cv=none; b=HHwClKvQhVRvPqiuCP3R+LRDBjeGUGjgjV+8L/Ltg2TzgKTEidSWYMP5T3RKozPLzsEQ9m Rl7ZJfWX4OsB2T0e0F8U8DaGKbjVtabC7hYAvSqJN3HbDjrqKL8GaaTsd/DxlcD/Lrmr6x FtNggIoZMMEUeIXnSPh/DIcf0qNvmOtai8G5sXB+oqVjxOUVdsWygnZCxrXNfZ2gWGJkZl J5x8Jnk9AFJB62kseFlEfx+86I5g6VztA6mTk/+jNfY+wUFzlQTQWcA0O+ftec/1qA+Vru ISo958MXcU2RZHN99njOv2p/1HAUea6Q3UCxH6INvIwa7WCPmuYKjdq7gUn8Jg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 64E8EDF5B for ; Mon, 16 Sep 2024 04:18:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sq1JJ-0002Co-9W; Sun, 15 Sep 2024 22:17:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sq1JI-0002Ce-55 for guix-patches@gnu.org; Sun, 15 Sep 2024 22:17:52 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sq1JH-00072u-T3 for guix-patches@gnu.org; Sun, 15 Sep 2024 22:17:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=qu9MRX2p6DxzfN3r79dKqkNgb+wm8Y8v5wh5vua/TcI=; b=k0b6BmUZ+0+WutfNgByWwm7NG46Oj0jb0CoTJXXzjkj4uokgyu/0BYNIkwKVc8sTHLAXaQU3BCo80pXbDfefrvaV84UrsUrm7vCnvYZEF12KSjwk/NHB4imQVw6LbRJedUdiJqpYoAGUshSN86Yp8p3yI24Oq3336fYG3fsKd49UViS2ytGiu56iwdUvdhdtUGwmGZLIx4H3yv9VYCxiMenMQhEkMClUCigTeLXoyp62WMkNV6P3ua54HjBdUJ7f1+8tRJ2F4hmDWZhIODvy0Y3tJJ/ChnsiFHz3bda4DqJwThKCFcn+9Q3xb/MZLU6gq8s0nMKFCampwENP41Bkpw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sq1JT-0005Hb-Fk; Sun, 15 Sep 2024 22:18:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73287] [PATCH 3/3] gnu: Add trenchbroom. Resent-From: James Smith Original-Sender: "Debbugs-submit" Resent-CC: adam.faiz@disroot.org, liliana.prikler@gmail.com, iyzsong@envs.net, guix-patches@gnu.org Resent-Date: Mon, 16 Sep 2024 02:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73287 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73287@debbugs.gnu.org Cc: James Smith , Adam Faiz , Liliana Marie Prikler , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-Xcc: Adam Faiz , Liliana Marie Prikler , =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Received: via spool by 73287-submit@debbugs.gnu.org id=B73287.172645304720233 (code B ref 73287); Mon, 16 Sep 2024 02:18:03 +0000 Received: (at 73287) by debbugs.gnu.org; 16 Sep 2024 02:17:27 +0000 Received: from localhost ([127.0.0.1]:50770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sq1Is-0005GF-Cs for submit@debbugs.gnu.org; Sun, 15 Sep 2024 22:17:27 -0400 Received: from layka.disroot.org ([178.21.23.139]:43850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sq1Iq-0005G0-A0 for 73287@debbugs.gnu.org; Sun, 15 Sep 2024 22:17:25 -0400 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2B18723D33; Mon, 16 Sep 2024 04:17:11 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id NWXELMUtSckp; Mon, 16 Sep 2024 04:17:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1726453030; bh=hxSaBjKBpH3cPYhvS7UrKapDDHOJ+e32vRCedvmA6p0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hZKJ/lz2UNX4OSzXKtWl8CrV1QVSRrl9siFwUVMM0DK9x57k+y6fOPLwzn0isQpGx BTvgAkIxRTcUvK4NTza7+7LNJ2L3U19clMl8W85gGPKUExknT6qMRelx2NLAOpDtWI ijuNAySKGWhGLMzzZxoE5d7fIZLIT4H9kzwISBMXok4ARl/amFFJtXvMIND75AT3yA tzyjq/S1k2gBgh2X34/dzQPbkw6thvxgJf/H6jt6R3GgtZeLTycaD8mGnCwTwLF4OW f+bPYyyR9JeWWScbIKTsQTMpZcY3/NtZj5EPwSxv4qCgtWsHwLRnAg/ZyyX4JBwBwW bRmlM3b7LRo7g== Date: Sun, 15 Sep 2024 19:16:24 -0700 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: James Smith X-ACL-Warn: , James Smith via Guix-patches From: James Smith via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.91 X-Spam-Score: -2.91 X-Migadu-Queue-Id: 64E8EDF5B X-Migadu-Scanner: mx10.migadu.com X-TUID: +uDsLagmtOoy * gnu/packages/game-development.scm: (trenchbroom): New variable. Change-Id: I50691b1db2010cd8c2c7f04bdfd80278b9e14aed --- gnu/packages/game-development.scm | 93 +++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index d61b4d633a..abc144f535 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -91,12 +91,14 @@ (define-module (gnu packages game-development) #:use-module (gnu packages graphviz) #:use-module (gnu packages gtk) #:use-module (gnu packages guile) + #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages icu4c) #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) #:use-module (gnu packages lua) #:use-module (gnu packages m4) + #:use-module (gnu packages maths) #:use-module (gnu packages mp3) #:use-module (gnu packages multiprecision) #:use-module (gnu packages music) @@ -104,6 +106,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages networking) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages pretty-print) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages python-crypto) @@ -121,6 +124,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages texinfo) #:use-module (gnu packages textutils) #:use-module (gnu packages tls) + #:use-module (gnu packages version-control) #:use-module (gnu packages video) #:use-module (gnu packages vulkan) #:use-module (gnu packages web) @@ -674,6 +678,95 @@ (define-public tiled ;; under BSD-2. (license license:gpl2+))) +(define-public trenchbroom + (package + (name "trenchbroom") + (version "2024.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/TrenchBroom/TrenchBroom") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xysz7rkjy11wp9sshdqllmlw8qb65f1zlljpw3q22483szwzxnb")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags + #~(list "-DCMAKE_BUILD_TYPE=Release" "-G" "Unix Makefiles" + "-DCMAKE_PREFIX_PATH=cmake/packages" + (string-append "-DFREEIMAGE_INCLUDE_PATH=" + #$freeimage "/include") + (string-append "-DFREEIMAGE_LIBRARY=" + #$freeimage "/lib/libfreeimage.so") + (string-append "-Dfreetype_INCLUDE_DIR=" + #$freetype "/include/freetype2") + (string-append "-Dfreetype_LIBRARY=" + #$freetype "/lib/libfreetype.so")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-build-system + (lambda _ + (substitute* "CMakeLists.txt" + (("set\\(CMAKE_TOOLCHAIN_FILE") + "#set(CMAKE_TOOLCHAIN_FILE")) + (substitute* "app/CMakeLists.txt" + (("/usr") #$output)))) + (add-before 'build 'set-environment-variables + (lambda _ + ;; Set home so fontconfig can write cache. + (setenv "HOME" (getenv "TEMP")) + ;; Set QT platform for offscreen rendering. + (setenv "QT_QPA_PLATFORM" "offscreen") + (setenv "XDG_RUNTIME_DIR" (getenv "TEMP")))) + (add-after 'install 'wrap-trenchbroom + (lambda _ + (wrap-program (string-append #$output "/bin/trenchbroom") + ;; TrenchBroom needs $XDG_DATA_DIRS set to find game + ;; configs. + `("XDG_DATA_DIRS" ":" prefix + (,(string-append #$output "/share"))) + ;; TrenchBroom also doesn't work well with Wayland backend. + '("QT_QPA_PLATFORM" = ("xcb"))))) + (add-after 'install 'install-desktop-file + (lambda _ + (make-desktop-entry-file + (string-append #$output "/share/applications/" + #$(package-name this-package) ".desktop") + #:name "TrenchBroom" + #:comment #$(package-synopsis this-package) + #:exec #$name + #:icon #$name + #:categories '("Development") + #:keywords '("quake" "level" "editor"))))) + #:tests? #f)) ; No tests. + (inputs + (list assimp + bash-minimal + catch2 + fmt + freeglut + freeimage + freetype + glew + glm + glu + libxxf86vm + mesa + miniz + qtbase-5 + qtsvg-5 + tinyxml2)) + (native-inputs (list git pandoc python p7zip)) + (home-page "https://kristianduske.com/trenchbroom/") + (synopsis "Cross-platform level editor for Quake-engine based games") + (description "TrenchBroom is a cross-platform level editor for Quake-engine +based games. It supports Quake, Quake 2, and Hexen 2. TrenchBroom is easy and +provides many simple and advanced tools to create complex and interesting levels +with ease.") + (license license:gpl3+))) + (define-public tsukundere (package (name "tsukundere") -- 2.46.0