mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 07:40:07 +02:00
80 lines
1.7 KiB
Bash
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
|
|
}
|