75 lines
1.6 KiB
Bash
75 lines
1.6 KiB
Bash
SUMMARY="The New GNU Portable Threads Library"
|
|
DESCRIPTION="This is a library to provide the GNU Pth API and thus a \
|
|
non-preemptive threads implementation.\
|
|
In contrast to GNU Pth is based on the system's standard threads \
|
|
implementation. This allows the use of libraries which are not \
|
|
compatible to GNU Pth. Experience with a Windows Pth emulation \
|
|
showed that this is a solid way to provide a co-routine based framework."
|
|
HOMEPAGE="https://www.gnupg.org/related_software/npth"
|
|
COPYRIGHT="2011-2018 g10 Code GmbH"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://www.gnupg.org/ftp/gcrypt/npth/npth-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libVersion="0.1.2"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
npth$secondaryArchSuffix = $portVersion
|
|
lib:libnpth$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
npth${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:npth_config$secondaryArchSuffix = $portVersion
|
|
devel:libnpth$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
npth$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autogen.sh
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libnpth.la
|
|
|
|
prepareInstalledDevelLib libnpth
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$binDir \
|
|
$dataDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|