summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander M Pickering <alex@cogarr.net>2024-09-17 10:27:25 -0500
committerAlexander M Pickering <alex@cogarr.net>2024-09-17 10:27:25 -0500
commitcf0c122e007d21c7e6ee683f278823aa1c55deb3 (patch)
treece18219bb6fcb5670ad6702bf116e575e412e96a
parent2a5bfff40d0e5108a4ee15b68e746969bff97fcc (diff)
downloadzlib-packaging-cf0c122e007d21c7e6ee683f278823aa1c55deb3.tar.gz
zlib-packaging-cf0c122e007d21c7e6ee683f278823aa1c55deb3.tar.bz2
zlib-packaging-cf0c122e007d21c7e6ee683f278823aa1c55deb3.zip
Start working on libz
-rwxr-xr-xinit5
-rw-r--r--meta.lua33
2 files changed, 34 insertions, 4 deletions
diff --git a/init b/init
index 642d265..7668c42 100755
--- a/init
+++ b/init
@@ -1 +1,6 @@
1#!/bin/sh -ex 1#!/bin/sh -ex
2
3cd zlib
4./configure
5make "CFLAGS=$CFLAGS" libz.a
6cp libz.a /root
diff --git a/meta.lua b/meta.lua
index e04c8f2..439e38d 100644
--- a/meta.lua
+++ b/meta.lua
@@ -1,6 +1,31 @@
1return { 1
2 ["zlib"] = { 2local optimizations = {
3 tiny = "-Oz",
4 size = "-Os",
5 debug = "-Og",
6 zero = "-O0",
7 one = "-O1",
8 two = "-O2",
9 three = "-O3",
10}
11local debug = {
12 release = "",
13 debug = "-g",
14}
15local compilers = {--[["mingw32",]]"mingw64"--[[,"clang32","clang64"]]}
16local builds = {}
17
18for opti_k, opti_v, rel_k, rel_v, comp_k, comp_v in cartesian(optimizations, debug, compilers) do
19 builds["libz-" .. opti_k .. "-" .. rel_k .. "-" .. comp_k] = {
20 image = "image-" .. comp_k,
3 requires = {}, 21 requires = {},
4 produces = {}, 22 produces = {
23 ["libz.a"] = true
24 },
25 env = {
26 CFLAGS=" " .. opti_v .. " " .. rel_v
27 }
5 } 28 }
6} 29end
30
31return builds