Files
haikuports/dev-libs/openssl/openssl-1.1.0~git.recipe
Jerome Duval 6b70c41049 openssl: restore patch.
* This reverts commit 7f3bd1daac.
* openssl is about to revert Haiku support.
* remove RC4_CHAR on x86_64.
2016-05-02 00:01:59 +00:00

107 lines
3.0 KiB
Bash

SUMMARY="Full-strength general purpose cryptography library (with SSL/TLS)"
DESCRIPTION="The OpenSSL Project is a collaborative effort to develop a \
robust, commercial-grade, full-featured, and Open Source toolkit implementing \
the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) \
protocols as well as a full-strength general purpose cryptography library. The \
project is managed by a worldwide community of volunteers that use the \
Internet to communicate, plan, and develop the OpenSSL toolkit and its related \
documentation.
OpenSSL is based on the excellent SSLeay library developed by Eric A. Young \
and Tim J. Hudson. The OpenSSL toolkit is licensed under an Apache-style \
licence, which basically means that you are free to get and use it for \
commercial and non-commercial purposes subject to some simple license \
conditions."
HOMEPAGE="https://www.openssl.org/"
COPYRIGHT="1995-1998 Eric Young
1998-2016 The OpenSSL Project."
LICENSE="OpenSSL"
REVISION="1"
srcGitRev="78c830785ca0f422502db9b201127ef1d9fe3966"
SOURCE_URI="https://github.com/openssl/openssl/archive/${srcGitRev}.tar.gz"
SOURCE_FILENAME="openssl-$portVersion.tar.gz"
CHECKSUM_SHA256="a5b88777e54b43cb313c02e060db16dbce9db9c6f9ed9b8a14bcdd7748fa9445"
SOURCE_DIR="openssl-$srcGitRev"
PATCHES="openssl-$portVersion.patchset"
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64 ?arm ?ppc"
SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86 ?arm ?ppc"
PROVIDES="
openssl$secondaryArchSuffix = $portVersion compat >= 1.1.0
lib:libcrypto$secondaryArchSuffix = 1.1 compat >= 1.1
lib:libssl$secondaryArchSuffix = 1.1 compat >= 1.1
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:c_rehash = $portVersion compat >= 1
cmd:openssl = $portVersion compat >= 1
"
fi
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix >= 1.2.3
ca_root_certificates
"
PROVIDES_devel="
openssl${secondaryArchSuffix}_devel = $portVersion
devel:libcrypto${secondaryArchSuffix} = 1.1 compat >= 1.1
devel:libssl${secondaryArchSuffix} = 1.1 compat >= 1.1
"
REQUIRES_devel="
openssl${secondaryArchSuffix} == $portVersion base
"
BUILD_REQUIRES="
devel:libz$secondaryArchSuffix >= 1.2.3
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc${secondaryArchSuffix}
cmd:ld${secondaryArchSuffix}
cmd:make
cmd:perl >= 5
cmd:sed
cmd:awk
"
BUILD()
{
./config --prefix=$prefix --libdir=$relativeLibDir \
--openssldir=$dataRootDir/ssl \
zlib shared no-asm
make $jobArgs
}
INSTALL()
{
make MANDIR=$manDir install
# move include dir to correct location
mkdir -p $(dirname $includeDir)
mv $prefix/include $includeDir
# prepare develop/lib
prepareInstalledDevelLibs libcrypto libssl
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$manDir/man3
# Remove stuff we don't need in the secondary architecture base package,
# since we make it depend on the primary package.
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $prefix/bin
rm -rf $dataRootDir/ssl
rm -rf $documentationDir
fi
}
TEST()
{
make test
}