Files
haikuports/dev-libs/libp11/libp11-0.4.4.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

80 lines
1.7 KiB
Bash

SUMMARY="A PKCS#11 wrapper library"
DESCRIPTION="libp11 is a library implementing a thin layer on top of PKCS#11 \
API to make using PKCS#11 implementations easier."
HOMEPAGE="https://github.com/opensc/libp11"
COPYRIGHT="2016-2017 Michał Trojnara
2015-2016 Nikos Mavrogiannopoulos
2007-2009 Andreas Jellinghaus
2011 Martin Paljak"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="$HOMEPAGE/releases/download/libp11-$portVersion/libp11-$portVersion.tar.gz"
CHECKSUM_SHA256="93d2741df04f7f1561962746943a056ca81582fecb59d0c4304e7e97a0902722"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libp11$secondaryArchSuffix = $portVersion
lib:libp11$secondaryArchSuffix = 2.4.4 compat >= 2
lib:libpkcs11$secondaryArchSuffix
lib:pkcs11$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix
"
PROVIDES_devel="
libp11${secondaryArchSuffix}_devel = $portVersion
devel:libp11$secondaryArchSuffix = 2.4.4 compat >= 2
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
libp11$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:autoheader
cmd:automake
cmd:awk
cmd:diff
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
enginesDir=$libDir/engines
BUILD()
{
runConfigure ./configure --with-enginesdir=$enginesDir
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libp11.la
rm $enginesDir/pkcs11.la
prepareInstalledDevelLib libp11
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}