From 73a8dc2fbe1fd9a1fecd5f6dbc70d521402de73e Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Tue, 30 Jul 2019 20:12:53 +0200 Subject: [PATCH] Recipe updates. --- src/main.cr | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/main.cr b/src/main.cr index f99f52e..84bfc63 100644 --- a/src/main.cr +++ b/src/main.cr @@ -52,6 +52,18 @@ recipes << Recipe.new(context, "apk-tools", "2.10.4").tap do |recipe| #recipe.build_dependencies << "zlib-dev" << "openssl-dev" end +recipes << Recipe.new(context, "abuild", "3.4.0").tap do |recipe| + recipe.sources << "https://dev.alpinelinux.org/archive/abuild/abuild-#{recipe.version}.tar.xz" +end + +recipes << Recipe.new(context, "make", "4.2").tap do |recipe| + recipe.sources << "https://ftp.gnu.org/gnu/make/make-#{recipe.version}.tar.gz" +end + +recipes << Recipe.new(context, "zlib", "1.2.11").tap do |recipe| + recipe.sources << "https://www.zlib.net/zlib-#{recipe.version}.tar.gz" +end + # Be careful with that one. It’s not configured to use proper prefixes. # (Not sure that it should though. It’s gotta put things in /sbin anyway.) recipes << Recipe.new(context, "sysvinit", "2.95").tap do |recipe| @@ -66,6 +78,9 @@ recipes << Recipe.new(context, "musl", "1.1.23").tap do |recipe| recipe.sources << "https://www.musl-libc.org/releases/musl-#{recipe.version}.tar.gz" recipe.url = "https://www.musl-libc.org/" recipe.description = "The musl c library (libc) implementation." + recipe.options["configure"] = "--prefix=/usr --libdir=/lib --syslibdir=/lib --enable-shared --enable-static" + # FIXME: We need to make a few symlinks (libm.so, libpthread.so, librt.so, libdl.so.) + # FIXME: We should probably add a ldd script too. end recipes << Recipe.new(context, "libffi", "3.2.1").tap do |recipe| @@ -107,7 +122,9 @@ end -DLLVM_ENABLE_ZLIB=ON \ -DLLVM_INCLUDE_EXAMPLES=OFF \ -DLLVM_LINK_LLVM_DYLIB=ON \ - -DCMAKE_BUILD_TYPE=Release + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="-fPIC -O2" \ + -DCMAKE_C_FLAGS="-fPIC -O2" EOF recipe.instructions.build << "pwd && ls && cd #{recipe.name}-#{recipe.version} && make" @@ -224,6 +241,15 @@ end recipes << Recipe.new(context, "pcre", "8.43").tap do |recipe| recipe.sources << "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-#{recipe.version}.tar.gz" + + recipe.options["configure"] = %( \ + --enable-utf8 \ + --enable-unicode-properties \ + --enable-pcre8 \ + --enable-pcre16 \ + --enable-pcre32 \ + --with-match-limit-recursion=8192 + ) end recipes << Recipe.new(context, "binutils", "2.32").tap do |recipe|