summaryrefslogtreecommitdiff
path: root/pkg/ffmpeg/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-01-08 01:13:27 -0800
committerMichael Forney <mforney@mforney.org>2021-01-20 17:42:57 -0800
commita29ab4aa1187566de81b055e9c3365d073f42ad5 (patch)
treef36272368924e2a798cf77c83d279c07b9bb7b4b /pkg/ffmpeg/gen.lua
parent01075ba722b91886f708fed7f6efcd80d32ea8d0 (diff)
ffmpeg: Allow building with openssl by changing options.h
Diffstat (limited to 'pkg/ffmpeg/gen.lua')
-rw-r--r--pkg/ffmpeg/gen.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/ffmpeg/gen.lua b/pkg/ffmpeg/gen.lua
index 6919ef9e..8fe7ecd1 100644
--- 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')