mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
72 lines
1.6 KiB
Bash
72 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-2015 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="294a690c1f537b92ed829d867bee537e46be93fbd60b16c04630fbbfcd9db3c2"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
npth$secondaryArchSuffix = $portVersion
|
|
lib:libnpth$secondaryArchSuffix = 0.1.1 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
npth${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libnpth$secondaryArchSuffix = 0.1.1 compat >= 0
|
|
cmd:npth_config$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
npth$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:autoconf
|
|
cmd:aclocal
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autogen.sh
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libnpth.la
|
|
|
|
prepareInstalledDevelLib libnpth
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$binDir \
|
|
$dataDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|