SUMMARY="A cryptography library" DESCRIPTION="Botan is a cryptography library written in C++. \ Its goal is to offer the tools necessary to implement a range of practical \ systems, such as TLS/DTLS, PKIX certificate handling, PKCS#11 and TPM \ hardware support, password hashing, and post quantum crypto schemes. \ Botan also has a C89 API specifically designed to be easy to call from other \ languages." HOMEPAGE="https://botan.randombit.net/" COPYRIGHT="1999-2024 The Botan Authors" LICENSE="BSD (2-clause)" REVISION="1" SOURCE_URI="https://botan.randombit.net/releases/Botan-$portVersion.tar.xz" CHECKSUM_SHA256="5a3a88ef6433e97bcab0efa1ed60c6197e4ada9d9d30bc1c47437bf89b97f276" SOURCE_DIR="Botan-$portVersion" PATCHES="botan-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" commandSuffix=$secondaryArchSuffix commandBinDir=$binDir if [ "$targetArchitecture" = x86_gcc2 ]; then commandSuffix= commandBinDir=$prefix/bin fi libVersion="19.19.4" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" botan$secondaryArchSuffix = $portVersion lib:libbotan_2$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix lib:libbz2$secondaryArchSuffix lib:liblzma$secondaryArchSuffix lib:libsqlite3$secondaryArchSuffix lib:libz$secondaryArchSuffix " PROVIDES_devel=" botan${secondaryArchSuffix}_devel = $portVersion devel:libbotan_2$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" haiku${secondaryArchSuffix}_devel botan$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libbz2$secondaryArchSuffix devel:liblzma$secondaryArchSuffix devel:libsqlite3$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:awk cmd:gcc$secondaryArchSuffix cmd:g++$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix cmd:python3 " BUILD() { runConfigure --omit-buildspec --omit-dirs binDir ./configure.py \ --bindir="$commandBinDir" \ --enable-shared-library \ --disable-static \ --with-bzip2 --with-lzma --with-zlib \ --with-sqlite3 make $jobArgs } INSTALL() { make install prepareInstalledDevelLib libbotan-2 fixPkgconfig packageEntries devel \ "$developDir" \ "$documentationDir" # remove the cmd in favor for package botan3 rm -rf $commandBinDir } TEST() { LIBRARY_PATH="$sourceDir${LIBRARY_PATH:+:$LIBRARY_PATH}" \ ./botan-test }