mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
99 lines
2.6 KiB
Bash
99 lines
2.6 KiB
Bash
SUMMARY="IPC library used by GnuPG and GPGME"
|
|
DESCRIPTION="Libassuan is a small library implementing the so-called \
|
|
Assuan protocol. This protocol is used for IPC between most newer GnuPG \
|
|
components. Both, server and client side functions are provided."
|
|
HOMEPAGE="https://www.gnupg.org/related_software/libassuan/"
|
|
COPYRIGHT="2001-2013 Free Software Foundation, Inc.
|
|
2001-2015 g10 Code GmbH"
|
|
LICENSE="
|
|
GNU GPL v3
|
|
GNU LGPL v2.1
|
|
"
|
|
REVISION="2"
|
|
SOURCE_URI="ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="47f96c37b4f2aac289f0bc1bacfa8bd8b4b209a488d3d15e2229cb6cc9b26449"
|
|
PATCHES="libassuan-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="0.8.1"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libassuan$secondaryArchSuffix = $portVersion
|
|
lib:libassuan$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libgpg_error${secondaryArchSuffix}
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libassuan${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:libassuan_config$secondaryArchSuffix = $portVersion
|
|
devel:libassuan$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES_devel="
|
|
libassuan$secondaryArchSuffix == $portVersion
|
|
devel:libgpg_error${secondaryArchSuffix}
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libgpg_error$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage libassuan$secondaryArchSuffix \
|
|
$libDir/libassuan.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/*.la
|
|
|
|
prepareInstalledDevelLibs libassuan
|
|
|
|
# The config file reference other libraries using the wrong paths, which
|
|
# creates a lot of confusion. Fix them so correct paths are used.
|
|
local develPackageName="${portName}_devel-$portFullVersion"
|
|
local packageLinksDir=$(dirname $portPackageLinksDir)
|
|
local linksDir="$packageLinksDir/${develPackageName}/devel~libgpg_error$secondaryArchSuffix/$relativeDevelopLibDir"
|
|
sed -i -e "s,\(gpg_error_libs.*\)-L.*\( -lgpg-error\),\1-L$linksDir\2," \
|
|
$binDir/libassuan-config
|
|
linksDir="$packageLinksDir/${develPackageName}/devel~libgpg_error$secondaryArchSuffix"
|
|
sed -i -e "s,\(gpg_error_cflags.*\)-I.*/develop,\1-I$linksDir/develop," \
|
|
$binDir/libassuan-config
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $infoDir
|
|
fi
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$binDir \
|
|
$dataDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|