audio/rkr-lv2: Unbreak on non-Intel/AMD architectures

Reported by:	linimon
This commit is contained in:
Yuri Victorovich 2018-07-07 07:20:08 +00:00
parent 8ef9593bb5
commit 893c43e2f0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474061
2 changed files with 22 additions and 2 deletions

View File

@ -13,8 +13,6 @@ COMMENT= Rakarrack effects as LV2 plugins
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_aarch64= fails to compile: argument unused during compilation: '-msse' [-Wunused-command-line-argument]
BUILD_DEPENDS= lv2>0:audio/lv2
LIB_DEPENDS= libfftw3.so:math/fftw3 \
libsamplerate.so:audio/libsamplerate
@ -26,4 +24,11 @@ GH_PROJECT= ${PORTNAME}lv2
DATADIR= ${PREFIX}/share/${PORTNAME}.lv2
OPTIONS_DEFINE_amd64= SIMD
OPTIONS_DEFINE_i386= SIMD
OPTIONS_DEFAULT_amd64= SIMD
OPTIONS_DEFAULT_i386= SIMD
SIMD_CMAKE_ON= -DPORT_SIMD_FLAGS:STRING="-msse -msse2 -mfpmath=sse"
.include <bsd.port.mk>

View File

@ -0,0 +1,15 @@
--- lv2/CMakeLists.txt.orig 2018-07-07 06:51:21 UTC
+++ lv2/CMakeLists.txt
@@ -5,9 +5,9 @@ cmake_minimum_required(VERSION 2.6)
project (rkrlv2)
set(LV2_INSTALL_DIR lib/lv2/rkr.lv2 ) # CACHE PATH "Specifies where the LV2 libraries should be installed")
-IF(NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O3 -msse -msse2 -mfpmath=sse -ffast-math")
-ENDIF(NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
+#IF(NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall ${PORT_SIMD_FLAGS} -ffast-math")
+#ENDIF(NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm")
# check for our various libraries
find_package(PkgConfig)