diff options
| author | Michael Forney <mforney@mforney.org> | 2020-11-05 18:34:29 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-11-28 15:13:54 -0800 |
| commit | a9a93cdf0f5474307fa0f3d967c4c9da08b927b6 (patch) | |
| tree | be097407fda0476ea42fe91027a5ceee2bb45949 /pkg/mpv | |
| parent | c8115ced0c9c4a6733b54d7ec56cd63d5334ecce (diff) | |
mpv: Add optional sndio support (disabled by default)
Diffstat (limited to 'pkg/mpv')
| -rw-r--r-- | pkg/mpv/gen.lua | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkg/mpv/gen.lua b/pkg/mpv/gen.lua index d542bcd1..462d0b37 100644 --- 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', |
