[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: opusfile: Fix Opus header lookups.
From: |
guix-commits |
Subject: |
03/07: gnu: opusfile: Fix Opus header lookups. |
Date: |
Sat, 16 Oct 2021 17:39:57 -0400 (EDT) |
lfam pushed a commit to branch master
in repository guix.
commit 87535cbc9876295fac84c1c5be6a2ec1f72e96fb
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sat Oct 9 15:28:16 2021 +0000
gnu: opusfile: Fix Opus header lookups.
* gnu/packages/xiph.scm (opusfile)[arguments]<#:phases>: Add a
'fix-multistream'
phase.
Signed-off-by: Leo Famulari <leo@famulari.name>
---
gnu/packages/xiph.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/xiph.scm b/gnu/packages/xiph.scm
index fbbcbd6..0c9c799 100644
--- a/gnu/packages/xiph.scm
+++ b/gnu/packages/xiph.scm
@@ -11,6 +11,7 @@
;;; Copyright © 2018 Leo Famulari <leo@famulari.name>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
+;;; Copyright © 2021 Vinicius Monego <monego@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -406,7 +407,16 @@ decoding .opus files.")
"02smwc5ah8nb3a67mnkjzqmrzk43j356hgj2a97s9midq40qd38i"))))
(build-system gnu-build-system)
(arguments
- '(#:configure-flags '("--disable-static")))
+ '(#:configure-flags '("--disable-static")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-multistream
+ ;; Opus include directory should be passed explicitly:
+ ;; https://github.com/xiph/opusfile/issues/10 however,
+ ;; opus_multistream.h still can't be found by the compiler.
+ (lambda _
+ (substitute* "include/opusfile.h"
+ (("opus_multistream\\.h") "opus/opus_multistream.h")))))))
;; Required by opusfile.pc and opusurl.pc.
(propagated-inputs
`(("libogg" ,libogg)
- branch master updated (df24044 -> 8c55fdf), guix-commits, 2021/10/16
- 01/07: gnu: Add libkeyfinder., guix-commits, 2021/10/16
- 03/07: gnu: opusfile: Fix Opus header lookups.,
guix-commits <=
- 02/07: gnu: Add libdjinterop., guix-commits, 2021/10/16
- 04/07: gnu: Add libshout-idjc., guix-commits, 2021/10/16
- 05/07: gnu: Add spscqueue., guix-commits, 2021/10/16
- 06/07: gnu: Add mp3guessenc., guix-commits, 2021/10/16
- 07/07: gnu: Add mixxx., guix-commits, 2021/10/16