noise-repellent: update to 0.1.5.

Add patch made by ericonr to fix cross compilation.
This commit is contained in:
UsernameRandomlyGenerated 2021-06-17 11:06:52 +02:00 committed by Érico Nogueira Rolim
parent 02a53fb6e3
commit fa8fd2a3fd
2 changed files with 31 additions and 3 deletions

View file

@ -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

View file

@ -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 <colin@breavyn.com>"
license="LGPL-3.0-or-later"
homepage="https://github.com/lucianodato/noise-repellent"
distfiles="$homepage/archive/$version.tar.gz"
checksum=19a2a899b740dd81775f09e03bc09b010725b3366219296f488425beb632c243
checksum=5f83a1ac4ddb7f92934041f0b5576ad37932bb81e3eb767f2aea78c9f8cfcaae