diff --git a/patches/openssl/jinx-working-patch.patch b/patches/openssl/jinx-working-patch.patch new file mode 100644 index 00000000..f83271c4 --- /dev/null +++ b/patches/openssl/jinx-working-patch.patch @@ -0,0 +1,40 @@ +diff --git openssl-clean/Configurations/10-main.conf openssl-workdir/Configurations/10-main.conf +index 2a047ca..357fd04 100644 +--- openssl-clean/Configurations/10-main.conf ++++ openssl-workdir/Configurations/10-main.conf +@@ -192,6 +192,35 @@ my %targets = ( + thread_scheme => "(unknown)", + }, + ++#### Astral config ++ "astral-generic64" => { ++ inherit_from => [ "BASE_unix" ], ++ CFLAGS => picker(default => "-Wall", ++ debug => "-O0 -g", ++ release => "-O3"), ++ CXXFLAGS => picker(default => "-Wall", ++ debug => "-O0 -g", ++ release => "-O3"), ++ cxxflags => add("-std=c++11"), ++ lib_cppflags => combine("-DOPENSSL_USE_NODELETE", "-DL_ENDIAN"), ++ bn_ops => "SIXTY_FOUR_BIT_LONG RC4_CHAR", ++ thread_scheme => "pthreads", ++ dso_scheme => "dlfcn", ++ shared_target => "linux-shared", ++ shared_cflag => "-fPIC", ++ shared_ldflag => sub { $disabled{pinshared} ? () : "-Wl,-znodelete" }, ++ shared_extension => ".so.\$(SHLIB_VERSION_NUMBER)", ++ }, ++ ++ "x86_64-astral" => { ++ inherit_from => [ "astral-generic64", asm("x86_64_asm") ], ++ perlasm_scheme => "elf", ++ ++ CC => "x86_64-astral-gcc", ++ CXX => "x86_64-astral-g++", ++ ++ }, ++ + #### VOS Configurations + "vos-gcc" => { + inherit_from => [ "BASE_unix" ], diff --git a/recipes/links b/recipes/links new file mode 100644 index 00000000..6113fb34 --- /dev/null +++ b/recipes/links @@ -0,0 +1,17 @@ +name=links +revision=1 +from_source=links +imagedeps="meson ninja base-devel libpng" +hostdeps="xgcc xbinutils pkgconfig" +deps="mlibc zlib openssl bzip2 libpng libxext freetype fontconfig" + +# TODO libjpeg + +build() { + CC=x86_64-astral-gcc ${source_dir}/configure --prefix=${prefix} --host=x86_64-astral --enable-graphics --without-directfb --without-librsvg --with-bzip2 --with-X --x-includes=${sysroot_dir}/usr/include --x-libraries=${sysroot_dir}/usr/lib --with-zlib --with-openssl --without-libtiff --without-openmp --without-lzma --with-freetype --without-ipv6 + make -j${parallelism} +} + +package() { + make DESTDIR=${dest_dir} install +} diff --git a/recipes/openssl b/recipes/openssl new file mode 100644 index 00000000..95b55bf6 --- /dev/null +++ b/recipes/openssl @@ -0,0 +1,16 @@ +name=openssl +revision=1 +from_source=openssl +imagedeps="gcc" +hostdeps="xgcc xbinutils" +deps="mlibc zlib" + +build() { + cp -rpv ${source_dir}/* . + CC=x86_64-astral-gcc CXX=x86_64-astral-gcc ./Configure --prefix=/usr --openssldir=/etc/ssl --libdir=lib "x86_64-astral" shared zlib-dynamic no-afalgeng + make -j ${parallelism} +} + +package() { + make install MANSUFFIX=ssl DESTDIR=${dest_dir} +} diff --git a/recipes/pcre2 b/recipes/pcre2 new file mode 100644 index 00000000..7f90c3a4 --- /dev/null +++ b/recipes/pcre2 @@ -0,0 +1,15 @@ +name=pcre2 +revision=1 +from_source=pcre2 +imagedeps="gcc" +hostdeps="xgcc xbinutils" +deps="mlibc zlib bzip2" + +build() { + ${source_dir}/configure --host=x86_64-astral --prefix=${prefix} --docdir=/usr/share/doc/pcre2-10.42 --enable-pcre2-16 --enable-pcre2-32 --enable-pcre2grep-libz --enable-pcre2grep-libbz2 --disable-static + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/recipes/wget b/recipes/wget new file mode 100644 index 00000000..2319f55c --- /dev/null +++ b/recipes/wget @@ -0,0 +1,16 @@ +name=wget +revision=1 +from_source=wget +imagedeps="base-devel" +hostdeps="xgcc xbinutils pkgconfig" +deps="mlibc zlib pcre2 openssl" + +build() { + cp -rpv ${source_dir}/* . + ./configure --host=x86_64-astral --prefix=${prefix} --without-libpsl --with-ssl=openssl + make -j ${parallelism} +} + +package() { + make install DESTDIR=${dest_dir} +} diff --git a/source-recipes/links b/source-recipes/links new file mode 100644 index 00000000..d2015bb8 --- /dev/null +++ b/source-recipes/links @@ -0,0 +1,11 @@ +name=links +version=2.29 +source_method=tarball +tarball_url="http://links.twibright.com/download/links-${version}.tar.gz" +tarball_sha512=8ebcc63b5f2c70039079f7aa7d35382a3ae692453561af534d8d44db51d73a9f9cb1e55fc71db26a8aa7da4bb0cea9cae3620fc18210c6b5e7410f7a532f27a1 +#hostdeps="autoconf automake pkgconfig libtool" + +regenerate() { + #autoreconf -fvi + true +} diff --git a/source-recipes/openssl b/source-recipes/openssl new file mode 100644 index 00000000..8bc4faaa --- /dev/null +++ b/source-recipes/openssl @@ -0,0 +1,8 @@ +name=openssl +version=1.1.1q +source_method=tarball +tarball_url="https://www.openssl.org/source/openssl-${version}.tar.gz" +tarball_sha512="cb9f184ec4974a3423ef59c8ec86b6bf523d5b887da2087ae58c217249da3246896fdd6966ee9c13aea9e6306783365239197e9f742c508a0e35e5744e3e085f" +regenerate() { + true +} diff --git a/source-recipes/pcre2 b/source-recipes/pcre2 new file mode 100644 index 00000000..324599c1 --- /dev/null +++ b/source-recipes/pcre2 @@ -0,0 +1,9 @@ +name=pcre2 +version=10.42 +source_method=tarball +tarball_url="https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${version}/pcre2-${version}.tar.bz2" +tarball_sha512="72fbde87fecec3aa4b47225dd919ea1d55e97f2cbcf02aba26e5a0d3b1ffb58c25a80a9ef069eb99f9cf4e41ba9604ad06a7ec159870e1e875d86820e12256d3" +hostdeps="autoconf automake pkgconfig libtool" +regenerate() { + autoreconf -fvi +} diff --git a/source-recipes/wget b/source-recipes/wget new file mode 100644 index 00000000..78114479 --- /dev/null +++ b/source-recipes/wget @@ -0,0 +1,9 @@ +name=wget +version=1.24.5 +source_method=tarball +tarball_url="https://ftp.gnu.org/gnu/wget/wget-${version}.tar.gz" +tarball_sha512="572aa54717e51a9eb9959e127c7afb696645088f32ff7df2cfe9d243957e34ee235e98988fa94649df023d2e3d62b6973e8c9f2eb92beba820dd96d5de2a950d" +hostdeps="autoconf automake pkgconfig libtool autoconf-archive" +regenerate() { + autoreconf -fvi +}