Index: head/audio/speech-denoiser-lv2/Makefile =================================================================== --- head/audio/speech-denoiser-lv2/Makefile (revision 483006) +++ head/audio/speech-denoiser-lv2/Makefile (revision 483007) @@ -1,29 +1,37 @@ # $FreeBSD$ PORTNAME= speech-denoiser DISTVERSION= g20181007 +PORTREVISION= 1 CATEGORIES= audio PKGNAMESUFFIX= -lv2 MAINTAINER= yuri@FreeBSD.org COMMENT= Speech denoise LV2 plugin based on RNNoise library LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= lv2>0:audio/lv2 LIB_DEPENDS= librnnoise-nu.so:audio/rnnoise-nu USES= localbase:ldflags meson pkgconfig USE_GITHUB= yes GH_ACCOUNT= lucianodato 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 .include Index: head/audio/speech-denoiser-lv2/files/patch-meson.build =================================================================== --- head/audio/speech-denoiser-lv2/files/patch-meson.build (revision 483006) +++ head/audio/speech-denoiser-lv2/files/patch-meson.build (revision 483007) @@ -1,20 +1,33 @@ --- meson.build.orig 2018-10-07 21:33:41 UTC +++ meson.build @@ -10,7 +10,7 @@ src = 'src/sdenoise.c' cc = meson.get_compiler('c') #handling rnnoise static library -lib_rnnoise = cc.find_library('rnnoise-nu',dirs: meson.current_source_dir() + '/rnnoise/.libs/',required : true) +lib_rnnoise = cc.find_library('rnnoise-nu',required : true) 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' +install_folder = 'lib/lv2/sdenoise.lv2' #get the build operating system and configure install path and shared object extension current_os = build_machine.system() Index: head/audio/speech-denoiser-lv2/files/patch-meson__options.txt =================================================================== --- head/audio/speech-denoiser-lv2/files/patch-meson__options.txt (nonexistent) +++ head/audio/speech-denoiser-lv2/files/patch-meson__options.txt (revision 483007) @@ -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') Property changes on: head/audio/speech-denoiser-lv2/files/patch-meson__options.txt ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property