From patchwork Wed Mar 19 17:00:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liliana Marie Prikler X-Patchwork-Id: 40445 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 A19F927BBE9; Wed, 19 Mar 2025 17:04:33 +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.5 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED,URIBL_SBL_A 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 38CC027BBE2 for ; Wed, 19 Mar 2025 17:04:33 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tuwpu-0006MR-5s; Wed, 19 Mar 2025 13:04:10 -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 1tuwpn-00069K-4K for guix-patches@gnu.org; Wed, 19 Mar 2025 13:04:03 -0400 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 1tuwpm-0007wV-Mr for guix-patches@gnu.org; Wed, 19 Mar 2025 13:04:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=3w+U4PeSuFbjUerBxBSIeGVHG02rm3OxVMj5uRQ7WXU=; b=gMDNxmiIxU5h/iNaw4uH8UumyoVM4e/wlEOQVB1JwHkZyZyfFdzvMN8qaPSbtgf8+OsQpZTe3Jzg+vO/TIbx2plKV331exr7zuMRwP22nugQIeE/4Il/eUniMi+t6ouby8kOofz3xI4H691XpoLzosgz+DkL9RiCVF4O4YNv6VgaTGAFyzYRWcHS92CvDsZjOE7XMIWUFPoICHeghRbgu9M6p8iuJAOqRN4ydrQ89UjPkslxPZUH9oRLQaQKTtKa7+UXapyM21K3AcCfo5HkaSs9lkyzSv7ghZ1BPewG8XkNWPkKzDFXgveHTN20O1+AAEmcXO8NyqG70U5XDkLc+g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tuwpm-0005ln-Dx for guix-patches@gnu.org; Wed, 19 Mar 2025 13:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#67755] [PATCH v6 4/8] gnu: Add miniaudio. Resent-From: "Sergio Pastor =?utf-8?b?UMOpcmV6?= " Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 19 Mar 2025 17:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67755 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67755@debbugs.gnu.org Cc: Sergio Pastor =?utf-8?b?UMOpcmV6?= Received: via spool by 67755-submit@debbugs.gnu.org id=B67755.174240380922095 (code B ref 67755); Wed, 19 Mar 2025 17:04:02 +0000 Received: (at 67755) by debbugs.gnu.org; 19 Mar 2025 17:03:29 +0000 Received: from localhost ([127.0.0.1]:52890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tuwpE-0005kI-Fg for submit@debbugs.gnu.org; Wed, 19 Mar 2025 13:03:29 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:56352) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tuwom-0005gv-Pd for 67755@debbugs.gnu.org; Wed, 19 Mar 2025 13:03:01 -0400 Received: by mail-wr1-x441.google.com with SMTP id ffacd0b85a97d-399737f4fa4so699011f8f.0 for <67755@debbugs.gnu.org>; Wed, 19 Mar 2025 10:03:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742403775; x=1743008575; darn=debbugs.gnu.org; h=mime-version:cc:to:subject:date:references:in-reply-to:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=3w+U4PeSuFbjUerBxBSIeGVHG02rm3OxVMj5uRQ7WXU=; b=jfzdreK83nLcPj9X3MBe96VcTC3e6Q8eoAaZJkvL4bFks0dRNrQ9NpYxqgbRCgyYXF Vta5njB4lDzk6bs4wgXtSfwF3TV25PdZ3u6eK2VZ4lVWzOJ29hv36vuRHGQJ29nxBtZP 614GvQaOAHU23RciWBiThZY50blUJl09jhP4+TdOu6j4v0dn6qHczQtinEyM6DRusRXK trzcXWPePj0XATKeBPdgS2M/CZPji5fjAkE8PIxt3NwmTNHGOfC68uDvGYEX4XjBJxEz t5zVbC/tR3W+6AKTv3slBQY85wMUJIzKlG/HxQeE3ONw79Ic9h4hY7VEgsqrrdlgTssU n2QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742403775; x=1743008575; h=mime-version:cc:to:subject:date:references:in-reply-to:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3w+U4PeSuFbjUerBxBSIeGVHG02rm3OxVMj5uRQ7WXU=; b=NSGjnbJKYU5ck0BPo3H1ovnoA5MQWMhd25HMb8Gqc76XCPX7mgT81AbIuNveKyVXCW H56QpEcuRMCcgnozCCOQHFlxIP1NlLicZ9zd5HPGXFxHSD13ai9s8sf7jCCfPIC2coia UdKeDt3p8SfKAVRmFIH/IM4J1d97W4+GzClVIkKpBOHl/JlPC0B70ITc5A0LBMZie5TK ZGeVOrdMfe1ZHPOtzW3cuWf7fWt/3FAMahuzbak666rvS73Pzo9rH7/GNGUTYMM+khP6 VLRNRt0thmJNrYQB65RKBoXZ6j4e+I54OaY3nHYiGe31IP52mZJYacNiV+jnu6L0JlDT HN8Q== X-Gm-Message-State: AOJu0YxWvjqR3C/H5C+26UMigV5PzNk0VwQRGZKOiBJVZEbURbB8FdiI oeFLrbGwKOrAmztjp0W80wf2UVV0hzgMcx5iIjblpA1DvGr2Y16w0I+VzKL9CAM= X-Gm-Gg: ASbGncva+HHuE8MtFiO5cQcOBI5uh1yBOugHI5MoGt0vwu6sGWJx+s4h7AzhGtqs9/W aO07j9G8oKS34F4P0SkMRlS8V9yloXJzx3wMQzxLqVhjeHBmI2YXH5d0rBDe8bcgppNAOG4zl6e QhFA0SjQKUgXi5rue6eJfkErxOLUgNGnmEOZJdtTdytpdv9gWy3eKgoAO2mHbDYPNuDI23nWttT tF3lscUChGu3aWAbnMuHGjODS/9TblviTF8tOw+jj+jLthpMTEt39dAmC2VVbMRKqnhCR55UNEg n6BHgR3iMv8z25/wxEoIc9TqrdS22Ak1DEmK06bynwNxlasmxgWqM5r8IknqrZT9fU3nSL7S0gx 1kHBcb58EGQ4qqHqCo0F/ X-Google-Smtp-Source: AGHT+IG4GWN1LiFKT7/zHth2WPHfUbGhGJ+8FZ06f+p9ojCy4EkmCY2ThEKyQ+6Z1LJp1jTaOkLz5g== X-Received: by 2002:a5d:47cd:0:b0:390:ed05:aa26 with SMTP id ffacd0b85a97d-399795a7c72mr209860f8f.5.1742403774379; Wed, 19 Mar 2025 10:02:54 -0700 (PDT) Received: from lumine.fritz.box (85-127-114-32.dsl.dynamic.surfer.at. [85.127.114.32]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-395c7df3419sm21049661f8f.9.2025.03.19.10.02.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Mar 2025 10:02:54 -0700 (PDT) From: "Sergio Pastor =?utf-8?b?UMOpcmV6?= " X-Google-Original-From: Sergio Pastor =?utf-8?b?UMOpcmV6?= Message-ID: <419841005ecce922d506dbc63fa60a824bae3a77.1742403600.git.liliana.prikler@gmail.com> In-Reply-To: References: Date: Wed, 19 Mar 2025 18:00:07 +0100 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/cpp.scm (miniaudio): New variable. Change-Id: I27b74793dd7b80af4437e0a1b997cc87fe8822e5 --- gnu/packages/cpp.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 48780b22af7..4bf0e7f63fa 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1958,6 +1958,66 @@ (define (make-static-abseil-cpp version) #~(cons* "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" (delete "-DBUILD_SHARED_LIBS=ON" #$flags))))))))) +(define-public miniaudio + (package + (name "miniaudio") + (version "0.11.22") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mackron/miniaudio") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1pjaiq71x24n9983vkhjxrsbraa24053h727db22b1rb2xyfrzm3")))) + (build-system gnu-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (delete 'build) + (delete 'configure) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "tests/_build" + (let ((tests '("conversion" "filtering" "generation"))) + (mkdir "bin") + ;; Compile tests + (for-each (lambda (test) + (invoke "gcc" + (string-append "../" test "/" test + ".c") + "-o" + (string-append "bin/" test) + "-ldl" + "-lm" + "-lpthread" + "-Wall" + "-Wextra" + "-Wpedantic") + (let ((bin (string-append "./bin/" test))) + (if (string= test "filtering") + ;; NOTE: the 'filtering' test + ;; requires an input file. + (invoke bin bin) + (invoke bin)))) + tests)))))) + (replace 'install + (lambda _ + (install-file "miniaudio.h" + (string-append #$output "/include")) + (copy-recursively "extras" + (string-append #$output + "/include/extras/"))))))) + (home-page "https://miniaud.io") + (synopsis "Audio playback and capture library for C and C++") + (description + "Miniaudio is an audio playback and capture library for C and C++. It is +made up of a single source file and has no external dependencies.") + (license license:expat))) + (define-public abseil-cpp-cxxstd17 (abseil-cpp-for-c++-standard abseil-cpp 17)) ;XXX: the default with GCC 11?