aboutsummaryrefslogtreecommitdiff
path: root/multimedia/pipewire/files
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2021-12-24 18:13:01 +0000
committerGleb Popov <arrowd@FreeBSD.org>2021-12-24 18:14:03 +0000
commit463583e8beb0757fbfb2eeb360f1f23e7f7791b0 (patch)
tree94aad774659d9b46dbd98f8a1c24f367e94a2737 /multimedia/pipewire/files
parent9d3c1f8ac5801fa8c9d1bc2d79e15d68e0fbe46a (diff)
downloadports-463583e8beb0757fbfb2eeb360f1f23e7f7791b0.tar.gz
ports-463583e8beb0757fbfb2eeb360f1f23e7f7791b0.zip
multimedia/pipewire: Teach the port to use OpenSSL.
Enable raop plugin that was previosly disabled. PR: 260646
Diffstat (limited to 'multimedia/pipewire/files')
-rw-r--r--multimedia/pipewire/files/patch-meson.build20
-rw-r--r--multimedia/pipewire/files/patch-src_modules_module-raop-sink.c10
2 files changed, 30 insertions, 0 deletions
diff --git a/multimedia/pipewire/files/patch-meson.build b/multimedia/pipewire/files/patch-meson.build
new file mode 100644
index 000000000000..aede0d2849bc
--- /dev/null
+++ b/multimedia/pipewire/files/patch-meson.build
@@ -0,0 +1,20 @@
+--- meson.build.orig 2021-12-16 08:17:48 UTC
++++ meson.build
+@@ -427,7 +427,16 @@ need_alsa = get_option('pipewire-alsa').enabled() or '
+ alsa_dep = dependency('alsa', version : '>=1.1.7', required: need_alsa)
+ summary({'pipewire-alsa': alsa_dep.found()}, bool_yn: true)
+
+-openssl_lib = dependency('openssl', required: get_option('raop'))
++if build_machine.system() == 'freebsd'
++ # On FreeBSD the OpenSSL library may come from base or a package.
++ # Check for a package first and fallback to the base library if we can't find it via pkgconfig
++ openssl_lib = dependency('openssl', required: false)
++ if not openssl_lib.found()
++ openssl_lib = declare_dependency(link_args : [ '-lssl', '-lcrypto'])
++ endif
++else
++ openssl_lib = dependency('openssl', required: get_option('raop'))
++endif
+ summary({'OpenSSL (for raop-sink)': openssl_lib.found()}, bool_yn: true)
+
+ lilv_lib = dependency('lilv-0', required: get_option('lv2'))
diff --git a/multimedia/pipewire/files/patch-src_modules_module-raop-sink.c b/multimedia/pipewire/files/patch-src_modules_module-raop-sink.c
new file mode 100644
index 000000000000..d6f4bc73a623
--- /dev/null
+++ b/multimedia/pipewire/files/patch-src_modules_module-raop-sink.c
@@ -0,0 +1,10 @@
+--- src/modules/module-raop-sink.c.orig 2021-12-16 08:17:48 UTC
++++ src/modules/module-raop-sink.c
+@@ -35,6 +35,7 @@
+ #include <limits.h>
+ #include <math.h>
+ #include <arpa/inet.h>
++#include <netinet/in.h>
+
+ #include <openssl/err.h>
+ #include <openssl/rand.h>