commit: a9a93cdf0f5474307fa0f3d967c4c9da08b927b6
parent c8115ced0c9c4a6733b54d7ec56cd63d5334ecce
Author: Michael Forney <mforney@mforney.org>
Date: Thu, 5 Nov 2020 18:34:29 -0800
mpv: Add optional sndio support (disabled by default)
Diffstat:
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/pkg/mpv/gen.lua b/pkg/mpv/gen.lua
@@ -124,27 +124,32 @@ for line in iterlines('sources.txt', 1) do
end
srcs = table.keys(srcs)
-if options['HAVE_ALSA'] then
+if options.HAVE_ALSA then
cflags{'-isystem $builddir/pkg/alsa-lib/include'}
table.insert(libs, 'alsa-lib/libasound.a')
table.insert(pkg.deps, 'pkg/alsa-lib/headers')
end
-if options['HAVE_DRM'] then
+if options.HAVE_SNDIO then
+ cflags{'-isystem $builddir/pkg/sndio/include'}
+ table.insert(libs, 'sndio/libsndio.a')
+ table.insert(pkg.deps, 'pkg/sndio/headers')
+end
+if options.HAVE_DRM then
cflags{'-isystem $builddir/pkg/libdrm/include'}
table.insert(libs, 'libdrm/libdrm.a')
table.insert(pkg.deps, 'pkg/libdrm/headers')
end
-if options['HAVE_LIBASS'] then
+if options.HAVE_LIBASS then
cflags{'-isystem $builddir/pkg/libass/include'}
table.insert(libs, 'libass/libass.a.d')
table.insert(pkg.deps, 'pkg/libass/headers')
end
-if options['HAVE_LUA'] then
+if options.HAVE_LUA then
cflags{'-isystem $builddir/pkg/lua/include'}
table.insert(libs, 'lua/liblua.a')
table.insert(pkg.deps, 'pkg/lua/headers')
end
-if options['HAVE_WAYLAND'] then
+if options.HAVE_WAYLAND then
cflags{
'-isystem $builddir/pkg/libxkbcommon/include',
'-isystem $builddir/pkg/wayland/include',