commit: a29ab4aa1187566de81b055e9c3365d073f42ad5
parent 01075ba722b91886f708fed7f6efcd80d32ea8d0
Author: Michael Forney <mforney@mforney.org>
Date: Fri, 8 Jan 2021 01:13:27 -0800
ffmpeg: Allow building with openssl by changing options.h
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/pkg/ffmpeg/gen.lua b/pkg/ffmpeg/gen.lua
@@ -116,6 +116,12 @@ if options.CONFIG_TLS_PROTOCOL and options.CONFIG_LIBTLS then
table.insert(sources.libavformat, '$builddir/pkg/libtls-bearssl/libtls.a.d')
end
+if options.CONFIG_TLS_PROTOCOL and options.CONFIG_OPENSSL then
+ cflags{'-isystem $builddir/pkg/libressl/include'}
+ table.insert(pkg.deps, 'pkg/libressl/headers')
+ table.insert(sources.libavformat, '$builddir/pkg/libressl/libssl.a.d')
+end
+
if options.CONFIG_LIBOPUS_ENCODER or options.CONFIG_LIBOPUS_DECODER then
cflags{'-isystem $builddir/pkg/opus/include'}
table.insert(pkg.deps, 'pkg/opus/headers')