From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4DPiMfXriV9CUgAA0tVLHw (envelope-from ) for ; Fri, 16 Oct 2020 18:52:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6AanLfXriV+gJAAA1q6Kng (envelope-from ) for ; Fri, 16 Oct 2020 18:52:37 +0000 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 37A2C94051E for ; Fri, 16 Oct 2020 18:52:37 +0000 (UTC) Received: from localhost ([::1]:49556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTUqA-0000u4-Qu for larch@yhetil.org; Fri, 16 Oct 2020 14:52:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTUit-0003IM-Gp for guix-patches@gnu.org; Fri, 16 Oct 2020 14:45:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49287) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTUis-0002Sk-OA for guix-patches@gnu.org; Fri, 16 Oct 2020 14:45:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTUis-0003Nl-I4 for guix-patches@gnu.org; Fri, 16 Oct 2020 14:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44039] [PATCH] gnu: Add slade. Resent-From: James Smith Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Oct 2020 18:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44039 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44039@debbugs.gnu.org Cc: James Smith X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160287385312926 (code B ref -1); Fri, 16 Oct 2020 18:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Oct 2020 18:44:13 +0000 Received: from localhost ([127.0.0.1]:60833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTUi0-0003MJ-4X for submit@debbugs.gnu.org; Fri, 16 Oct 2020 14:44:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:50534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTUhy-0003MC-Il for submit@debbugs.gnu.org; Fri, 16 Oct 2020 14:44:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTUhy-0002EJ-8X for guix-patches@gnu.org; Fri, 16 Oct 2020 14:44:06 -0400 Received: from knopi.disroot.org ([178.21.23.139]:54984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTUhv-0002OD-G3 for guix-patches@gnu.org; Fri, 16 Oct 2020 14:44:05 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3E98353611; Fri, 16 Oct 2020 20:43:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hGoIWXIYeruI; Fri, 16 Oct 2020 20:43:57 +0200 (CEST) From: James Smith DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1602873837; bh=37CvTQ9/PaqxE6hQWLU6U545Xi1TAekI+Thlk+jlG80=; h=From:To:Cc:Subject:Date; b=AFkFBWYjsHZ69cfF3ZZ5kQCdIUtZYasnE8n6i5U92OJBTIfOZQ2yD9AZFhB/XkEnU ganz9DoVJt93e6NKsqMRvFPDEvpBPfoGKbaK5w8XzEN/WXcUAmEUyrxHwOFOtX3KZj 3gqLvsHsCgFzn6gRaEfJY8KNIL5fA0tQxE+yg5ST/YoMDgh79u6PgkVNZZI2vNi1lx t/w6nSm7XWKwGDT3kvQeVp4ENrkFdFWQO63UvEiWzRVWxNJs8a7RjTYPCpLMJHIugM /dCUsbJpLfEzgogozPf2jxx9OP2w5LErxzwqkBLvOe0JVaWrTipFrAsSDfiu5EFLzk jkCcOw5W5IrmQ== Date: Fri, 16 Oct 2020 11:43:33 -0700 Message-Id: <20201016184333.1445-1-jsubuntuxp@disroot.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=jsubuntuxp@disroot.org; helo=knopi.disroot.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/16 14:43:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -0.1 (/) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=disroot.org header.s=mail header.b=AFkFBWYj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=disroot.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: jWtK+Tivy2Fo * gnu/packages/game-development.scm (slade): New variable. --- gnu/packages/game-development.scm | 56 ++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 96ed2f9da4..55d60d03a3 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020 Timotej Lazar ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2020 James Smith ;;; ;;; This file is part of GNU Guix. ;;; @@ -37,7 +38,7 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages game-development) - #:use-module (srfi srfi-1) + #:use-module ((srfi srfi-1) #:hide (zip)) #:use-module (ice-9 match) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -94,6 +95,7 @@ #:use-module (gnu packages tls) #:use-module (gnu packages video) #:use-module (gnu packages web) + #:use-module (gnu packages wxwidgets) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xiph) #:use-module (gnu packages xml) @@ -2505,3 +2507,55 @@ fully dynamic omnidirectional shadows, global illumination, HDR lighting, deferred shading, morphological / temporal / multisample anti-aliasing, and much more.") (license license:zlib)))) + +(define-public slade + (package + (name "slade") + (version "3.1.12a") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sirjuddington/SLADE") + (commit version))) + (sha256 (base32 "1q37pqibnrbdd7zjx7h2kfi0q9nc63cc96q9ya4x3fvsrf64n6yd")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags + (list "-DWX_GTK3=ON" "-DNO_WEBVIEW=ON" + (string-append "-DWITH_WXPATH=" + (assoc-ref %build-inputs "wxwidgets") "/bin") + (string-append "-DwxWidgets_LIBRARIES=" + (assoc-ref %build-inputs "wxwidgets") "/lib")) + #:phases + (modify-phases %standard-phases + (add-after 'install 'patch-gdk-backend + ;; Set GDK_BACKEND to x11 to prevent crash on Wayland. + ;; See https://github.com/sirjuddington/SLADE/issues/1097 for details. + (lambda* _ + (wrap-program + (string-append (assoc-ref %outputs "out") "/bin/slade") + `("GDK_BACKEND" "" = (,"x11"))) + #t))) + #:tests? #f)) + (inputs + `(("curl" ,curl) + ("fluidsynth" ,fluidsynth) + ("freeimage" ,freeimage) + ("ftgl" ,ftgl) + ("glew" ,glew) + ("gtk+" ,gtk+) + ("sfml" ,sfml) + ("wxwidgets" ,wxwidgets-3.1))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("which" ,which) + ("zip" ,zip))) + (home-page "https://slade.mancubus.net") + (synopsis "Doom game data editor") + (description "SLADE3 is a modern editor for Doom-engine based games and +source ports. It has the ability to view, modify, and write many different game- +specific formats, and even convert between some of them, or from/to other generic +formats such as PNG.") + (license license:gpl2))) -- 2.28.0