aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Noël <joe.noel@focusrite.com>2021-04-02 21:25:21 +0100
committerGitHub <noreply@github.com>2021-04-02 13:25:21 -0700
commit23c1c65fc7d7142ea7ed5f6e1f0f0296e31d9fb5 (patch)
treef805514f262809839326d29074119a541b5ce40f
parent4ec290c716a258ec9c5e8c51051ee1f8a693d31d (diff)
downloadvcpkg-23c1c65fc7d7142ea7ed5f6e1f0f0296e31d9fb5.tar.gz
vcpkg-23c1c65fc7d7142ea7ed5f6e1f0f0296e31d9fb5.zip
[libsoundio] Add support for linux backends (#16891)
* Add support for linux backends * Run vcpkg format-manifest * Bump version * Run vcpkg-format * Add version * Use vcpkg_check_features * Use version instead of version-string * Update version * Update versions/l-/libsoundio.json Co-authored-by: Victor Romero <romerosanchezv@gmail.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
-rw-r--r--ports/libsoundio/CONTROL5
-rw-r--r--ports/libsoundio/portfile.cmake11
-rw-r--r--ports/libsoundio/vcpkg.json22
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/l-/libsoundio.json5
5 files changed, 37 insertions, 10 deletions
diff --git a/ports/libsoundio/CONTROL b/ports/libsoundio/CONTROL
deleted file mode 100644
index d8abcf070..000000000
--- a/ports/libsoundio/CONTROL
+++ /dev/null
@@ -1,5 +0,0 @@
-Source: libsoundio
-Version: 2.0.0-3
-Description: libsoundio is C library providing cross-platform audio input and output.
-Homepage: http://libsound.io/
-Supports: !uwp \ No newline at end of file
diff --git a/ports/libsoundio/portfile.cmake b/ports/libsoundio/portfile.cmake
index acf4d9fc6..3b5081cf9 100644
--- a/ports/libsoundio/portfile.cmake
+++ b/ports/libsoundio/portfile.cmake
@@ -14,6 +14,13 @@ vcpkg_from_github(
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_DYNAMIC_LIBS)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ alsa ENABLE_ALSA
+ jack ENABLE_JACK
+ pulseaudio ENABLE_PULSEAUDIO
+)
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
@@ -22,9 +29,7 @@ vcpkg_configure_cmake(
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
-DBUILD_EXAMPLE_PROGRAMS=OFF
-DBUILD_TESTS=OFF
- -DENABLE_JACK=OFF
- -DENABLE_PULSEAUDIO=OFF
- -DENABLE_ALSA=OFF
+ ${FEATURE_OPTIONS}
-DENABLE_COREAUDIO=${VCPKG_TARGET_IS_OSX}
-DENABLE_WASAPI=${VCPKG_TARGET_IS_WINDOWS}
)
diff --git a/ports/libsoundio/vcpkg.json b/ports/libsoundio/vcpkg.json
new file mode 100644
index 000000000..6dc71724b
--- /dev/null
+++ b/ports/libsoundio/vcpkg.json
@@ -0,0 +1,22 @@
+{
+ "name": "libsoundio",
+ "version": "2.0.0",
+ "port-version": 4,
+ "description": "libsoundio is C library providing cross-platform audio input and output.",
+ "homepage": "http://libsound.io/",
+ "supports": "!uwp",
+ "features": {
+ "alsa": {
+ "description": "ALSA backend for libsoundio"
+ },
+ "jack": {
+ "description": "JACK backend for libsoundio",
+ "dependencies": [
+ "jack2"
+ ]
+ },
+ "pulseaudio": {
+ "description": "PulseAudio backend for libsoundio"
+ }
+ }
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 57742facb..a189f8857 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -3457,8 +3457,8 @@
"port-version": 4
},
"libsoundio": {
- "baseline": "2.0.0-3",
- "port-version": 0
+ "baseline": "2.0.0",
+ "port-version": 4
},
"libspatialindex": {
"baseline": "1.9.0",
diff --git a/versions/l-/libsoundio.json b/versions/l-/libsoundio.json
index 57de025bf..083e8b901 100644
--- a/versions/l-/libsoundio.json
+++ b/versions/l-/libsoundio.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "96de946826ca6aafdc9409f9d75f02a6d082cffb",
+ "version": "2.0.0",
+ "port-version": 4
+ },
+ {
"git-tree": "b7c77d32f74a10cb1ff43cb80c15d6a6f65d5d53",
"version-string": "2.0.0-3",
"port-version": 0