Files
oasis-linux-mirror/pkg/alsa-utils/gen.lua
Michael Forney d4297a13c8 Use -isystem to include library headers
This way, warnings from headers that come from another package (in
particular linux-headers) won't show up when they get included.

To make sure we still track dependencies, use -MD instead of -MMD.
2020-06-05 03:01:44 -07:00

27 lines
570 B
Lua

cflags{
'-D _GNU_SOURCE=',
'-I $dir',
'-I $srcdir/include',
'-isystem $builddir/pkg/alsa-lib/include',
}
pkg.deps = {'pkg/alsa-lib/headers'}
local tools = {
{'amixer', {'amixer/amixer.c', 'alsamixer/volume_mapping.c'}},
{'aplay', {'aplay/aplay.c'}},
}
for _, tool in ipairs(tools) do
local name, srcs = tool[1], tool[2]
local out = 'bin/'..name
exe(out, {srcs, '$builddir/pkg/alsa-lib/libasound.a'})
file(out, '755', '$outdir/'..out)
man{name..'/'..name..'.1'}
end
sym('bin/arecord', 'aplay')
sym('share/man/man1/arecord.1.gz', 'aplay.1.gz')
fetch 'git'