Date: Sat, 9 Jun 2018 18:15:58 +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: r472077 - in head/audio/sorcer-lv2: . files Message-ID: <201806091815.w59IFwpw031075@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Sat Jun 9 18:15:58 2018 New Revision: 472077 URL: https://svnweb.freebsd.org/changeset/ports/472077 Log: 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. Modified: head/audio/sorcer-lv2/Makefile head/audio/sorcer-lv2/files/patch-CMakeLists.txt Modified: head/audio/sorcer-lv2/Makefile ============================================================================== --- head/audio/sorcer-lv2/Makefile Sat Jun 9 18:05:42 2018 (r472076) +++ head/audio/sorcer-lv2/Makefile Sat Jun 9 18:15:58 2018 (r472077) @@ -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 el 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 @@ -32,5 +26,12 @@ USE_GNOME= cairo 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> Modified: head/audio/sorcer-lv2/files/patch-CMakeLists.txt ============================================================================== --- head/audio/sorcer-lv2/files/patch-CMakeLists.txt Sat Jun 9 18:05:42 2018 (r472076) +++ head/audio/sorcer-lv2/files/patch-CMakeLists.txt Sat Jun 9 18:15:58 2018 (r472077) @@ -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} )
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806091815.w59IFwpw031075>