diff options
| author | Michael Forney <mforney@mforney.org> | 2017-09-22 19:52:51 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-09-25 19:36:41 -0700 |
| commit | 70859aff39395cb99bb85af1b178e9554b7c8af3 (patch) | |
| tree | 6b5284882f25d5c2f3ed16c218282c4d3afb37be /pkg | |
| parent | 986c031e1c6d9861c8f102519c9beb6e1484a5f2 (diff) | |
ffmpeg: Use texi2mdoc to build man pages
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/ffmpeg/gen.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/ffmpeg/gen.lua b/pkg/ffmpeg/gen.lua index fb610a87..0c5f6122 100644 --- a/pkg/ffmpeg/gen.lua +++ b/pkg/ffmpeg/gen.lua @@ -22,6 +22,9 @@ set('nasmflags', { build('awk', '$outdir/config.asm', '$dir/options.h', { expr=[['{print "%define " substr($$0, length("#define ") + 1)}']], }) +build('awk', '$outdir/config.texi', '$dir/options.h', { + expr=[['$$3 == "1" {gsub("_", "-", $$2); print "@set", tolower($$2), "yes"}']], +}) build('awk', '$outdir/internal/libavcodec/bsf_list.c', {'$dir/options.h', '|', '$dir/bitstream_filters.awk'}, { expr='-f $dir/bitstream_filters.awk', }) @@ -339,4 +342,9 @@ file('bin/ffprobe', '755', '$outdir/ffprobe') exe('ffmpeg', {'ffmpeg.c', 'ffmpeg_opt.c', 'ffmpeg_filter.c', 'cmdutils.c.o', libs}) file('bin/ffmpeg', '755', '$outdir/ffmpeg') +rule('texi2mdoc', 'texi2mdoc -I $outdir $in >$out.tmp && mv $out.tmp $out') +build('texi2mdoc', '$outdir/ffprobe.1', {'$srcdir/doc/ffprobe.texi', '|', '$outdir/config.texi'}) +build('texi2mdoc', '$outdir/ffmpeg.1', {'$srcdir/doc/ffmpeg.texi', '|', '$outdir/config.texi'}) +man{'$outdir/ffprobe.1', '$outdir/ffmpeg.1'} + fetch 'git' |
