summaryrefslogtreecommitdiff
path: root/pkg/texi2mdoc
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-05-19 14:26:06 -0700
committerMichael Forney <mforney@mforney.org>2020-05-19 14:26:45 -0700
commitb93e7da0fd54496c6a977bcfab25b760ecb09ea0 (patch)
tree31326529738c41e1c12f537d7bb797021dc2a92f /pkg/texi2mdoc
parentbb8087edd206e9563d81115a39a927c36e9c1df7 (diff)
ffmpeg: Use locally-built texi2mdoc to generate man pages
Diffstat (limited to 'pkg/texi2mdoc')
-rw-r--r--pkg/texi2mdoc/.gitignore1
-rw-r--r--pkg/texi2mdoc/gen.lua7
2 files changed, 8 insertions, 0 deletions
diff --git a/pkg/texi2mdoc/.gitignore b/pkg/texi2mdoc/.gitignore
index b9da989d..4ed4e0e5 100644
--- a/pkg/texi2mdoc/.gitignore
+++ b/pkg/texi2mdoc/.gitignore
@@ -1,2 +1,3 @@
+/host.ninja
/src
/texi2mdoc-0.1.2.tgz
diff --git a/pkg/texi2mdoc/gen.lua b/pkg/texi2mdoc/gen.lua
index d8f26444..458f02dc 100644
--- a/pkg/texi2mdoc/gen.lua
+++ b/pkg/texi2mdoc/gen.lua
@@ -4,6 +4,13 @@ cflags{
'-Wall',
}
+sub('host.ninja', function()
+ toolchain(config.host)
+ cflags{'-D __BEGIN_DECLS=', '-D __END_DECLS='}
+ set('outdir', '$outdir/host')
+ exe('texi2mdoc', {'main.c', 'util.c'})
+end)
+
file('bin/texi2mdoc', '755', exe('texi2mdoc', {'main.c', 'util.c'}))
man{'texi2mdoc.1'}