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. " COPYRIGHT="2003-2013 g10 Code GmbH" LICENSE=" GNU GPL v3 GNU LGPL v2.1 " REVISION="1" HOMEPAGE="http://www.gnupg.org/related_software/libassuan/index.en.html" SOURCE_URI="ftp://ftp.gnupg.org/gcrypt/libassuan/libassuan-$portVersion.tar.bz2" CHECKSUM_SHA256="9e69a102272324de0bb56025779f84fd44901afcc6eac51505f6a63ea5737ca1" PATCHES="libassuan-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" libassuan$secondaryArchSuffix = $portVersion compat >= 1 lib:libassuan$secondaryArchSuffix = 0.7.4 compat >= 0 " REQUIRES=" haiku$secondaryArchSuffix lib:libgpg_error${secondaryArchSuffix} " PROVIDES_devel=" libassuan${secondaryArchSuffix}_devel = $portVersion compat >= 1 cmd:libassuan_config$secondaryArchSuffix = $portVersion compat >= 1 devel:libassuan$secondaryArchSuffix = 0.7.4 compat >= 0 " REQUIRES_devel=" libassuan$secondaryArchSuffix == $portVersion devel:libgpg_error${secondaryArchSuffix} " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libgpg_error$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:autoconf cmd:awk cmd:make cmd:gcc$secondaryArchSuffix cmd:git cmd:ld$secondaryArchSuffix cmd:pkg_config$secondaryArchSuffix " BUILD() { autoconf runConfigure ./configure make } INSTALL() { make install rm $libDir/libassuan.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 packageEntries devel \ $developDir $binDir/libassuan-config }