commit: 0e9474b95e6db1ec0892950515971906008cc536
parent 610f9097dcf15fc2c7f2c31b8b15e24b5bf591db
Author: Michael Forney <mforney@mforney.org>
Date: Tue, 2 Jun 2020 03:04:26 -0700
bzip2: Add header target
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/pkg/bzip2/gen.lua b/pkg/bzip2/gen.lua
@@ -1,5 +1,7 @@
cflags{'-Wall', '-Winline'}
+pkg.hdrs = copy('$outdir/include', '$srcdir', {'bzlib.h'})
+
lib('libbz2.a', {
'blocksort.c',
'huffman.c',
diff --git a/pkg/unzip/gen.lua b/pkg/unzip/gen.lua
@@ -1,16 +1,18 @@
cflags{
'-include $dir/config.h',
'-I $srcdir',
- '-I $basedir/pkg/bzip2/src',
+ '-I $builddir/pkg/bzip2/include',
}
+pkg.deps = {'pkg/bzip2/headers'}
+
exe('unzip', [[
unzip.c crc32.c crypt.c envargs.c explode.c
extract.c fileio.c globals.c inflate.c list.c match.c
process.c ttyio.c ubz2err.c unreduce.c unshrink.c zipinfo.c
unix/unix.c
$builddir/pkg/bzip2/libbz2.a
-]], {'pkg/bzip2/fetch'})
+]])
file('bin/unzip', '755', '$outdir/unzip')
man{'man/unzip.1'}