Skip to content

Commit

Permalink
portaudio-v19: upgrade 19.6.0 -> 19.7.0
Browse files Browse the repository at this point in the history
* development continues on github
* build with CMake
* examples is a configure option -> replace (always empty) extra package by
  PACKAGECONFIG

From announcement:

* support for latest Mac OS APIs
* Jack - fixes for device names that allows use on Linux systems with PipeWire
* WASAPI - numerous improvements
* OSS - better format support
* ALSA - various fixes for hangs and crashes
* WDMKS - improved performance and fixes
* updated build scripts

Signed-off-by: Andreas Müller <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
schnitzeltony authored and kraj committed May 18, 2021
1 parent 7e7c443 commit 0df96be
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 83 deletions.
51 changes: 0 additions & 51 deletions meta-oe/recipes-support/portaudio/files/ldflags.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 8ec1b100afda5b3e31f9d44af04b04b16dfff2e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <[email protected]>
Date: Tue, 18 May 2021 00:15:46 +0200
Subject: [PATCH] Find jack with pkgconfig
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Upstream-Status: Pending

Signed-off-by: Andreas Müller <[email protected]>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 122fe93..ab7d7f5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -274,7 +274,8 @@ ELSE()

ELSEIF(UNIX)

- FIND_PACKAGE(Jack)
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules (JACK jack)
IF(JACK_FOUND)
OPTION(PA_USE_JACK "Enable support for Jack" ON)
ELSE()
--
2.31.1

32 changes: 32 additions & 0 deletions meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
SUMMARY = "A portable audio library"
SECTION = "libs/multimedia"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df"

PV = "v190700"

SRC_URI = " \
git://github.com/PortAudio/portaudio.git \
file://0001-Find-jack.patch \
"
SRCREV = "147dd722548358763a8b649b3e4b41dfffbcfbb6"
S = "${WORKDIR}/git"

inherit cmake

PACKAGECONFIG ??= "alsa jack"
PACKAGECONFIG[alsa] = ",,alsa-lib"
PACKAGECONFIG[jack] = ",,jack"
PACKAGECONFIG[examples] = "-DPA_BUILD_EXAMPLES=ON,-DPA_BUILD_EXAMPLES=OFF"

do_install_append() {
if [ -d ${B}/examples ]; then
install -d ${D}${bindir}
for example in ${B}/examples/pa*; do
install -m755 $example ${D}${bindir}/
done
fi
}

FILES_SOLIBSDEV = ""
FILES_${PN} += "${libdir}/libportaudio.so"
32 changes: 0 additions & 32 deletions meta-oe/recipes-support/portaudio/portaudio-v19_20161030.bb

This file was deleted.

0 comments on commit 0df96be

Please sign in to comment.