audio/sorcer-lv2: Unbreak on non-Intel/AMD architectures
Make SSE flags depend on the option SSE that defaults to 'on' only on amd64/i386 architectures. Also removed the -g flag.
This commit is contained in:
parent
f36044e340
commit
1bb79bc493
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=472077
@ -3,7 +3,7 @@
|
||||
PORTNAME= Sorcer
|
||||
DISTVERSIONPREFIX= release-
|
||||
DISTVERSION= 1.1.3
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= audio
|
||||
PKGNAMESUFFIX= -lv2
|
||||
|
||||
@ -13,12 +13,6 @@ COMMENT= Wavetable LV2 plugin synth targeted at the electronic/dubstep genre
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
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 "-msse2"
|
||||
|
||||
BUILD_DEPENDS= lv2>0:audio/lv2 \
|
||||
${LOCALBASE}/include/boost/circular_buffer.hpp:devel/boost-libs
|
||||
LIB_DEPENDS= libntk.so:x11-toolkits/ntk
|
||||
@ -33,4 +27,11 @@ PLIST_FILES= lib/lv2/sorcer.lv2/manifest.ttl \
|
||||
lib/lv2/sorcer.lv2/sorcer.so \
|
||||
lib/lv2/sorcer.lv2/sorcer.ttl
|
||||
|
||||
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"
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- CMakeLists.txt.orig 2016-03-06 16:11:56 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -15,13 +15,17 @@ find_package(PkgConfig)
|
||||
@@ -15,18 +15,22 @@ find_package(PkgConfig)
|
||||
|
||||
#SET(CMAKE_INSTALL_PREFIX "/usr" )
|
||||
|
||||
@ -21,6 +21,13 @@
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "-fPIC -shared -Wl,-z,nodelete -Wl,--no-undefined")
|
||||
|
||||
IF(RELEASE_BUILD)
|
||||
- SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-unused-variable -msse2 -mfpmath=sse -ffast-math")
|
||||
- SET(CMAKE_C_FLAGS "-g -Wall -W -Wno-unused-variable -msse2 -mfpmath=sse -ffast-math")
|
||||
+ SET(CMAKE_CXX_FLAGS "-Wall -Wno-unused-variable ${PORT_SIMD_FLAGS} -ffast-math")
|
||||
+ SET(CMAKE_C_FLAGS "-Wall -W -Wno-unused-variable ${PORT_SIMD_FLAGS} -ffast-math")
|
||||
ENDIF()
|
||||
|
||||
## The following commands will re-generate the .cpp files from the FAUST .dsp,
|
||||
@@ -81,6 +85,8 @@ ADD_LIBRARY(sorcer SHARED ${sources})
|
||||
target_link_libraries( sorcer ${NTK_LIBRARIES} )
|
||||
#target_link_libraries( sorcer ${SNDFILE_LIBRARIES} )
|
||||
|
Loading…
Reference in New Issue
Block a user