-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[portaudio] Control deps, cleanup #43323
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 122fe93..8983f85 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -288,7 +288,8 @@ ELSE() | ||
SET(PA_SOURCES ${PA_SOURCES} ${PA_JACK_SOURCES}) | ||
SET(PA_PRIVATE_COMPILE_DEFINITIONS ${PA_PRIVATE_COMPILE_DEFINITIONS} PA_USE_JACK) | ||
SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ${JACK_LIBRARIES}) | ||
- SET(PA_PKGCONFIG_LDFLAGS "${PA_PKGCONFIG_LDFLAGS} -ljack") | ||
+ SET(PA_LIBRARY_DEPENDENCIES ${PA_LIBRARY_DEPENDENCIES} ${CMAKE_DL_LIBS}) | ||
+ SET(PA_PKGCONFIG_REQUIRES_PRIVATE "${PA_PKGCONFIG_REQUIRES_PRIVATE} jack") | ||
ENDIF() | ||
|
||
FIND_PACKAGE(ALSA) | ||
diff --git a/cmake_support/portaudio-2.0.pc.in b/cmake_support/portaudio-2.0.pc.in | ||
index 738803d..24b211c 100644 | ||
--- a/cmake_support/portaudio-2.0.pc.in | ||
+++ b/cmake_support/portaudio-2.0.pc.in | ||
@@ -6,6 +6,7 @@ includedir=${prefix}/include | ||
Name: PortAudio | ||
Description: Portable audio I/O | ||
Requires: | ||
+Requires.private: @PA_PKGCONFIG_REQUIRES_PRIVATE@ | ||
Version: @PA_PKGCONFIG_VERSION@ | ||
|
||
Libs: -L${libdir} -lportaudio @PA_PKGCONFIG_LDFLAGS@ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"name": "portaudio", | ||
"version": "19.7", | ||
"port-version": 5, | ||
"port-version": 6, | ||
"description": "PortAudio Portable Cross-platform Audio I/O API PortAudio is a free, cross-platform, open-source, audio I/O library. It lets you write simple audio programs in 'C' or C++ that will compile and run on many platforms including Windows, Macintosh OS X, and Unix (OSS/ALSA). It is intended to promote the exchange of audio software between developers on different platforms. Many applications use PortAudio for Audio I/O.", | ||
"homepage": "http://www.portaudio.com", | ||
"license": "MIT", | ||
"supports": "!uwp", | ||
"dependencies": [ | ||
{ | ||
"name": "jack2", | ||
"platform": "!ios & !osx & !windows" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We distribute Mixxx with Jack support on macOS and Windows. I am unsure how the upstream status is right now. Do you have interest to integrate our patches? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No extra patches to the old CMakeLists.txt. Portaudio needs to make a release. |
||
}, | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes the Windows version of the port barely useable, as ASIO is the standard for all proffesional audio equipment on Windows. Why not linking the VCPKG asiosdk port as dependency or default feature here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original behavior is not acceptable. The port must not pick dependencies just because they are present in arbitrary locations. I can fix this broken behavior only by disabling asiosdk, because I cannot test the configuration with asiosdk.
asiosdk
.