diff --git a/crypto/openssl/PKGCONF b/crypto/openssl/PKGCONF new file mode 100644 index 0000000..9d24d7b --- /dev/null +++ b/crypto/openssl/PKGCONF @@ -0,0 +1,23 @@ +VERSION=3.5.3 +PACKAGE=openssl +SRC=${PACKAGE}-${VERSION}.tar.xz +URL=git://github.com/${PACKAGE}/${PACKAGE}@${PACKAGE}-${VERSION} +CATEGORY=crypto + +configure() { + echo "Configuring $PACKAGE" + cd "${SRCDIR}/${PACKAGE}-${VERSION}" + ./Configure solaris-sparcv8-gcc --prefix=/usr/local/ssl --openssldir=/usr/local/ssl +} + +build() { + echo "Building $PACKAGE" + cd "${SRCDIR}/${PACKAGE}-${VERSION}" + make -j ${NCPU} +} + +install() { + echo "Installing $PACKAGE to ${DESTDIR}" + cd "${SRCDIR}/${PACKAGE}-${VERSION}" + make install DESTDIR="${DESTDIR}" +} diff --git a/crypto/openssl/patches/01-add-rt.patch b/crypto/openssl/patches/01-add-rt.patch new file mode 100644 index 0000000..935cc07 --- /dev/null +++ b/crypto/openssl/patches/01-add-rt.patch @@ -0,0 +1,10 @@ +--- openssl-3.5.3.orig/Configurations/10-main.conf Sat Sep 27 00:00:15 2025 ++++ openssl-3.5.3/Configurations/10-main.conf Sat Sep 27 00:01:25 2025 +@@ -319,6 +319,7 @@ + "solaris-sparcv8-gcc" => { + inherit_from => [ "solaris-sparcv7-gcc" ], + cflags => add_before("-mcpu=v8"), ++ ex_libs => add("-lrt", "-latomic"), + asm_arch => 'sparcv8', + perlasm_scheme => 'void', + },