mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
145 lines
3.9 KiB
Bash
145 lines
3.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-2017 Free Software Fundation Inc.
|
|
2004-2008 Simon Josefsson
|
|
2000-2004 Nikos Mavrogiannopoulos"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="ftp://ftp.gnutls.org/gcrypt/gnutls/v${portVersion%\.*}/gnutls-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="af443e86ba538d4d3e37c4732c00101a492fe4b56a55f4112ff0ab39dbe6579d"
|
|
SOURCE_DIR="gnutls-$portVersion"
|
|
PATCHES="gnutls-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc"
|
|
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
gnutls35$secondaryArchSuffix = $portVersion
|
|
lib:libgnutls_openssl$secondaryArchSuffix = 27.0.2 compat >= 27
|
|
lib:libgnutls$secondaryArchSuffix = 30.14.1 compat >= 30
|
|
lib:libgnutlsxx$secondaryArchSuffix = 28.1.0 compat >= 28
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgcrypt$secondaryArchSuffix
|
|
lib:libgpg_error$secondaryArchSuffix
|
|
lib:libnettle$secondaryArchSuffix
|
|
lib:libgmp$secondaryArchSuffix
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libtasn1$secondaryArchSuffix
|
|
lib:libunistring$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
CONFLICTS="
|
|
gnutls34$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:libtasn1$secondaryArchSuffix
|
|
lib:libunistring$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
CONFLICTS_bin="
|
|
gnutls${secondaryArchSuffix}_bin
|
|
gnutls34${secondaryArchSuffix}_bin
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
gnutls${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libgnutls_openssl$secondaryArchSuffix = 27.0.2 compat >= 27
|
|
devel:libgnutls$secondaryArchSuffix = 30.14.1 compat >= 30
|
|
devel:libgnutlsxx$secondaryArchSuffix = 28.1.0 compat >= 28
|
|
"
|
|
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
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgcrypt$secondaryArchSuffix
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
devel:libnettle$secondaryArchSuffix
|
|
devel:libgmp$secondaryArchSuffix
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libtasn1$secondaryArchSuffix
|
|
devel:libunistring$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:autoheader
|
|
cmd:autom4te
|
|
cmd:automake
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:makeinfo
|
|
cmd:perl
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure --without-p11-kit --disable-nls \
|
|
--enable-openssl-compatibility
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm -f $libDir/libgnutls*.la
|
|
|
|
prepareInstalledDevelLibs libgnutls-openssl libgnutls libgnutlsxx
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$manDir/man3
|
|
|
|
packageEntries bin \
|
|
$binDir \
|
|
$documentationDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|