From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +K0WEXhwJ2fD3wAAqHPOHw:P1 (envelope-from ) for ; Sun, 03 Nov 2024 12:45:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +K0WEXhwJ2fD3wAAqHPOHw (envelope-from ) for ; Sun, 03 Nov 2024 13:45:44 +0100 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=qVLR6hzC; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=lbnVtWbu; 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=1730637944; 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=zD2SIVXRnVwOmEqzQS3uWeG1DiMWzZRior8e78W0G+w=; b=qL33njJEo4LCPSfvINSYXIT3HUpe6zXKwKZVYVUwokyiA8b7Rsh7LR74Bprua42+k3xC+R R/bIm6FJjZHc2rgas7agmq9iiIilEj6ItYY8xUJZiGk+7P/z47WT9NuLT1yZN5Lv8DZW+1 Wa9dd9T93n6U9gJeiBhpyWKa2A4rA3oG8Ny+BStuYhiHB8xZY0/LPXGj5JTkO3GJA5cuua /GF57mDrD2ghplrOtS46mJzZilHxJlPWY7zwJGoQ2aYcn8oNlbwOTW88v9cd9vrylQZSHk k8OVbPeXIfy2AiHnj8UmYeKvGD/gHheuXr5YR/96VRSZavh0XRyDJnVulcdKuw== 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=qVLR6hzC; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=lbnVtWbu; 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=1730637944; a=rsa-sha256; cv=none; b=VejqP6BiKAU39lJVJL1I/AlpFQjLZFsm2iUrhq44cB4wFQTT+q/K825ANqZPiS5KD2QFmV ySBaOAN8xp3w23lq7oEXQv2NlGxKdYIn2WiaUeG86gd9W0rmCRf1t0Q/Zz5i3RKQKqMKJo 4lIdqJ3JhLwlI/tMHe0CG4RPFI9cgdxiD6xGr/vWduGNSdOIzjnceUpdxea1fUTcQQcxM3 fREZ8Au18B6udNlMoKe5WXAR2aIlrNISgaRN2/a2vHo0sDauOOpm1dC7NF/qZNTKI29sIT fyI0YiOh0N7IN93AvTWcWLiEb79G+M/ZKCYi9VQ3QZ25uYpnbVb+11rL02ZkaA== 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 67F6085D7A for ; Sun, 03 Nov 2024 13:45:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7Zyh-0006Ep-TP; Sun, 03 Nov 2024 07:45:12 -0500 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 1t7Zyd-0006BE-0O for guix-patches@gnu.org; Sun, 03 Nov 2024 07:45:08 -0500 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 1t7Zyb-00022q-Ne for guix-patches@gnu.org; Sun, 03 Nov 2024 07:45:06 -0500 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=zD2SIVXRnVwOmEqzQS3uWeG1DiMWzZRior8e78W0G+w=; b=qVLR6hzCBchEmxZdqtqNjBnC5O/WD+VbnnezRq5ufvQz+o8WXZ+r84XDn+KELqwIfJprcU7IrcEvVeovC52AJFPwPVvdL6hD6cxcYfdYqs949O8HQSDRFHTFh5NqV1NjiA2sWKFxgtpGHolEeDGIYq0sDgcAY2jDEY0WCJCLRLvEarWgYlFE1ovOovSxk2s4yoTH+1OY8RROAlPz7RtvTnHqU3g13JltVPxG+tDgRiAcbGAbhiQCjQZiDOe7DJHjY9OFiG35IM+K302UyL2HKlj/JFRel7DroGsbnwI4RZv5pQaukE9tbW23aBaMKDfK0HFDSoFvq6fresuNSuYcdQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t7ZyY-0005iP-RJ; Sun, 03 Nov 2024 07:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#73287] [PATCH v3 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: Sun, 03 Nov 2024 12:45:02 +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.173063786021919 (code B ref 73287); Sun, 03 Nov 2024 12:45:02 +0000 Received: (at 73287) by debbugs.gnu.org; 3 Nov 2024 12:44:20 +0000 Received: from localhost ([127.0.0.1]:60208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7Zxs-0005hT-0I for submit@debbugs.gnu.org; Sun, 03 Nov 2024 07:44:20 -0500 Received: from layka.disroot.org ([178.21.23.139]:44318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t7Zxo-0005hH-Pf for 73287@debbugs.gnu.org; Sun, 03 Nov 2024 07:44:18 -0500 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 61AC825245; Sun, 3 Nov 2024 13:44:16 +0100 (CET) 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 4H8CxYe0qKIV; Sun, 3 Nov 2024 13:44:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1730637852; bh=eAdseQsPTrTyFmhq6LEiucYtLZA31jJVsAJnuvs+Bz0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=lbnVtWbuYqs6QVoIvBgmA5Qop5PbqbN+4vS2OWM0wT3u35f9SFoQZHoABGoyt+PPO IDdsknBH6MEEKCGd9Oz/VQQLID60O85e3K4M0Bm7W4omSe/Q10tXq5I86afDj0LwAA QnnUonmrBI9NIbG/DQARIf11AR5GW0WDoSHMGp2N1XLuDfu/2ZxoAtL9uE736CRbYa XcxUi6DJKuR2krmgc4g9RGI1HTrC7D3tJTLvD6z+JWELtQA9neNQn4X4ZiD3x7NbDo rXSp+z1gpG3S1U7ItRj3BKPXb6vrlaOAGfDbE1DHrnOKyPetbe2Fu2FJI2hpJdye0t JW8RW1j3mAkCA== Date: Sun, 3 Nov 2024 05:39:46 -0700 Message-ID: <03e5be8ee5905376f9caa04c117de8edb9a41aa8.1730611534.git.jsubuntuxp@disroot.org> 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 2.05 X-Spam-Score: 2.05 X-Migadu-Queue-Id: 67F6085D7A X-TUID: qErE4eOCmgTv * 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 7d168151d2..1c40fac0e2 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-build) @@ -122,6 +125,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) @@ -679,6 +683,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, Hexen 2, as well as +other games. TrenchBroom provides many simple and advanced tools to create +complex and interesting levels.") + (license license:gpl3+))) + (define-public tsukundere (package (name "tsukundere") -- 2.46.0