Skip to content

Commit

Permalink
Merge pull request #20 from Be-ing/portaudio-jack
Browse files Browse the repository at this point in the history
build PortAudio with JACK support
  • Loading branch information
Be-ing authored Aug 1, 2021
2 parents 3f2bcb1 + 652cd69 commit 4a9c13c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
16 changes: 9 additions & 7 deletions overlay/ports/portaudio/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@ vcpkg_fail_port_install(ON_TARGET "uwp")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Be-ing/portaudio
REF 0f7ab8fe8b4ab73d9c301385d67eee367d4f3dcc
SHA512 9f75f579349d776c93538f3aa8f4133d148da53029c73bc7635e2a2191709389e29d1f492ae6063b0ae768d4ae0b28738f6fddc65256d3eb1ac31fbba2f9eded
REF 62455aa6b4791f714ab8c2f2857af54f93760115
SHA512 5864e4d36e2532fce1f79bfbbe6fef5304d45cf647e8413761f1b69cc3c7dbe87758c3c4a9a8d34290db92ebe6ca055755460b2db528cb8491cbe22b28304ca0
HEAD_REF cmake_rewrite
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES
asio ASIO
jack JACK
)

vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS ${FEATURE_OPTIONS}
# The ASIO variable is only used on Windows.
MAYBE_UNUSED_VARIABLES ASIO
OPTIONS_DEBUG -DDEBUG_OUTPUT:BOOL=ON
PREFER_NINJA
)
vcpkg_cmake_install()

vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()

Expand Down
19 changes: 17 additions & 2 deletions overlay/ports/portaudio/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
{
"name": "portaudio",
"version-string": "2021-02-09",
"version-string": "2021-07-31",
"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": "https://app.assembla.com/spaces/portaudio/wiki",
"license": "MIT",
"supports": "!uwp",
"default-features": [ "jack" ],
"features": {
"jack": {
"description": "Build with support for the JACK Audio Connection Kit host API.",
"dependencies": [ "jack2" ]
},
"asio": {
"description": "Build with support for ASIO host API. This automatically downloads the ASIO SDK from Steinberg. Review the ASIO SDK license for details https://www.steinberg.net/en/company/developers.html"
}
}
},
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

0 comments on commit 4a9c13c

Please sign in to comment.