From 4155465fb809f4ebec5995e3bc7c9a0d7ab5dc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 1 Sep 2019 22:23:34 +0200 Subject: [PATCH] noise-repellent: initial add 0.1.4+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- ...-flags-they-won-t-work-on-all-arches.patch | 39 +++++++++++++++++++ .../noise-repellent/noise-repellent_git.bb | 29 ++++++++++++++ .../packagegroups/musicians-world.bb | 1 + 3 files changed, 69 insertions(+) create mode 100644 recipes-musicians/noise-repellent/noise-repellent/0001-do-not-pin-sse-flags-they-won-t-work-on-all-arches.patch create mode 100644 recipes-musicians/noise-repellent/noise-repellent_git.bb diff --git a/recipes-musicians/noise-repellent/noise-repellent/0001-do-not-pin-sse-flags-they-won-t-work-on-all-arches.patch b/recipes-musicians/noise-repellent/noise-repellent/0001-do-not-pin-sse-flags-they-won-t-work-on-all-arches.patch new file mode 100644 index 0000000..b31943a --- /dev/null +++ b/recipes-musicians/noise-repellent/noise-repellent/0001-do-not-pin-sse-flags-they-won-t-work-on-all-arches.patch @@ -0,0 +1,39 @@ +From 11e8233da08bd812cd49370ca329aaf9f6f797cd Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sun, 1 Sep 2019 22:00:00 +0200 +Subject: [PATCH] do not pin sse flags - they won't work on all arches +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller +--- + meson.build | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/meson.build b/meson.build +index 679a46c..e2866f4 100755 +--- a/meson.build ++++ b/meson.build +@@ -17,7 +17,6 @@ nr_dep = [m_dep,fftw_dep,lv2_dep] + if meson.get_compiler('c').get_id() == 'clang' + add_global_arguments('-mrecip', language : 'c') + endif +-cflags = ['-msse','-msse2','-mfpmath=sse','-ffast-math','-fomit-frame-pointer','-fno-finite-math-only'] + + #install folder + install_folder = 'nrepel.lv2' +@@ -35,7 +34,7 @@ if current_os == 'windows' + endif + + #build of the shared object +-shared_library(lv2_name,src,name_prefix: '',dependencies: nr_dep,c_args: cflags,install: true,install_dir : install_folder) ++shared_library(lv2_name,src,name_prefix: '',dependencies: nr_dep,install: true,install_dir : install_folder) + + #Configure manifest ttl in order to replace the correct shared object extension + manifest_conf = configuration_data() +-- +2.21.0 + diff --git a/recipes-musicians/noise-repellent/noise-repellent_git.bb b/recipes-musicians/noise-repellent/noise-repellent_git.bb new file mode 100644 index 0000000..2fe987e --- /dev/null +++ b/recipes-musicians/noise-repellent/noise-repellent_git.bb @@ -0,0 +1,29 @@ +SUMMARY = "An lv2 plugin for broadband noise reduction" +HOMEPAGE = "https://github.com/lucianodato/noise-repellent" +LICENSE = "LGPLv3" +LIC_FILES_CHKSUM = "file://LICENSE;md5=e6a600fd5e1d9cbde2d983680233ad02" + +inherit meson gtk-icon-cache + +DEPENDS += " \ + fftw \ + lv2 \ +" + +PV = "0.1.4+git${SRCPV}" +SRC_URI = " \ + git://github.com/lucianodato/noise-repellent.git \ + file://0001-do-not-pin-sse-flags-they-won-t-work-on-all-arches.patch \ +" +SRCREV = "9efdd0b41ec184a792087c87cbf5382f455e33ec" +S = "${WORKDIR}/git" + + +do_install_append() { + mkdir -p ${D}${libdir}/lv2 + mv ${D}${prefix}/nrepel.lv2 ${D}${libdir}/lv2/ +} + +FILES_${PN} += " \ + ${libdir}/lv2 \ +" diff --git a/recipes-support/packagegroups/musicians-world.bb b/recipes-support/packagegroups/musicians-world.bb index 3f524a7..6a596bf 100644 --- a/recipes-support/packagegroups/musicians-world.bb +++ b/recipes-support/packagegroups/musicians-world.bb @@ -87,6 +87,7 @@ RDEPENDS_${PN} += " \ muse \ nekobee \ ninjas2-standalone ninjas2-lv2 ninjas2-vst \ + noise-repellent \ non \ \ \