Skip to content

Commit

Permalink
main/portaudio: enable C++ binding, fix -devel dep
Browse files Browse the repository at this point in the history
  • Loading branch information
DaringCuteSeal authored and nekopsykose committed Sep 28, 2024
1 parent f170c40 commit 03dc80d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions main/portaudio-cpp
14 changes: 14 additions & 0 deletions main/portaudio/patches/fix-parallel.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
breaks with cpp enabled otherwise since this is recursive make and the dep won't wait
force .la to be emitted first.
--
--- a/Makefile.in
+++ b/Makefile.in
@@ -156,7 +156,8 @@
SUBDIRS =
@ENABLE_CXX_TRUE@SUBDIRS += bindings/cpp

all: lib/$(PALIB) all-recursive tests examples selftests
+all-recursive: | lib/$(PALIB)

tests: bin-stamp $(TESTS)

7 changes: 5 additions & 2 deletions main/portaudio/template.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
pkgname = "portaudio"
pkgver = "19.7.0"
pkgrel = 0
pkgrel = 1
build_style = "gnu_configure"
configure_args = ["--enable-cxx"]
configure_gen = ["autoreconf", "-fi", ".", "bindings/cpp"]
hostmakedepends = [
"automake",
"libtool",
"pkgconf",
"slibtool",
]
makedepends = [
"alsa-lib-devel",
Expand All @@ -32,4 +34,5 @@ def post_install(self):

@subpackage("portaudio-devel")
def _(self):
self.depends += ["alsa-lib-devel"]
return self.default_devel()

0 comments on commit 03dc80d

Please sign in to comment.