From patchwork Thu Sep 10 19:08:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandros Theodotou X-Patchwork-Id: 23990 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 B5FFA27BBE8; Thu, 10 Sep 2020 20:10:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 35C0227BBE7 for ; Thu, 10 Sep 2020 20:10:12 +0100 (BST) Received: from localhost ([::1]:40824 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGRxT-0007cV-DD for patchwork@mira.cbaines.net; Thu, 10 Sep 2020 15:10:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGRxK-0007bL-N9 for guix-patches@gnu.org; Thu, 10 Sep 2020 15:10:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGRxK-0002kR-0z for guix-patches@gnu.org; Thu, 10 Sep 2020 15:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kGRxJ-0005fS-Qe for guix-patches@gnu.org; Thu, 10 Sep 2020 15:10:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43317] [PATCH] gnu: Add surge-synth. Resent-From: Alexandros Theodotou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Sep 2020 19:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43317 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43317@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159976494721707 (code B ref -1); Thu, 10 Sep 2020 19:10:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2020 19:09:07 +0000 Received: from localhost ([127.0.0.1]:41222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGRwR-0005e2-Bs for submit@debbugs.gnu.org; Thu, 10 Sep 2020 15:09:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:60840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGRwQ-0005du-BE for submit@debbugs.gnu.org; Thu, 10 Sep 2020 15:09:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGRwQ-0006RC-64 for guix-patches@gnu.org; Thu, 10 Sep 2020 15:09:06 -0400 Received: from mout01.posteo.de ([185.67.36.141]:43043) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGRwN-0002a2-KC for guix-patches@gnu.org; Thu, 10 Sep 2020 15:09:05 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7F26F16005C for ; Thu, 10 Sep 2020 21:09:00 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BnT2M4gPYz9rxS for ; Thu, 10 Sep 2020 21:08:59 +0200 (CEST) Message-ID: From: Alexandros Theodotou Date: Thu, 10 Sep 2020 20:08:56 +0100 User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.141; envelope-from=alex@zrythm.org; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/10 11:19:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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-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" X-getmail-retrieved-from-mailbox: Patches Hi, This patch adds surge synthesizer. Thanks, Alex From 613f46926fdf0453ec5ad5f5883130ed86bf6d9c Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Thu, 10 Sep 2020 20:07:32 +0100 Subject: [PATCH] gnu: Add surge-synth. * gnu/packages/music.scm (surge-synth): New variable. --- gnu/packages/music.scm | 69 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 28c889019e..4cfefc472e 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -775,6 +775,75 @@ are helpful when working in problem spaces where timing is important (such as audio and video).") (license license:bsd-2))) +(define-public surge-synth + (package + (name "surge-synth") + (version "1.7.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/surge-synthesizer/surge") + (commit (string-append "release_" version)) + (recursive? #t))) ; build system expects modules to be there + (file-name (git-file-name name version)) + (sha256 + (base32 + "1jhk8iaqh89dnci4446b47315v2lc8gclraygk8m9jl20zpjxl0l")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; no tests included + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'replace-python + (lambda* (#:key inputs outputs #:allow-other-keys) + (begin + (substitute* "CMakeLists.txt" + ((" python ") (string-append " " (assoc-ref inputs "python") "/bin/python3 "))) + #t))) + (add-after 'unpack 'fix-data-path + (lambda* (#:key inputs outputs #:allow-other-keys) + (begin + (substitute* "src/common/SurgeStorage.cpp" + (("/usr") (assoc-ref outputs "out"))) + #t))) + (replace 'install ; no install target + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((src (assoc-ref inputs "source")) + (out (assoc-ref outputs "out")) + (share (string-append out "/share")) + (lib (string-append out "/lib")) + (lv2 (string-append lib "/lv2")) + (vst3 (string-append lib "/vst3"))) + (mkdir-p lv2) + (mkdir-p vst3) + ;; Install LV2 plugin. + (copy-recursively "surge_products/Surge.lv2" + (string-append lv2 "/Surge.lv2")) + ;; Install VST3 plugin. + (copy-recursively "surge_products/Surge.vst3" + (string-append vst3 "/Surge.vst3")) + ;; Install data. + (copy-recursively (string-append src "/resources/data") + (string-append share "/Surge")) + #t)))))) + (inputs + `(("cairo" ,cairo) + ("libxkbcommon" ,libxkbcommon) + ("python" ,python) + ("xcb-util" ,xcb-util) + ("xcb-util-cursor" ,xcb-util-cursor) + ("xcb-util-keysyms" ,xcb-util-keysyms))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://surge-synthesizer.github.io/") + (synopsis "Synthesizer plugin") + (description + "Surge is a subtractive hybrid digital synthesizer. Each patch contains +two 'scenes' which are separate instances of the entire synthesis engine +(except effects) that can be used for layering or split patches.") + (license license:gpl3+))) + (define-public klick (package (name "klick") -- 2.27.0