From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eIefOERM0V9EcgAA0tVLHw (envelope-from ) for ; Wed, 09 Dec 2020 22:14:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id K5RQNERM0V9cVgAAbx9fmQ (envelope-from ) for ; Wed, 09 Dec 2020 22:14:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B2BAA940149 for ; Wed, 9 Dec 2020 22:14:28 +0000 (UTC) Received: from localhost ([::1]:49118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kn7j9-0001OD-NM for larch@yhetil.org; Wed, 09 Dec 2020 17:14:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kn7il-0001Lz-3n for guix-patches@gnu.org; Wed, 09 Dec 2020 17:14:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kn7ij-0007KM-TF for guix-patches@gnu.org; Wed, 09 Dec 2020 17:14:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kn7ij-0004KF-Mr for guix-patches@gnu.org; Wed, 09 Dec 2020 17:14:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#45150] [PATCH 2/5] gnu: libmad: Install pkg-config file. References: <20201209221143.23539-1-kkebreau@posteo.net> In-Reply-To: <20201209221143.23539-1-kkebreau@posteo.net> Resent-From: Kei Kebreau Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Dec 2020 22:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45150 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 45150@debbugs.gnu.org Cc: Kei Kebreau Received: via spool by 45150-submit@debbugs.gnu.org id=B45150.160755203016572 (code B ref 45150); Wed, 09 Dec 2020 22:14:01 +0000 Received: (at 45150) by debbugs.gnu.org; 9 Dec 2020 22:13:50 +0000 Received: from localhost ([127.0.0.1]:36414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn7iY-0004JE-0j for submit@debbugs.gnu.org; Wed, 09 Dec 2020 17:13:50 -0500 Received: from mout01.posteo.de ([185.67.36.65]:40216) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn7iW-0004Iv-Pi for 45150@debbugs.gnu.org; Wed, 09 Dec 2020 17:13:49 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 0FCDB16005C for <45150@debbugs.gnu.org>; Wed, 9 Dec 2020 23:13:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1607552023; bh=k0QekMHU7iybF3uwujL/XKqnFo6p+vMKGAlsYHXbSrE=; h=From:To:Cc:Subject:Date:From; b=rlZj9vKumHI2P7KG4rCSjVFUcwJ8vzf8EObZW3sru5SPDSCcBSg22Jz62e2y0pvyx 6Wx9kUB/hhZ7rqXZXquxPAmtUk8PDw+3+8kzPMyhasFdvsJ0A7+sURP9hlbwlGSKlO 1fz4IjwgwpO0/2vwOqCEe/ZAdPuPf1rF+FD8VrLK2mawxA+WlKuxysH48sByWhAuK3 bs6GDGqgxWZi4urwD6W3nMGgs6IppbPJy3LLWNFVOBCMaSY7UbilkVmQ5YL7RdCyRk FnDE7u0ou1OTiqvnd9NwLqgdVZa0UdM3uF0iol8Ux6OJmq/GYeM1p2UGzIIfhfu4rh CBMfSOGIjS8KQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Crrsy0C6Nz6tmB; Wed, 9 Dec 2020 23:13:41 +0100 (CET) From: Kei Kebreau Date: Wed, 9 Dec 2020 17:13:30 -0500 Message-Id: <20201209221333.23645-1-kkebreau@posteo.net> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 5.30 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=posteo.net header.s=2017 header.b=rlZj9vKu; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B2BAA940149 X-Spam-Score: 5.30 X-Migadu-Scanner: scn1.migadu.com X-TUID: dr8T6qCeUYlw * gnu/packages/mp3.scm (libmad)[arguments]: Add 'install-pkg-config phase. --- gnu/packages/mp3.scm | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm index d5c8ee14b4..9dd6f5c4a7 100644 --- a/gnu/packages/mp3.scm +++ b/gnu/packages/mp3.scm @@ -81,7 +81,26 @@ (lambda _ ;; remove option that is not supported by gcc any more (substitute* "configure" ((" -fforce-mem") "")) - #t))))) + #t)) + (add-after 'install 'install-pkg-config + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (pkg-config-dir (string-append out "/lib/pkgconfig"))) + (mkdir-p pkg-config-dir) + (with-output-to-file (string-append pkg-config-dir "/mad.pc") + (lambda _ + (format #t + "prefix=~@*~a~@ + libdir=${prefix}/lib~@ + includedir=${prefix}/include~@ + + Name: libmad~@ + Description:~@ + Version: ~a~@ + Libs: -L${libdir} -lmad~@ + Cflags: -I${includedir}~%" + out + ,version))))))))) (synopsis "MPEG audio decoder") (description "MAD (MPEG Audio Decoder) supports MPEG-1 and the MPEG-2 extension to -- 2.29.2