From patchwork Sat Dec 7 12:20:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosha X-Patchwork-Id: 34639 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6785C27BBEA; Sat, 7 Dec 2024 12:26:17 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D584627BBE2 for ; Sat, 7 Dec 2024 12:26:16 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tJts7-0003TP-Ax; Sat, 07 Dec 2024 07:25:19 -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 1tJts2-0003PN-Ug for guix-patches@gnu.org; Sat, 07 Dec 2024 07:25:14 -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 1tJts2-0001gr-Kz for guix-patches@gnu.org; Sat, 07 Dec 2024 07:25:14 -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=MARdPAoRjW4qCFBLo0RFX/lbAMid8y/YYYp3kB92liQ=; b=WQ5+Sy8u02mdXTFvutuvJanGy7EEiRD+FBEtWlhHi3tFLz2bUIJH+qWFYv3+6Ydbyf15KMTtYMmhVRcDoHQro6d6pbUEzXnRRW9MMei9DrXKjYuP+FkqSQWDqB3rijXTAuTS14iY5hnaTedVPnpS0T0TG1pq1FjdhFDKDIho1OOXUXTxE6Z4R2+kw1BClcE/737LejJLB1IuSA61fR8LyiUqLP5Msc5dcKRw7MJqT++tTEC3C8RcIeNe9ucHDMwV41+XGNfsBdavi3E29HLdhlv2Qe9fFSorVtdqmtTRuWXp2sL9zGRe0eZbRzq61iTxO6rm4ycFB0ZjFp3Zon1BLw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tJts2-0001rr-GG for guix-patches@gnu.org; Sat, 07 Dec 2024 07:25:14 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74723] [PATCH 18/19] gnu: Add lmms-1.3. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Dec 2024 12:25:14 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74723 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74723@debbugs.gnu.org Cc: Sughosha Received: via spool by 74723-submit@debbugs.gnu.org id=B74723.17335743107028 (code B ref 74723); Sat, 07 Dec 2024 12:25:14 +0000 Received: (at 74723) by debbugs.gnu.org; 7 Dec 2024 12:25:10 +0000 Received: from localhost ([127.0.0.1]:45772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtrx-0001p7-J7 for submit@debbugs.gnu.org; Sat, 07 Dec 2024 07:25:10 -0500 Received: from layka.disroot.org ([178.21.23.139]:34358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tJtru-0001oA-Dg for 74723@debbugs.gnu.org; Sat, 07 Dec 2024 07:25:07 -0500 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 062C625174; Sat, 7 Dec 2024 13:25:06 +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 UFDWQO81nydB; Sat, 7 Dec 2024 13:25:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1733574301; bh=y4dJgU7enbuUXCfTNP0ePPyv0YBnkDTYZfIvjeKmyUA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RUFGzlr93bhwUUkU43Ps0L4n7lwi1ISDy1xiie4y6jgnB48WaodZ8kEh7Luep1ye8 1pyysKoykcaVF6v+DD6msgvpNX8i/2wZCRLwYl5xmS6OqHA9oBSuRavQBSqaYlLVy3 u9J3TrH6D4fuqHg0ormyw43k8VtEygJWpvrWKIOffMbP536M6K9xHm+Ceb4ZY+TZtD jemhTqJxbfJ3uS5bdAETa1cORZcvCspWDJpcBIheDdx4ihrxs3hNw1Tn0PCA5s4qzw AO4k3+Omtk/x3Fs9ujSNF0XdThe3nean7MB9DMnKN14gkxSPbpU7YJ8lj5LFz5/wWm O54+aKOEUWJLw== Date: Sat, 7 Dec 2024 17:50:32 +0530 Message-ID: In-Reply-To: References: MIME-Version: 1.0 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: Sughosha X-ACL-Warn: , Sughosha via Guix-patches X-Patchwork-Original-From: Sughosha via Guix-patches via From: Sughosha Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/music.scm (lmms-1.3): New variable. Change-Id: Ia921c482948d6d18d88ef1cba3630a7994fac5a3 --- gnu/packages/music.scm | 84 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 5ec58119ff..42688f2eac 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -163,6 +163,7 @@ (define-module (gnu packages music) #:use-module (gnu packages llvm) #:use-module (gnu packages lua) #:use-module (gnu packages man) + #:use-module (gnu packages maths) #:use-module (gnu packages mp3) #:use-module (gnu packages mpd) #:use-module (gnu packages ncurses) @@ -213,6 +214,7 @@ (define-module (gnu packages music) #:use-module (gnu packages xiph) #:use-module (gnu packages xml) #:use-module (gnu packages xorg) + #:use-module (ice-9 match) #:use-module ((srfi srfi-1) #:select (last))) (define-public alsa-scarlett-gui @@ -5374,6 +5376,88 @@ (define-public lmms can receive input from a MIDI keyboard.") (license license:gpl2+))) +;;; This package variant tracks the latest in-development 1.3 release. +(define-public lmms-1.3 + (let ((commit "d9737881cf482e89969948f56da954cbf5c11aca") ;from master branch + (revision "0")) + (package/inherit lmms + (version (git-version "1.3.0-alpha.1" revision commit)) + (source + (origin + (inherit (package-source lmms)) + (uri (git-reference + (url "https://github.com/LMMS/lmms") + (commit commit) + ;; Clone recursively for optional plugins. + (recursive? #t))) + (file-name (git-file-name (package-name lmms) version)) + (sha256 + (base32 "0hscgnbladrkbvv551bv7vzi5949gjhf397j35wghd07hwd2lrb0")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Delete the bundled 3rd party libraries. + (for-each delete-file-recursively + (list "plugins/CarlaBase/carla" + "plugins/OpulenZ/adplug" + "plugins/Xpressive/exprtk" + "src/3rdparty")) + (substitute* "CMakeLists.txt" + ;; Do not check the submodules. + ((".*CheckSubmodules.*") "") + ;; Unuse the bundled weakjack. + (("JACK libraries\" ON") "JACK libraries\" OFF")) + (substitute* "src/CMakeLists.txt" + ((".*3rdparty.*") "") + ;; Use adplug and ringbuffer from the system. + (("\\$\\{EXTRA_LIBRARIES\\}") + "${EXTRA_LIBRARIES}\n\tadplug\n\tringbuffer")) + (with-directory-excursion "plugins" + ;; Use carla from the system. + (substitute* "CarlaBase/Carla.h" + (("#include ") "") + (("") "") + (("") ""))) + ;; Unuse the bundled exprtk. + (substitute* "Xpressive/CMakeLists.txt" + ((".*\\(exprtk .*") "") + ((".*xpressive exprtk.*") ""))))))) + (inputs + (modify-inputs (package-inputs lmms) + (delete "rpmalloc") + (replace "carla" carla) + (replace "sdl12-compat" sdl2) + (append adplug + exprtk + lame + libxml2 + lilv + lv2 + perl + perl-list-moreutils + perl-xml-parser + ringbuffer + suil))) + (native-search-paths + (list (search-path-specification + (variable "LV2_PATH") + (files '("lib/lv2")))))))) + (define-public stargate (package (name "stargate")