diff options
| author | Michael Forney <mforney@mforney.org> | 2017-09-17 00:03:34 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2017-09-25 19:23:06 -0700 |
| commit | ba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (patch) | |
| tree | 48ac6c85baa7b9d960b9e1e726a906e61ca60967 /pkg/expat | |
| parent | cb362b531d79708a259bbf070dee5104fd63df08 (diff) | |
Rewrite ninja generation scripts in Lua
Diffstat (limited to 'pkg/expat')
| -rw-r--r-- | pkg/expat/gen.lua | 18 | ||||
| -rw-r--r-- | pkg/expat/gen.rc | 14 |
2 files changed, 18 insertions, 14 deletions
diff --git a/pkg/expat/gen.lua b/pkg/expat/gen.lua new file mode 100644 index 00000000..6b464b84 --- /dev/null +++ b/pkg/expat/gen.lua @@ -0,0 +1,18 @@ +cflags{ + '-D HAVE_EXPAT_CONFIG_H', + '-I include', + '-I $dir', + '-I pkg/openbsd/include', +} + +lib('libexpat.a', [[ + expat/lib/(loadlibrary.c xmlparse.c xmltok.c xmlrole.c) + $builddir/pkg/openbsd/libbsd.a.d +]]) + +pkg.hdrs = copy('$outdir/include', '$srcdir/expat/lib', { + 'expat.h', + 'expat_external.h', +}) + +fetch 'git' diff --git a/pkg/expat/gen.rc b/pkg/expat/gen.rc deleted file mode 100644 index 1fe0b54a..00000000 --- a/pkg/expat/gen.rc +++ /dev/null @@ -1,14 +0,0 @@ -cflags\ - -D HAVE_EXPAT_CONFIG_H\ - -I include\ - -I '$dir' \ - -I pkg/openbsd/include - -lib libexpat.a expat/lib/^(loadlibrary.c xmlparse.c xmltok.c xmlrole.c)\ - '$builddir'/pkg/openbsd/libbsd.a.d - -hdrs=(expat.h expat_external.h) -for(hdr in $hdrs) build '$outdir'/include/$hdr copy '$srcdir'/expat/lib/$hdr -phony headers '$outdir'/include/$hdrs - -fetch git |
