mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
174 lines
4.9 KiB
Bash
174 lines
4.9 KiB
Bash
SUMMARY="A TLS 1.0 and SSL 3.0 implementation for the GNU project"
|
|
DESCRIPTION="GnuTLS is a secure communications library implementing the SSL, \
|
|
TLS and DTLS protocols and technologies around them. It provides a simple C \
|
|
language application programming interface (API) to access the secure \
|
|
communications protocols as well as APIs to parse and write X.509, PKCS #12, \
|
|
OpenPGP and other required structures. It is aimed to be portable and \
|
|
efficient with focus on security and interoperability."
|
|
HOMEPAGE="https://www.gnutls.org/"
|
|
COPYRIGHT="2000-2018 Free Software Fundation Inc.
|
|
2004-2008 Simon Josefsson
|
|
2000-2004 Nikos Mavrogiannopoulos"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.gnupg.org/ftp/gcrypt/gnutls/v${portVersion%\.*}/gnutls-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="1936eb64f03aaefd6eb16cef0567457777618573826b94d03376bb6a4afadc44"
|
|
SOURCE_DIR="gnutls-$portVersion"
|
|
PATCHES="gnutls-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libgnutls_opensslVersion="27.0.2"
|
|
libgnutlsVersion="30.14.11"
|
|
libgnutlsxxVersion="28.1.0"
|
|
|
|
libgnutls_opensslVersionCompat="$libgnutls_opensslVersion compat >= ${libgnutls_opensslVersion%%.*}"
|
|
libgnutlsVersionCompat="$libgnutlsVersion compat >= ${libgnutlsVersion%%.*}"
|
|
libgnutlsxxVersionCompat="$libgnutlsxxVersion compat >= ${libgnutlsxxVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
gnutls35$secondaryArchSuffix = $portVersion
|
|
lib:libgnutls_openssl$secondaryArchSuffix = $libgnutls_opensslVersionCompat
|
|
lib:libgnutls$secondaryArchSuffix = $libgnutlsVersionCompat
|
|
lib:libgnutlsxx$secondaryArchSuffix = $libgnutlsxxVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
lib:libnettle$secondaryArchSuffix
|
|
lib:libgmp$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libidn2$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libtasn1$secondaryArchSuffix
|
|
lib:libunistring$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
CONFLICTS="
|
|
gnutls34$secondaryArchSuffix
|
|
gnutls36$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_bin="
|
|
gnutls35${secondaryArchSuffix}_bin = $portVersion
|
|
cmd:certtool$secondaryArchSuffix
|
|
cmd:gnutls_cli$secondaryArchSuffix
|
|
cmd:gnutls_cli_debug$secondaryArchSuffix
|
|
cmd:gnutls_serv$secondaryArchSuffix
|
|
cmd:ocsptool$secondaryArchSuffix
|
|
cmd:psktool$secondaryArchSuffix
|
|
cmd:srptool$secondaryArchSuffix
|
|
"
|
|
REQUIRES_bin="
|
|
gnutls35$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
lib:libnettle$secondaryArchSuffix
|
|
lib:libgmp$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libidn2$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libtasn1$secondaryArchSuffix
|
|
lib:libunistring$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
CONFLICTS_bin="
|
|
gnutls${secondaryArchSuffix}_bin
|
|
gnutls34${secondaryArchSuffix}_bin
|
|
gnutls36${secondaryArchSuffix}_bin
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gnutls35${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgnutls_openssl$secondaryArchSuffix = $libgnutls_opensslVersionCompat
|
|
devel:libgnutls$secondaryArchSuffix = $libgnutlsVersionCompat
|
|
devel:libgnutlsxx$secondaryArchSuffix = $libgnutlsxxVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
gnutls35$secondaryArchSuffix == $portVersion base
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
devel:libnettle$secondaryArchSuffix
|
|
devel:libtasn1$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
CONFLICTS_devel="
|
|
gnutls${secondaryArchSuffix}_devel
|
|
gnutls34${secondaryArchSuffix}_devel
|
|
gnutls36${secondaryArchSuffix}_devel
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
devel:libnettle$secondaryArchSuffix
|
|
devel:libgmp$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libidn2$secondaryArchSuffix
|
|
devel:libtasn1$secondaryArchSuffix
|
|
devel:libunistring$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autoheader
|
|
cmd:automake
|
|
cmd:autopoint
|
|
cmd:autoreconf
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:makeinfo
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
TEST_REQUIRES="
|
|
cmd:cvs
|
|
cmd:git
|
|
"
|
|
|
|
defineDebugInfoPackage gnutls35$secondaryArchSuffix \
|
|
$libDir/libgnutls-openssl.so.$libgnutls_opensslVersion \
|
|
$libDir/libgnutls.so.$libgnutlsVersion \
|
|
$libDir/libgnutlsxx.so.$libgnutlsxxVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure --without-p11-kit --disable-nls \
|
|
--enable-openssl-compatibility
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f $infoDir/dir
|
|
rm -f $libDir/libgnutls*.la
|
|
|
|
prepareInstalledDevelLibs libgnutls-openssl libgnutls libgnutlsxx
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir/man3
|
|
|
|
packageEntries bin \
|
|
$binDir \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check LIBS="-lgnu"
|
|
}
|