File builders/gnutls-0/builder.sh changed (mode: 100644) (index 571d76f..9f9222b) |
1 |
1 |
src_name=gnutls |
src_name=gnutls |
2 |
|
version=3.6.6 |
|
|
2 |
|
version=3.6.9 |
3 |
3 |
archive_name=$src_name-$version.tar.xz |
archive_name=$src_name-$version.tar.xz |
4 |
4 |
url0=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.6/$archive_name |
url0=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.6/$archive_name |
5 |
5 |
|
|
|
... |
... |
export PATH=$cross_toolchain_dir_root/bin:$PATH |
24 |
24 |
export PKG_CONFIG_LIBDIR=/nyan/nettle/current/lib/pkgconfig:/nyan/libtasn1/current/lib/pkgconfig |
export PKG_CONFIG_LIBDIR=/nyan/nettle/current/lib/pkgconfig:/nyan/libtasn1/current/lib/pkgconfig |
25 |
25 |
|
|
26 |
26 |
# need to find GNU GMP and GNU unistring and GNU libidn2 headers, we must add manually the libtasn1 headers location due to some bug in some autotools rules |
# need to find GNU GMP and GNU unistring and GNU libidn2 headers, we must add manually the libtasn1 headers location due to some bug in some autotools rules |
27 |
|
export "CPPFLAGS=-I/nyan/toolchains/current/include -I/nyan/libunistring/current/include -I/nyan/libidn2/current/include $(pkg-config --cflags-only-I libtasn1)" |
|
|
27 |
|
export "CPPFLAGS=-I/nyan/toolchains/0/include -I/nyan/libunistring/0/include -I/nyan/libidn2/0/include $(pkg-config --cflags-only-I libtasn1)" |
28 |
28 |
# at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option |
# at link time, the only way to tell gnu ld where to look for shared lib dependencies is to pass the -rpath-link option |
29 |
29 |
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" |
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" |
30 |
30 |
export 'CFLAGS=-O2 -pipe -fPIC' |
export 'CFLAGS=-O2 -pipe -fPIC' |
31 |
31 |
# need to find GNU GMP and GNU unistring and GNU libidn2 libs |
# need to find GNU GMP and GNU unistring and GNU libidn2 libs |
32 |
32 |
export "LDFLAGS=-L/nyan/toolchains/current/lib -L/nyan/libunistring/current/lib -L/nyan/libidn2/current/lib" |
export "LDFLAGS=-L/nyan/toolchains/current/lib -L/nyan/libunistring/current/lib -L/nyan/libidn2/current/lib" |
33 |
33 |
$src_dir/configure \ |
$src_dir/configure \ |
34 |
|
--prefix=/nyan/gnutls/0 \ |
|
|
34 |
|
--prefix=/nyan/gnutls/1 \ |
35 |
35 |
--enable-threads=posix \ |
--enable-threads=posix \ |
36 |
36 |
--disable-code-coverage \ |
--disable-code-coverage \ |
37 |
37 |
--enable-tools \ |
--enable-tools \ |
|
... |
... |
make -j $threads_n |
58 |
58 |
make install |
make install |
59 |
59 |
|
|
60 |
60 |
# cleanup and tidying |
# cleanup and tidying |
61 |
|
rm -f /nyan/$src_name/0/lib/*.la |
|
62 |
|
strip -s /nyan/$src_name/0/bin/* || true |
|
|
61 |
|
rm -f /nyan/$src_name/1/lib/*.la |
|
62 |
|
strip -s /nyan/$src_name/1/bin/* || true |
63 |
63 |
# **** WARNING **** since there are issues with pkg-config files, choose not to |
# **** WARNING **** since there are issues with pkg-config files, choose not to |
64 |
64 |
# use them |
# use them |
65 |
|
rm -Rf /nyan/$src_name/0/lib/pkgconfig |
|
|
65 |
|
rm -Rf /nyan/$src_name/1/lib/pkgconfig |
66 |
66 |
|
|
67 |
67 |
rm -Rf $build_dir $src_dir |
rm -Rf $build_dir $src_dir |
68 |
68 |
export PATH=$OLD_PATH |
export PATH=$OLD_PATH |
File builders/libressl-1/builder.sh changed (mode: 100644) (index 3ba39f6..50afe83) |
1 |
1 |
src_name=libressl |
src_name=libressl |
2 |
|
version=2.9.0 |
|
|
2 |
|
version=3.0.2 |
3 |
3 |
archive_name=$src_name-$version.tar.gz |
archive_name=$src_name-$version.tar.gz |
4 |
4 |
url0=https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/$archive_name |
url0=https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/$archive_name |
5 |
5 |
|
|
|
6 |
|
slot=1 |
|
7 |
|
|
6 |
8 |
src_dir=$src_dir_root/$src_name-$version |
src_dir=$src_dir_root/$src_name-$version |
7 |
9 |
cd $src_dir_root |
cd $src_dir_root |
8 |
10 |
rm -Rf $src_name-$version |
rm -Rf $src_name-$version |
|
... |
... |
cd $build_dir |
17 |
19 |
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" |
export "CC=gcc -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc" |
18 |
20 |
export 'CFLAGS=-O2 -pipe -fPIC' |
export 'CFLAGS=-O2 -pipe -fPIC' |
19 |
21 |
$src_dir/configure \ |
$src_dir/configure \ |
20 |
|
--prefix=/nyan/libressl/1 \ |
|
|
22 |
|
--prefix=/nyan/$src_name/$slot \ |
21 |
23 |
--disable-shared \ |
--disable-shared \ |
22 |
|
--enable-nc |
|
|
24 |
|
--enable-nc >/tmp/l 2>&1 |
23 |
25 |
unset CFLAGS |
unset CFLAGS |
24 |
26 |
unset CC |
unset CC |
25 |
27 |
|
|
|
... |
... |
make -j $threads_n |
27 |
29 |
make install |
make install |
28 |
30 |
|
|
29 |
31 |
# cleanup and tidying |
# cleanup and tidying |
30 |
|
rm -Rf /nyan/$src_name/1/share |
|
31 |
|
rm -f /nyan/$src_name/1/lib/*.la |
|
32 |
|
strip -s /nyan/$src_name/1/bin/* || true |
|
|
32 |
|
rm -Rf /nyan/$src_name/$slot/share |
|
33 |
|
rm -f /nyan/$src_name/$slot/lib/*.la |
|
34 |
|
strip -s /nyan/$src_name/$slot/bin/* || true |
33 |
35 |
|
|
34 |
36 |
rm -Rf $build_dir $src_dir |
rm -Rf $build_dir $src_dir |