diff --git a/dev-libs/npth/npth-1.3.recipe b/dev-libs/npth/npth-1.3.recipe new file mode 100644 index 000000000..c0a7a5748 --- /dev/null +++ b/dev-libs/npth/npth-1.3.recipe @@ -0,0 +1,71 @@ +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="bca81940436aed0734eb8d0ff8b179e04cc8c087f5625204419f5f45d736a82a" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + npth$secondaryArchSuffix = $portVersion + lib:libnpth$secondaryArchSuffix = 0.0.6 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + npth${secondaryArchSuffix}_devel = $portVersion + devel:libnpth$secondaryArchSuffix = 0.0.6 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 +}