From patchwork Wed May 5 08:48:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume Le Vaillant X-Patchwork-Id: 29125 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 8C1F427BC82; Wed, 5 May 2021 09:49:11 +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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,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 4B23127BC81 for ; Wed, 5 May 2021 09:49:11 +0100 (BST) Received: from localhost ([::1]:34454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leDDS-00026G-9r for patchwork@mira.cbaines.net; Wed, 05 May 2021 04:49:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leDDL-00025p-LC for guix-patches@gnu.org; Wed, 05 May 2021 04:49:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47126) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1leDDJ-0001Qe-T6 for guix-patches@gnu.org; Wed, 05 May 2021 04:49:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1leDDJ-0006L9-Q6 for guix-patches@gnu.org; Wed, 05 May 2021 04:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48217] [PATCH v2 1/9] gnu: Add csdr. Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 05 May 2021 08:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48217 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48217@debbugs.gnu.org Cc: Guillaume Le Vaillant Received: via spool by 48217-submit@debbugs.gnu.org id=B48217.162020453924351 (code B ref 48217); Wed, 05 May 2021 08:49:01 +0000 Received: (at 48217) by debbugs.gnu.org; 5 May 2021 08:48:59 +0000 Received: from localhost ([127.0.0.1]:58669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leDDG-0006Kh-W7 for submit@debbugs.gnu.org; Wed, 05 May 2021 04:48:59 -0400 Received: from mout01.posteo.de ([185.67.36.65]:39491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1leDDE-0006KX-HF for 48217@debbugs.gnu.org; Wed, 05 May 2021 04:48:58 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4E93C240027 for <48217@debbugs.gnu.org>; Wed, 5 May 2021 10:48:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1620204530; bh=bKkfhsB9YGOp4YzaBk8MdMSWABfoG/huRSaMtkbscOA=; h=From:To:Cc:Subject:Date:From; b=YVduSq6djCJ1bSEc8B9Ivs0I23X44WrubYCCM30JDM2ZGdGLtj7ySmkjrQr/vPoFO /NmiWuIN+sjqwi4aGmKYH33iE2L+6+dyBTU5em6/n4OphaQH6/W4z2fnh7PLAInWx8 EBpYOd434UV8wjVsmgXp/donWUas6NiKlTcbxLXkSlgxua0XqgWHhdh6be0G/Ye4Ug PW9WrxDT9stXvhFxAbgwNW0EDELwCaUpEb45fi/SW24fKOmBwBMpaV7PHg5Qbles/O imZ+Y6zliq9VA0XS62juD5dMBQlzjMZhf1QTMEJZ4U8vZVEiBasCGgYWeh3jASmUsw Xi5ZGjxFXhq9A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FZr3P18xLz9rxT; Wed, 5 May 2021 10:48:48 +0200 (CEST) From: Guillaume Le Vaillant Date: Wed, 5 May 2021 08:48:16 +0000 Message-Id: <20210505084824.22275-1-glv@posteo.net> 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/radio.scm (csdr): New variable. --- gnu/packages/radio.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index e6d5ef0203..5329a75794 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -1575,3 +1575,58 @@ receiver.") "@code{welle.io} is a Digital Audio Broadcasting (DAB and DAB+) software defined radio with support for rtl-sdr.") (license license:gpl2+))) + +(define-public csdr + ;; No release since 2017, use commit directly. + (let ((commit "6ef2a74206887155290a54c7117636f66742f858") + (revision "1")) + (package + (name "csdr") + (version (git-version "0.15" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ha7ilm/csdr") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0ic35130lf66lk3wawgc5bcg711l7chv9al1hzdc1xrmq9qf9hri")))) + (build-system gnu-build-system) + (inputs + `(("fftwf" ,fftwf))) + (arguments + `(#:make-flags + (list (string-append "PREFIX=" (assoc-ref %outputs "out")) + ;; Don't print summary of SIMD optimized functions. + "PARSEVECT=no") + #:tests? #f ; No check phase + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" + (("PARAMS_MISC = -Wno-unused-result" all) + ;; The 'validate-runpath' phase fails without this. + (string-append + all " -Wl,-rpath=" (assoc-ref outputs "out") "/lib")) + (("PARAMS_SIMD =.*") + ;; Disable to make reproducibility and cross-compilation work. + "") + (("gcc ") + ,(string-append (cc-for-target) " ")) + (("g\\+\\+ ") + ,(string-append (cxx-for-target) " "))))) + (add-before 'install 'make-installation-directories + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (mkdir-p (string-append out "/bin")) + (mkdir-p (string-append out "/lib")))))))) + (home-page "https://github.com/ha7ilm/csdr") + (synopsis "DSP for software defined radio") + (description + "This package includes the @code{libcsdr} library of +@acronym{DSP, Digital Signal Processing} functions for +@acronym{SDRs, Software Defined Radios}, and the @code{csdr} command line +program that can be used to build simple signal processing flow graphs.") + (license license:gpl3+))))