From patchwork Mon Mar 20 21:38:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Wurmus X-Patchwork-Id: 48453 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 06C4216F36; Mon, 20 Mar 2023 21:39: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=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 1F3E316F2D for ; Mon, 20 Mar 2023 21:39:15 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peNDf-0001we-55; Mon, 20 Mar 2023 17:39:07 -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 1peNDb-0001w9-2S for guix-patches@gnu.org; Mon, 20 Mar 2023 17:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peNDa-0001WO-AF for guix-patches@gnu.org; Mon, 20 Mar 2023 17:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peNDZ-0006RX-Sb for guix-patches@gnu.org; Mon, 20 Mar 2023 17:39:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62304] [PATCH] gnu: Add ctrlr. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 21:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62304 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62304@debbugs.gnu.org Cc: Ricardo Wurmus X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167934831624713 (code B ref -1); Mon, 20 Mar 2023 21:39:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2023 21:38:36 +0000 Received: from localhost ([127.0.0.1]:56919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peNDA-0006QX-2i for submit@debbugs.gnu.org; Mon, 20 Mar 2023 17:38:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:34510) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peND9-0006QQ-7r for submit@debbugs.gnu.org; Mon, 20 Mar 2023 17:38:35 -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 1peND8-0001pD-OA for guix-patches@gnu.org; Mon, 20 Mar 2023 17:38:34 -0400 Received: from sender3-of-o58.zoho.com ([136.143.184.58]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peND6-0001Q7-Pv for guix-patches@gnu.org; Mon, 20 Mar 2023 17:38:34 -0400 Delivered-To: rekado@elephly.net ARC-Seal: i=1; a=rsa-sha256; t=1679348308; cv=none; d=zohomail.com; s=zohoarc; b=gKVugzeROMdowiEFEnMwlSrBVgbt7ps9EbfBCF/+Z+omJjNduCAfs526wgXujf8cmBNZetaW+yUhlGRl75vz3m50FQrwJPQMDW5Y1Z1ASzHKuW/V1GXxnV6F4BswY+quZC43UfEca5OISB+uTqyDVOkW6b+SYQZTa11mQI2Ws/o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679348308; h=Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=wbqsXR1vYOgxAuIG3P4AIihzkQ8JLU9FLumxGjcqnKM=; b=EOT1rmD5AtOxKuuHJOQUFU9RSZcZoMrGD7fDpMwvweNZV1anXaWPgFKSz9yTE/6IvAGOdfydJVl1jHKMF6cY/HfTTuLZDrZ2GF1QMiDsUdJwuCGR4dokJ1jag1KxumJ7Oqx05wrqxkLVkxW/9rlJAxc1kNJA5R6orFJFsxrb/lo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1679348308; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=wbqsXR1vYOgxAuIG3P4AIihzkQ8JLU9FLumxGjcqnKM=; b=dZAEX15AFRtgysTlOTlVAp+C7HqDmvYJgttziSIZVqc8tG4R4urI7OdE4iw0HJQu ipgf/4fCKrH3Ioxr2BYP2ZUGvLnBEmo8xC7Tl4J7UP9oIEml8t78dbd6Mbf9EVugOBS K9AP1ogq0gYYx3v/Qn/6/tQTO/lOTmHPVJ6WpwEk= Received: from localhost (i5E862D98.versanet.de [94.134.45.152]) by mx.zohomail.com with SMTPS id 1679348307213480.50240474963607; Mon, 20 Mar 2023 14:38:27 -0700 (PDT) From: Ricardo Wurmus Date: Mon, 20 Mar 2023 22:38:19 +0100 Message-Id: <20230320213819.26608-1-rekado@elephly.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.184.58; envelope-from=rekado@elephly.net; helo=sender3-of-o58.zoho.com 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_MSPIKE_H2=-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+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 (ctrlr): New variable. --- gnu/packages/music.scm | 65 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index acedfd4a26..489c5ba74c 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -122,6 +122,7 @@ (define-module (gnu packages music) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) #:use-module (gnu packages game-development) + #:use-module (gnu packages gcc) #:use-module (gnu packages gnupg) #:use-module (gnu packages gettext) #:use-module (gnu packages ghostscript) @@ -478,6 +479,70 @@ (define-public clementine ;; qocoa is under MIT and CC by-sa for the icons. license:cc-by-sa3.0)))) +(define-public ctrlr + ;; The latest release from 2021 does not have a build system. + (let ((commit "8aa00d82127acda42ad9ac9b7b479461e9436aa4") + (revision "1")) + (package + (name "ctrlr") + (version (git-version "5.5.9" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/RomanKubiak/ctrlr") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lpfkjp9y0wh2kj02isv8ixnxn3wyvrxhkx0rybwzswfiz5kqdlm")))) + (build-system cmake-build-system) + (arguments + (list + #:cmake cmake ;needs 3.25 + #:tests? #false ;there are none + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'pre-configure + (lambda _ + ;; Override default location of fonts.conf. Without this no + ;; fonts will be rendered at all. + (substitute* "JUCE/modules/juce_graphics/native/juce_linux_Fonts.cpp" + (("/usr/share/fonts/fonts.conf") + "/run/current-system/profile/etc/fonts/fonts.conf")) + ;; Do not build the VST or AU plugins, because these require + ;; external proprietary SDKs. + (substitute* "CMakeLists.txt" + (("juce_set_vst2_sdk_path.*") "") + (("FORMATS VST3 VST AU Standalone") + "FORMATS Standalone") + ;; BFD also need -liberty. + (("list\\(APPEND ctrlrLibs \"bfd\"\\)" m) + (string-append m " +list(APPEND ctrlrLibs \"iberty\")"))))) + ;; The install target doesn't install ctrlr but JUCE helpers. + (replace 'install + (lambda _ + (install-file "ctrlr_artefacts/RelWithDebInfo/Standalone/ctrlr" + (string-append #$output "/bin"))))))) + (inputs + (list alsa-lib + boost + eudev + freetype + libiberty + libx11 + webkitgtk)) + (native-inputs + (list pkg-config)) + (home-page "https://ctrlr.org/") + (synopsis "Control any MIDI-enabled hardware") + (description "Control any MIDI-enabled hardware: synthesizers, drum +machines, samplers, effects. Create custom user interfaces for your MIDI +hardware.") + (license (list license:gpl2+ + license:gpl3 ;JUCE + license:bsd-3))))) + (define-public strawberry (package (name "strawberry")