mirror of
https://github.com/oasislinux/oasis.git
synced 2026-02-05 11:33:57 +01:00
This is useful when man() is called with the optional 'section' parameter and can be used to replace components such as '.nro' with a '.(section)'. This was always the intention and fixes man page names for pciutils. Co-authored-by: Michael Forney <mforney@mforney.org>
34 lines
645 B
Lua
34 lines
645 B
Lua
cflags{
|
|
'-std=c99', '-Wall', '-Wpedantic', '-Wno-overflow',
|
|
'-D _POSIX_C_SOURCE=201112L',
|
|
'-I $srcdir/include',
|
|
'-isystem $builddir/pkg/linux-headers/include',
|
|
}
|
|
|
|
pkg.deps = {'pkg/linux-headers/headers'}
|
|
|
|
pkg.hdrs = copy('$outdir/include/tinyalsa', '$srcdir/include/tinyalsa', {
|
|
'attributes.h',
|
|
'pcm.h',
|
|
'mixer.h',
|
|
'asoundlib.h',
|
|
'version.h',
|
|
})
|
|
|
|
lib('libtinyalsa.a', [[
|
|
src/(
|
|
limits.c
|
|
pcm.c
|
|
pcm_hw.c
|
|
mixer.c
|
|
mixer_hw.c
|
|
)
|
|
]])
|
|
|
|
for _, tool in ipairs{'tinycap', 'tinymix', 'tinypcminfo', 'tinyplay'} do
|
|
file('bin/'..tool, '755', exe(tool, {'utils/'..tool..'.c', 'libtinyalsa.a'}))
|
|
man{'utils/'..tool..'.1'}
|
|
end
|
|
|
|
fetch 'git'
|