Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Jun 2018 18:04:22 +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: r472075 - in head/audio/eq10q-lv2: . files
Message-ID:  <201806091804.w59I4M55025940@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Jun  9 18:04:22 2018
New Revision: 472075
URL: https://svnweb.freebsd.org/changeset/ports/472075

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

Modified:
  head/audio/eq10q-lv2/Makefile
  head/audio/eq10q-lv2/files/patch-CMakeLists.txt

Modified: head/audio/eq10q-lv2/Makefile
==============================================================================
--- head/audio/eq10q-lv2/Makefile	Sat Jun  9 17:54:27 2018	(r472074)
+++ head/audio/eq10q-lv2/Makefile	Sat Jun  9 18:04:22 2018	(r472075)
@@ -2,6 +2,7 @@
 
 PORTNAME=	eq10q
 DISTVERSION=	2.2
+PORTREVISION=	1
 CATEGORIES=	audio
 MASTER_SITES=	SF/${PORTNAME}
 PKGNAMESUFFIX=	-lv2
@@ -12,12 +13,6 @@ COMMENT=	Parametric equalizer LV2 audio plugin
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-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'
-BROKEN_powerpc64=	fails to compile: unrecognized command line option "-msse"
-
 BUILD_DEPENDS=	lv2>0:audio/lv2
 LIB_DEPENDS=	libfftw3.so:math/fftw3 \
 		libfontconfig.so:x11-fonts/fontconfig \
@@ -26,6 +21,13 @@ LIB_DEPENDS=	libfftw3.so:math/fftw3 \
 USES=		cmake:outsource dos2unix localbase:ldflags pkgconfig
 USE_GNOME=	glib20 gtk20 gtkmm24 gdkpixbuf2 atkmm cairo cairomm pangomm
 DOS2UNIX_FILES=	dsp/vu.h
+
+OPTIONS_DEFINE_amd64=	SSE
+OPTIONS_DEFINE_i386=	SSE
+OPTIONS_DEFAULT_amd64=	SSE
+OPTIONS_DEFAULT_i386=	SSE
+
+SSE_CMAKE_ON=	-DPORT_SIMD_FLAGS:STRING="-msse -mfpmath=sse"
 
 post-patch:
 	@${REINPLACE_CMD} -e 's/pow10(/pow(10,/g' \

Modified: head/audio/eq10q-lv2/files/patch-CMakeLists.txt
==============================================================================
--- head/audio/eq10q-lv2/files/patch-CMakeLists.txt	Sat Jun  9 17:54:27 2018	(r472074)
+++ head/audio/eq10q-lv2/files/patch-CMakeLists.txt	Sat Jun  9 18:04:22 2018	(r472075)
@@ -7,7 +7,7 @@
 -##ADD_DEFINITIONS(-Wall -O3 -fPIC -finline-functions -finline-functions-called-once  -msse -mfpmath=sse -std=c99)
 -set(CMAKE_C_FLAGS "-Wall -O3 -fPIC -finline-functions -finline-functions-called-once  -msse -mfpmath=sse -std=c99")
 +##ADD_DEFINITIONS(-Wall -fPIC -finline-functions -finline-functions-called-once  -msse -mfpmath=sse -std=c99)
-+set(CMAKE_C_FLAGS "-Wall -fPIC -finline-functions  -msse -mfpmath=sse -std=c99")
++set(CMAKE_C_FLAGS "-Wall -fPIC -finline-functions  ${PORT_SIMD_FLAGS} -std=c99")
  #set(CMAKE_C_FLAGS "-Wall -O0 -g -fPIC -finline-functions -finline-functions-called-once  -msse -mfpmath=sse -std=c99")
  
  set(CMAKE_CXX_FLAGS "-Wall -fPIC -std=c++11")



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