From patchwork Tue May 4 08:56:57 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: 29105 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 4260927BC82; Tue, 4 May 2021 09:59:34 +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 048C127BC81 for ; Tue, 4 May 2021 09:59:34 +0100 (BST) Received: from localhost ([::1]:45190 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ldqtx-0007Uq-5r for patchwork@mira.cbaines.net; Tue, 04 May 2021 04:59:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40622) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ldqsU-0005MX-SV for guix-patches@gnu.org; Tue, 04 May 2021 04:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ldqsU-0008A7-If for guix-patches@gnu.org; Tue, 04 May 2021 04:58:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ldqsU-0004aW-Gv for guix-patches@gnu.org; Tue, 04 May 2021 04:58:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48217] [PATCH 1/9] gnu: Add csdr. Resent-From: Guillaume Le Vaillant Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 04 May 2021 08:58:02 +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.162011866317615 (code B ref 48217); Tue, 04 May 2021 08:58:02 +0000 Received: (at 48217) by debbugs.gnu.org; 4 May 2021 08:57:43 +0000 Received: from localhost ([127.0.0.1]:51824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldqsA-0004a3-Ly for submit@debbugs.gnu.org; Tue, 04 May 2021 04:57:42 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35103) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ldqs8-0004Zv-4I for 48217@debbugs.gnu.org; Tue, 04 May 2021 04:57:41 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 9C694240027 for <48217@debbugs.gnu.org>; Tue, 4 May 2021 10:57:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1620118653; bh=D5HE1AhHfgu6nxzUEqVZFDoZjN9RG+TWz3Z5fY6CawA=; h=From:To:Cc:Subject:Date:From; b=EJjFLWJDJWU+QL8dyRNo3zlK/bSkDTqFiQhCllUU8h6vp6XrIlVCAB5XntVxX6/0o 0WBawUKjiq7u892ABU5cdEkGcask7cItm/FLrS2kSFc4esZ1BHMHz05+S1bF3XSkGq Ghh9XLU7w8GgszNiFNAduCGwxwoSD0vstsTGUDi9G5iKVEN8vfQVbVcxtEvNnUGGPK TVTr8aCCdGWaarNwv51OISibeHsejJuaJ+ws5jP6C2XK5AUopHT4kx3+ZHjJqxKgHw PLOy5pvgqxMzacRxItZ7W5oVWpo4UZsE+WXovYOCdn0+0nc/UYxBvOc+RzTTzRjRC6 sMU0JBqh6W1rA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FZDHv3k0Bz6tmF; Tue, 4 May 2021 10:57:31 +0200 (CEST) From: Guillaume Le Vaillant Date: Tue, 4 May 2021 08:56:57 +0000 Message-Id: <20210504085705.5298-1-glv@posteo.net> In-Reply-To: <87czu6rimc.fsf@yamatai> References: <87czu6rimc.fsf@yamatai> 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 | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/radio.scm b/gnu/packages/radio.scm index e6d5ef0203..382fdf85e3 100644 --- a/gnu/packages/radio.scm +++ b/gnu/packages/radio.scm @@ -1575,3 +1575,57 @@ 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")) + "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+))))