From 905e1ada8c3cccddb4fb7d5e58e2343dc638f084 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Thu, 22 Jul 2021 19:01:49 +1000 Subject: [PATCH] rnnoise: add recipe --- media-libs/rnnoise/rnnoise-0.4.1~git.recipe | 63 +++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 media-libs/rnnoise/rnnoise-0.4.1~git.recipe diff --git a/media-libs/rnnoise/rnnoise-0.4.1~git.recipe b/media-libs/rnnoise/rnnoise-0.4.1~git.recipe new file mode 100644 index 000000000..d3438f178 --- /dev/null +++ b/media-libs/rnnoise/rnnoise-0.4.1~git.recipe @@ -0,0 +1,63 @@ +SUMMARY="Recurrent neural network for audio noise reduction" +DESCRIPTION="RNNoise is a noise suppression library based on a recurrent neural network." +HOMEPAGE="https://gitlab.xiph.org/xiph/rnnoise/" +COPYRIGHT="Jean-Marc Valin" +LICENSE="MPL v2.0" +REVISION="1" +srcGitRev="1cbdbcf1283499bbb2230a6b0f126eb9b236defd" +SOURCE_URI="https://github.com/xiph/rnnoise/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="68c7ab4e408426088603e19955e746bb2a412d84bb121b6f39834c60fc8068b7" +SOURCE_DIR="rnnoise-$srcGitRev" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + rnnoise$secondaryArchSuffix = $portVersion + lib:librnnoise$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " + +PROVIDES_devel=" + rnnoise${secondaryArchSuffix}_devel = $portVersion + devel:librnnoise$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + rnnoise$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + autogen.sh + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + rm $libDir/*.la + + prepareInstalledDevelLibs librnnoise + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +}