From owner-svn-ports-head@freebsd.org Fri Oct 26 06:12:31 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 46CF110D7F57; Fri, 26 Oct 2018 06:12:31 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F0F3785F4B; Fri, 26 Oct 2018 06:12:30 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id D330F1D0C0; Fri, 26 Oct 2018 06:12:30 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9Q6CUYQ033620; Fri, 26 Oct 2018 06:12:30 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9Q6CUpG033616; Fri, 26 Oct 2018 06:12:30 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201810260612.w9Q6CUpG033616@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Fri, 26 Oct 2018 06:12:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r483007 - in head/audio/speech-denoiser-lv2: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/audio/speech-denoiser-lv2: . files X-SVN-Commit-Revision: 483007 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2018 06:12:31 -0000 Author: yuri Date: Fri Oct 26 06:12:30 2018 New Revision: 483007 URL: https://svnweb.freebsd.org/changeset/ports/483007 Log: audio/speech-denoiser-lv2: Fix build on 12; Fix build on non-Intel architectures On 12: Remove the unsupported optimization option On non-Intel architectures: make SSE options based on the port option on amd64/i386 only Reported by: fallout Added: head/audio/speech-denoiser-lv2/files/patch-meson__options.txt (contents, props changed) Modified: head/audio/speech-denoiser-lv2/Makefile head/audio/speech-denoiser-lv2/files/patch-meson.build Modified: head/audio/speech-denoiser-lv2/Makefile ============================================================================== --- head/audio/speech-denoiser-lv2/Makefile Fri Oct 26 05:46:02 2018 (r483006) +++ head/audio/speech-denoiser-lv2/Makefile Fri Oct 26 06:12:30 2018 (r483007) @@ -2,6 +2,7 @@ PORTNAME= speech-denoiser DISTVERSION= g20181007 +PORTREVISION= 1 CATEGORIES= audio PKGNAMESUFFIX= -lv2 @@ -22,6 +23,13 @@ GH_TAGNAME= 04cfba9 PLIST_FILES= lib/lv2/sdenoise.lv2/manifest.ttl \ lib/lv2/sdenoise.lv2/sdenoise.so \ lib/lv2/sdenoise.lv2/sdenoise.ttl + +OPTIONS_DEFINE_amd64= SIMD +OPTIONS_DEFINE_i386= SIMD +OPTIONS_DEFAULT_amd64= SIMD +OPTIONS_DEFAULT_i386= SIMD + +SIMD_MESON_ON= -Duse_sse=true pre-configure: @cd ${WRKSRC} && ${LN} -s _build build Modified: head/audio/speech-denoiser-lv2/files/patch-meson.build ============================================================================== --- head/audio/speech-denoiser-lv2/files/patch-meson.build Fri Oct 26 05:46:02 2018 (r483006) +++ head/audio/speech-denoiser-lv2/files/patch-meson.build Fri Oct 26 06:12:30 2018 (r483007) @@ -9,8 +9,21 @@ inc_rnnoise = include_directories('rnnoise/include') #dependencies for speech denoise -@@ -25,7 +25,7 @@ endif - cflags = ['-msse','-msse2','-mfpmath=sse','-ffast-math','-fomit-frame-pointer','-fno-finite-math-only'] +@@ -19,13 +19,17 @@ lv2_dep = dependency('lv2', required : t + nr_dep = [m_dep,lv2_dep,lib_rnnoise] + + #compiler optimization flags +-if meson.get_compiler('c').get_id() == 'clang' +- add_global_arguments('-mrecip', language : 'c') ++#if meson.get_compiler('c').get_id() == 'clang' ++# add_global_arguments('-mrecip', language : 'c') ++#endif ++if get_option('use_sse') ++ cflags = ['-msse','-msse2','-mfpmath=sse','-ffast-math','-fomit-frame-pointer','-fno-finite-math-only'] ++else ++ cflags = ['-ffast-math','-fomit-frame-pointer','-fno-finite-math-only'] + endif +-cflags = ['-msse','-msse2','-mfpmath=sse','-ffast-math','-fomit-frame-pointer','-fno-finite-math-only'] #install folder -install_folder = 'sdenoise.lv2' Added: head/audio/speech-denoiser-lv2/files/patch-meson__options.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/speech-denoiser-lv2/files/patch-meson__options.txt Fri Oct 26 06:12:30 2018 (r483007) @@ -0,0 +1,4 @@ +--- meson_options.txt.orig 2018-10-26 06:03:32 UTC ++++ meson_options.txt +@@ -0,0 +1 @@ ++option('use_sse', type: 'boolean', value: false, description: 'Use SSE optimization')