diff options
| author | Andreas Müller <schnitzeltony@gmail.com> | 2021-05-18 10:11:44 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-05-19 09:17:49 -0700 |
| commit | abc5d296dd65fa0427eecab1bc9902f4095290b5 (patch) | |
| tree | 970af255d3c3f9c68849bc03328b7870e9bbf982 /meta-oe/recipes-support/portaudio | |
| parent | 57ae91d2914de96b1de69bfcb089a427ee3cb0ed (diff) | |
| download | meta-openembedded-abc5d296dd65fa0427eecab1bc9902f4095290b5.tar.gz | |
portaudio-v19: upgrade 19.6.0 -> 19.7.0
* 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 <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/portaudio')
4 files changed, 64 insertions, 83 deletions
diff --git a/meta-oe/recipes-support/portaudio/files/ldflags.patch b/meta-oe/recipes-support/portaudio/files/ldflags.patch deleted file mode 100644 index aca93a51f2..0000000000 --- a/meta-oe/recipes-support/portaudio/files/ldflags.patch +++ /dev/null | |||
| @@ -1,51 +0,0 @@ | |||
| 1 | Upstream forgot to pass LDFLAGS to everything apart from the main library. | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
| 5 | |||
| 6 | diff --git a/Makefile.in b/Makefile.in | ||
| 7 | index 5e1a764..61ecdd1 100644 | ||
| 8 | --- a/Makefile.in | ||
| 9 | +++ b/Makefile.in | ||
| 10 | @@ -171,20 +171,20 @@ lib/$(PALIB): lib-stamp $(LTOBJS) $(MAKEFILE) $(PAINC) | ||
| 11 | @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) $(PA_LDFLAGS) -o lib/$(PALIB) $(LTOBJS) $(DLL_LIBS) | ||
| 12 | |||
| 13 | $(ALL_TESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) test/%.c | ||
| 14 | - @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) | ||
| 15 | - @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) | ||
| 16 | + @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) | ||
| 17 | + @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(top_srcdir)/test/$*.c lib/$(PALIB) $(LIBS) | ||
| 18 | |||
| 19 | $(EXAMPLES): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) examples/%.c | ||
| 20 | - @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS) | ||
| 21 | - @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS) | ||
| 22 | + @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS) | ||
| 23 | + @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(top_srcdir)/examples/$*.c lib/$(PALIB) $(LIBS) | ||
| 24 | |||
| 25 | $(SELFTESTS): bin/%: lib/$(PALIB) $(MAKEFILE) $(PAINC) qa/%.c | ||
| 26 | - @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS) | ||
| 27 | - @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS) | ||
| 28 | + @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS) | ||
| 29 | + @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(top_srcdir)/qa/$*.c lib/$(PALIB) $(LIBS) | ||
| 30 | |||
| 31 | bin/paloopback: lib/$(PALIB) $(MAKEFILE) $(PAINC) $(LOOPBACK_OBJS) | ||
| 32 | - @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS) | ||
| 33 | - @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS) | ||
| 34 | + @WITH_ASIO_FALSE@ $(LIBTOOL) --mode=link $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS) | ||
| 35 | + @WITH_ASIO_TRUE@ $(LIBTOOL) --mode=link --tag=CXX $(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(LOOPBACK_OBJS) lib/$(PALIB) $(LIBS) | ||
| 36 | |||
| 37 | install: lib/$(PALIB) portaudio-2.0.pc | ||
| 38 | $(INSTALL) -d $(DESTDIR)$(libdir) | ||
| 39 | @@ -224,10 +224,10 @@ distclean: clean | ||
| 40 | $(CC) -c $(CFLAGS) $< -o $@ | ||
| 41 | |||
| 42 | %.lo: %.c $(MAKEFILE) $(PAINC) | ||
| 43 | - $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $< -o $@ | ||
| 44 | + $(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $(LDFLAGS) $< -o $@ | ||
| 45 | |||
| 46 | %.lo: %.cpp $(MAKEFILE) $(PAINC) | ||
| 47 | - $(LIBTOOL) --mode=compile --tag=CXX $(CXX) -c $(CXXFLAGS) $< -o $@ | ||
| 48 | + $(LIBTOOL) --mode=compile --tag=CXX $(CXX) -c $(CXXFLAGS) $(LDFLAGS) $< -o $@ | ||
| 49 | |||
| 50 | %.o: %.cpp $(MAKEFILE) $(PAINC) | ||
| 51 | $(CXX) -c $(CXXFLAGS) $< -o $@ | ||
diff --git a/meta-oe/recipes-support/portaudio/portaudio-v19/0001-Find-jack.patch b/meta-oe/recipes-support/portaudio/portaudio-v19/0001-Find-jack.patch new file mode 100644 index 0000000000..d6c6300ecd --- /dev/null +++ b/meta-oe/recipes-support/portaudio/portaudio-v19/0001-Find-jack.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 8ec1b100afda5b3e31f9d44af04b04b16dfff2e4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com> | ||
| 3 | Date: Tue, 18 May 2021 00:15:46 +0200 | ||
| 4 | Subject: [PATCH] Find jack with pkgconfig | ||
| 5 | MIME-Version: 1.0 | ||
| 6 | Content-Type: text/plain; charset=UTF-8 | ||
| 7 | Content-Transfer-Encoding: 8bit | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | |||
| 11 | Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> | ||
| 12 | --- | ||
| 13 | CMakeLists.txt | 2 +- | ||
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 17 | index 122fe93..ab7d7f5 100644 | ||
| 18 | --- a/CMakeLists.txt | ||
| 19 | +++ b/CMakeLists.txt | ||
| 20 | @@ -274,7 +274,8 @@ ELSE() | ||
| 21 | |||
| 22 | ELSEIF(UNIX) | ||
| 23 | |||
| 24 | - FIND_PACKAGE(Jack) | ||
| 25 | + find_package(PkgConfig REQUIRED) | ||
| 26 | + pkg_check_modules (JACK jack) | ||
| 27 | IF(JACK_FOUND) | ||
| 28 | OPTION(PA_USE_JACK "Enable support for Jack" ON) | ||
| 29 | ELSE() | ||
| 30 | -- | ||
| 31 | 2.31.1 | ||
| 32 | |||
diff --git a/meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb b/meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb new file mode 100644 index 0000000000..3a0f7894f1 --- /dev/null +++ b/meta-oe/recipes-support/portaudio/portaudio-v19_19.7.0.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SUMMARY = "A portable audio library" | ||
| 2 | SECTION = "libs/multimedia" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df" | ||
| 5 | |||
| 6 | PV = "v190700" | ||
| 7 | |||
| 8 | SRC_URI = " \ | ||
| 9 | git://github.com/PortAudio/portaudio.git \ | ||
| 10 | file://0001-Find-jack.patch \ | ||
| 11 | " | ||
| 12 | SRCREV = "147dd722548358763a8b649b3e4b41dfffbcfbb6" | ||
| 13 | S = "${WORKDIR}/git" | ||
| 14 | |||
| 15 | inherit cmake | ||
| 16 | |||
| 17 | PACKAGECONFIG ??= "alsa jack" | ||
| 18 | PACKAGECONFIG[alsa] = ",,alsa-lib" | ||
| 19 | PACKAGECONFIG[jack] = ",,jack" | ||
| 20 | PACKAGECONFIG[examples] = "-DPA_BUILD_EXAMPLES=ON,-DPA_BUILD_EXAMPLES=OFF" | ||
| 21 | |||
| 22 | do_install_append() { | ||
| 23 | if [ -d ${B}/examples ]; then | ||
| 24 | install -d ${D}${bindir} | ||
| 25 | for example in ${B}/examples/pa*; do | ||
| 26 | install -m755 $example ${D}${bindir}/ | ||
| 27 | done | ||
| 28 | fi | ||
| 29 | } | ||
| 30 | |||
| 31 | FILES_SOLIBSDEV = "" | ||
| 32 | FILES_${PN} += "${libdir}/libportaudio.so" | ||
diff --git a/meta-oe/recipes-support/portaudio/portaudio-v19_20161030.bb b/meta-oe/recipes-support/portaudio/portaudio-v19_20161030.bb deleted file mode 100644 index 489f8ad9e2..0000000000 --- a/meta-oe/recipes-support/portaudio/portaudio-v19_20161030.bb +++ /dev/null | |||
| @@ -1,32 +0,0 @@ | |||
| 1 | SUMMARY = "A portable audio library" | ||
| 2 | SECTION = "libs/multimedia" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=26107732c2ab637c5710446fcfaf02df" | ||
| 5 | |||
| 6 | PV = "v190600" | ||
| 7 | |||
| 8 | SRC_URI = "http://www.portaudio.com/archives/pa_stable_v190600_20161030.tgz \ | ||
| 9 | file://ldflags.patch" | ||
| 10 | SRC_URI[md5sum] = "4df8224e047529ca9ad42f0521bf81a8" | ||
| 11 | SRC_URI[sha256sum] = "f5a21d7dcd6ee84397446fa1fa1a0675bb2e8a4a6dceb4305a8404698d8d1513" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/portaudio" | ||
| 14 | |||
| 15 | inherit autotools pkgconfig | ||
| 16 | |||
| 17 | PACKAGECONFIG ??= "alsa jack" | ||
| 18 | PACKAGECONFIG[alsa] = "--with-alsa, --without-alsa, alsa-lib," | ||
| 19 | PACKAGECONFIG[jack] = "--with-jack, --without-jack, jack," | ||
| 20 | |||
| 21 | EXTRA_OECONF = "--without-oss --without-asihpi" | ||
| 22 | |||
| 23 | do_install_append() { | ||
| 24 | mkdir --parents ${D}${bindir} | ||
| 25 | for b in ${B}/bin/pa*; do | ||
| 26 | # Bit nasty, should always work | ||
| 27 | ${B}/*-libtool --mode install install $b ${D}${bindir} | ||
| 28 | done | ||
| 29 | } | ||
| 30 | |||
| 31 | PACKAGES += "portaudio-examples" | ||
| 32 | FILES_portaudio-examples = "${bindir}" | ||
