Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Jun 2018 17:17:39 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r472149 - in head/audio/fluidplug-lv2: . files
Message-ID:  <201806101717.w5AHHd53041192@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Jun 10 17:17:38 2018
New Revision: 472149
URL: https://svnweb.freebsd.org/changeset/ports/472149

Log:
  audio/fluidplug-lv2: Unbreak on non-Intel/AMD platforms
  
  Make SSE flags depend on the option SSE that defaults to 'on' only on amd64/i386 architectures.

Added:
  head/audio/fluidplug-lv2/files/
  head/audio/fluidplug-lv2/files/patch-Makefile.mk   (contents, props changed)
Modified:
  head/audio/fluidplug-lv2/Makefile

Modified: head/audio/fluidplug-lv2/Makefile
==============================================================================
--- head/audio/fluidplug-lv2/Makefile	Sun Jun 10 17:13:14 2018	(r472148)
+++ head/audio/fluidplug-lv2/Makefile	Sun Jun 10 17:17:38 2018	(r472149)
@@ -2,7 +2,7 @@
 
 PORTNAME=	FluidPlug
 PORTVERSION=	g20161020
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	audio
 PKGNAMESUFFIX=	-lv2
 EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
@@ -12,11 +12,6 @@ COMMENT=	SoundFonts as LV2 plugins via FluidSynth
 
 LICENSE=	LGPL20
 
-BROKEN_aarch64=		fails to compile: unknown FP unit 'sse'
-BROKEN_armv6=		fails to compile: unknown FP unit 'sse'
-BROKEN_armv7=		fails to compile: unknown FP unit 'sse'
-BROKEN_mips64=		fails to compile: unknown FP unit 'sse'
-
 BUILD_DEPENDS=	7z:archivers/p7zip \
 		lv2>0:audio/lv2
 LIB_DEPENDS=	libfluidsynth.so:audio/fluidsynth
@@ -27,6 +22,13 @@ GH_ACCOUNT=	falkTX
 GH_TAGNAME=	889b256
 
 SOUNDFONT_DIR=	${PREFIX}/share/sounds/sf2
+
+OPTIONS_DEFINE_amd64=	SSE
+OPTIONS_DEFINE_i386=	SSE
+OPTIONS_DEFAULT_amd64=	SSE
+OPTIONS_DEFAULT_i386=	SSE
+
+SSE_MAKE_ARGS=	PORT_SIMD_FLAGS="-msse -msse2 -mfpmath=sse"
 
 post-patch:
 	@${REINPLACE_CMD} -e ' \

Added: head/audio/fluidplug-lv2/files/patch-Makefile.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/fluidplug-lv2/files/patch-Makefile.mk	Sun Jun 10 17:17:38 2018	(r472149)
@@ -0,0 +1,11 @@
+--- Makefile.mk.orig	2018-06-10 17:12:48 UTC
++++ Makefile.mk
+@@ -34,7 +34,7 @@ CXX ?= g++
+ # Set build and link flags
+ 
+ BASE_FLAGS = -Wall -Wextra -Wshadow -pipe
+-BASE_OPTS  = -O2 -ffast-math -mtune=generic -msse -msse2 -mfpmath=sse -fdata-sections -ffunction-sections
++BASE_OPTS  = -O2 -ffast-math -mtune=generic $(PORT_SIMD_FLAGS) -fdata-sections -ffunction-sections
+ 
+ ifeq ($(MACOS),true)
+ # MacOS linker flags



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