ports: links openssl pcre2 wget

This commit is contained in:
Matheus
2024-06-03 22:03:46 -03:00
parent 71ae97addb
commit 83c6c2a120
9 changed files with 141 additions and 0 deletions
+40
View File
@@ -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" ],
+17
View File
@@ -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
}
+16
View File
@@ -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}
}
+15
View File
@@ -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}
}
+16
View File
@@ -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}
}
+11
View File
@@ -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
}
+8
View File
@@ -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
}
+9
View File
@@ -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
}
+9
View File
@@ -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
}