From 527c110f3bb9a2764050e268c904d0c9a86f88d4 Mon Sep 17 00:00:00 2001 From: UsernameRandomlyGenerated Date: Thu, 17 Jun 2021 11:06:52 +0200 Subject: [PATCH] noise-repellent: update to 0.1.5. Add patch made by ericonr to fix cross compilation. --- .../noise-repellent/patches/fix-cross.patch | 28 +++++++++++++++++++ srcpkgs/noise-repellent/template | 6 ++-- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/noise-repellent/patches/fix-cross.patch diff --git a/srcpkgs/noise-repellent/patches/fix-cross.patch b/srcpkgs/noise-repellent/patches/fix-cross.patch new file mode 100644 index 000000000000..5818349fb9b0 --- /dev/null +++ b/srcpkgs/noise-repellent/patches/fix-cross.patch @@ -0,0 +1,28 @@ +--- a/meson.build 2020-01-04 02:27:45.000000000 +0100 ++++ b/meson.build 2021-08-10 16:17:03.828663592 +0200 +@@ -17,19 +17,19 @@ + if meson.get_compiler('c').get_id() == 'clang' + add_global_arguments('-mrecip', language : 'c') + endif +-cflags = ['-ffast-math','-fomit-frame-pointer','-fno-finite-math-only'] ++cflags = ['-fomit-frame-pointer','-fno-finite-math-only'] + cflags += ['-Wno-unused-function'] + + #install folder + install_folder = 'nrepel.lv2' + +-#get the build operating system and configure install path and shared object extension +-current_os = build_machine.system() +-current_arch = build_machine.cpu_family() ++#get the host operating system and configure install path and shared object extension ++current_os = host_machine.system() ++current_arch = host_machine.cpu_family() + + # Add x86_64 optimization where appropriate (not for ARM) +-if current_arch != 'aarch64' +- cflags += ['-msse','-msse2','-mfpmath=sse'] ++if current_arch == 'x86_64' ++ cflags += ['-ffast-math','-msse','-msse2','-mfpmath=sse'] + endif + + # Add osx multiarch flags when appropriate diff --git a/srcpkgs/noise-repellent/template b/srcpkgs/noise-repellent/template index a682812b9d9b..c064532d6540 100644 --- a/srcpkgs/noise-repellent/template +++ b/srcpkgs/noise-repellent/template @@ -1,8 +1,8 @@ # Template file for 'noise-repellent' pkgname=noise-repellent -version=0.1.4 +version=0.1.5 revision=1 -build_style=gnu-makefile +build_style=meson hostmakedepends="pkg-config" makedepends="lv2 fftw-devel" short_desc="LV2 plug-in for broadband noise reduction" @@ -10,4 +10,4 @@ maintainer="Colin Gillespie " license="LGPL-3.0-or-later" homepage="https://github.com/lucianodato/noise-repellent" distfiles="$homepage/archive/$version.tar.gz" -checksum=19a2a899b740dd81775f09e03bc09b010725b3366219296f488425beb632c243 +checksum=5f83a1ac4ddb7f92934041f0b5576ad37932bb81e3eb767f2aea78c9f8cfcaae