summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-06-02 03:04:26 -0700
committerMichael Forney <mforney@mforney.org>2020-06-02 04:22:27 -0700
commit0e9474b95e6db1ec0892950515971906008cc536 (patch)
tree488e1eff09dbdc67745f6c635bfa9a7c38952c10 /pkg
parent610f9097dcf15fc2c7f2c31b8b15e24b5bf591db (diff)
bzip2: Add header target
Diffstat (limited to 'pkg')
-rw-r--r--pkg/bzip2/gen.lua2
-rw-r--r--pkg/unzip/gen.lua6
2 files changed, 6 insertions, 2 deletions
diff --git a/pkg/bzip2/gen.lua b/pkg/bzip2/gen.lua
index 1f205773..09fed39f 100644
--- 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
index 89616c2e..ddaf3d1a 100644
--- 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'}