summaryrefslogtreecommitdiff
path: root/etc/imports/zlib.TARGETS
diff options
context:
space:
mode:
Diffstat (limited to 'etc/imports/zlib.TARGETS')
-rw-r--r--etc/imports/zlib.TARGETS17
1 files changed, 17 insertions, 0 deletions
diff --git a/etc/imports/zlib.TARGETS b/etc/imports/zlib.TARGETS
new file mode 100644
index 0000000..a787252
--- /dev/null
+++ b/etc/imports/zlib.TARGETS
@@ -0,0 +1,17 @@
+{ "zlib":
+ { "type": "export"
+ , "target": "libz"
+ , "flexible_config": ["ARCH", "TARGET_ARCH", "TOOLCHAIN_CONFIG", "ENV"]
+ }
+, "libz":
+ { "type": ["@", "rules", "CC/foreign/shell", "data"]
+ , "project": [["TREE", null, "."]]
+ , "cmds":
+ [ "export NJOBS=$(nproc --all 2>/dev/null || echo 1)"
+ , "rm Makefile"
+ , "./configure --static --prefix=/ >configure.log 2>&1 || (cat configure.log && exit 1)"
+ , "${MAKE} -j${NJOBS} install DESTDIR=${DESTDIR} >build.log 2>&1 || (cat configure.log build.log && exit 1)"
+ ]
+ , "out_dirs": ["."]
+ }
+}