From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EAlSCM25zGBpIAAAgWs5BA (envelope-from ) for ; Fri, 18 Jun 2021 17:20:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id SGr+A825zGB4KQAAbx9fmQ (envelope-from ) for ; Fri, 18 Jun 2021 15:20:45 +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 7BBDD11070 for ; Fri, 18 Jun 2021 17:20:44 +0200 (CEST) Received: from localhost ([::1]:51416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1luFzk-0004Wv-9c for larch@yhetil.org; Fri, 18 Jun 2021 11:01:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60618) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luFzT-0004Uu-1X for guix-patches@gnu.org; Fri, 18 Jun 2021 11:01:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46051) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1luFzS-0007hp-Mh for guix-patches@gnu.org; Fri, 18 Jun 2021 11:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1luFzS-00014W-MW for guix-patches@gnu.org; Fri, 18 Jun 2021 11:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49090] [PATCH] gnu: Add blastem. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Jun 2021 15:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49090 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49090@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16240284254065 (code B ref -1); Fri, 18 Jun 2021 15:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jun 2021 15:00:25 +0000 Received: from localhost ([127.0.0.1]:57597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luFyq-00013V-Lq for submit@debbugs.gnu.org; Fri, 18 Jun 2021 11:00:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:38214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1luFyo-00013N-EH for submit@debbugs.gnu.org; Fri, 18 Jun 2021 11:00:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luFyl-00042C-CV for guix-patches@gnu.org; Fri, 18 Jun 2021 11:00:19 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:48110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1luFyg-00076c-Uh for guix-patches@gnu.org; Fri, 18 Jun 2021 11:00:18 -0400 Received: from localhost.localdomain (62-116-34-49.adsl.highway.telekom.at [62.116.34.49]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4G62CW6wQGz3xq1 for ; Fri, 18 Jun 2021 17:00:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1624028408; bh=kZ0fVSF3qBO6h8TLwLjJKqq35L/XDGxUTlkyaDcSpZw=; h=From:To:Subject:Date; b=BxyTz17QjV/dc+X5F6qUaQna1rYmx2ReAsn20EbFAQdV7WALYB2kne2hb1e4TYjwA 6WkwSoHyIVUKRmtB8mi+tO08o8wMlxTMtoyMmQT3s7drulz3f5Su8GF/xVmu6Kb2W7 XWhlccj5gUTvOcj7ljkxUVuppWc2L4zhPRbYhBU8= From: Leo Prikler Date: Fri, 18 Jun 2021 16:59:27 +0200 Message-Id: <20210618145926.6952-1-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 Received-SPF: pass client-ip=129.27.2.202; envelope-from=leo.prikler@student.tugraz.at; helo=mailrelay.tugraz.at X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624029644; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kZ0fVSF3qBO6h8TLwLjJKqq35L/XDGxUTlkyaDcSpZw=; b=VT2s/7DjPGL6TP3DFHvM2f84t1/0DGVAUW2DmhDtTTWs6y+t+NKdeq9vFgBV8fgbouzToO MnfTEPFPZfhSxf+GFN+4fwPYAqU3/1FnWnGdgL8CXwtQnfcxkwWiV1f00A4wZbxRu41Xi4 /kytwjFScUAKhCt3jc1UDGRxDhKoA538W+Sy7Adiiwajz7dCSP9iLqP2fC/eWy+Ej8SaCj S5v9tm/2/fe7/MbkaKvKhv8oPdGAlO91WxuPsN8j3A+8cIDk2itkT8I1gX1hsZNbUsZW9q PmaUUl+xjL5y0DDy0VeZ47XN1hpc/AZ5DZ2WoIkl43KaDiRaLoEJSS5Z5uoqwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624029644; a=rsa-sha256; cv=none; b=GDoiYbD0V8O+yPiuD0KnyfKgITvPSMSK8tyiaHH0qU4t7gFitD9cawTG6hRnBGL2+0oQ1f JPxtYwWMRqIOYfX3Qwq9kVlFsOFVsYafgZRIqfrCxZdlKV6MzqNvgjNEzhn2D2TavlFPXo otU8ZEX678zIR47wNuFjJYM1JjS7jyk8H+VJs1OBrp8TJOqDz/920Ctd3wP0Vgy5yrNLl2 H1VrEMt4cQg/KUa8Pi4EoDNQ4DynuV4yGZyE4o2SjCe4ShYL6TKxQMITw1gI1SmZP4y+AC NDg/NQ9gi1nzYwBSbasdjZ++PNhZx58eyqgXFMDYGXO3v2XmXHSr2/cXz21bdQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=BxyTz17Q; 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-Migadu-Spam-Score: 5.17 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=BxyTz17Q; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (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-Migadu-Queue-Id: 7BBDD11070 X-Spam-Score: 5.17 X-Migadu-Scanner: scn1.migadu.com X-TUID: EFDaVYSB2uDv * gnu/packages/emulators.scm (blastem): New variable. --- gnu/packages/emulators.scm | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index ec8d3d21d6..1f1e726d8d 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -39,6 +39,7 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix svn-download) + #:use-module (guix hg-download) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages algebra) @@ -141,6 +142,72 @@ C610/C510). An extra emulator is provided for C64 expanded with the CMD SuperCPU.") (license license:gpl2+))) +(define-public blastem + (package + (name "blastem") + (version "0.6.2") + (source (origin + (method hg-fetch) + (uri (hg-reference + (url "https://www.retrodev.com/repos/blastem") + (changeset (string-append "v" version)))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "08ycfisivh9rb9vmijlrpdryaw8spd81ck48960p15cnf8h2535q")) + (modules '((guix build utils))) + (snippet + '(begin + ;; TODO: Separately package and unbundle nuklear + (delete-file-recursively "zlib"))))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list (string-append "CC=" ,(cc-for-target)) + "HOST_ZLIB=1" + "HAS_PROC=-DHAS_PROC" + (string-append "CONFIG_PATH=" + %output "/share/blastem") + (string-append "DATA_PATH=" + %output "/share/blastem")) + #:tests? #f ; No check target and custom tests don't seem to build + #:imported-modules + ((guix build copy-build-system) + ,@%gnu-build-system-modules) + #:modules + (((guix build copy-build-system) + #:prefix copy:) + (guix build gnu-build-system) + (guix build utils)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-source + (lambda _ + (substitute* (find-files "." ".*\\.[ch]") + (("\"zlib/zlib.h\"") "")))) + (delete 'configure) + (replace 'install + (lambda* args + (apply (assoc-ref copy:%standard-phases 'install) + #:install-plan + '(("." "bin" #:include ("blastem" "vgmplay")) + ("." "share/blastem" + #:include ("default.cfg" "rom.db") + #:exclude ("android")) + ("shaders" "share/blastem/shaders")) + args)))))) + (inputs + `(("glew" ,glew) + ("mesa" ,mesa) + ("sdl2" ,sdl2) + ("zlib" ,zlib))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://www.retrodev.com/blastem/") + (synopsis "Genesis/Mega Drive emulator") + (description "Blastem is an emulator for the Sega Genesis/Mega Drive +console.") + (license license:gpl3+))) + (define-public desmume (package (name "desmume") -- 2.32.0