Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2020 09:30:34 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r525260 - head/audio/noise-repellent-lv2/files
Message-ID:  <202002050930.0159UY6X065292@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Wed Feb  5 09:30:34 2020
New Revision: 525260
URL: https://svnweb.freebsd.org/changeset/ports/525260

Log:
  Fix build on !x86 !aarch64:
  
    cc1: error: unrecognized command line option "-msse"
    cc1: error: unrecognized command line option "-msse2"
    cc1: error: unrecognized command line option "-mfpmath=sse"
  
  This patch should be upstreamed.
  
  Tested on both amd64 and powerpc64.
  
  Approved by:	portmgr (tier-2 blanket)

Added:
  head/audio/noise-repellent-lv2/files/
  head/audio/noise-repellent-lv2/files/patch-meson.build   (contents, props changed)

Added: head/audio/noise-repellent-lv2/files/patch-meson.build
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/noise-repellent-lv2/files/patch-meson.build	Wed Feb  5 09:30:34 2020	(r525260)
@@ -0,0 +1,20 @@
+--- meson.build.orig	2020-01-07 01:30:53 UTC
++++ meson.build
+@@ -25,8 +25,8 @@ current_os = build_machine.system()
+ current_arch = build_machine.cpu_family()
+ cflags = []
+ 
+-# Add x86_64 optimization where appropriate (not for ARM)
+-if current_arch != 'aarch64'
++# Add x86_64 optimization where appropriate
++if current_arch == 'x86' or current_arch == 'x86_64'
+     cflags += ['-msse','-msse2','-mfpmath=sse']
+ endif
+ 
+@@ -82,4 +82,4 @@ nrepel_ttl = custom_target('nrepel_ttl',
+ if sord_validate.found()
+ 	test('LV2 validation', sord_validate,
+ 		args : [run_command('find','./lv2 -name "*.ttl"').stdout(), run_command('find','. -name "*.ttl"').stdout()])
+-endif
+\ No newline at end of file
++endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002050930.0159UY6X065292>