Index: Makefile =================================================================== --- Makefile (revision 495005) +++ Makefile (working copy) @@ -42,13 +42,6 @@ SSE_MAKE_ARGS= PORT_SIMD_FLAGS="-msse -msse2 -mfpmath=sse" -# It suffers from the regression in clang-6: https://bugs.llvm.org/show_bug.cgi?id=36915 -LLVM_VER= 50 -BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER} -CPP= clang-cpp${LLVM_VER} -CC= clang${LLVM_VER} -CXX= clang++${LLVM_VER} - post-patch: @${REINPLACE_CMD} 's| -O3||' \ ${WRKSRC}/*.lv2/Makefile Index: files/patch-meters.lv2_src_spectr.c =================================================================== --- files/patch-meters.lv2_src_spectr.c (nonexistent) +++ files/patch-meters.lv2_src_spectr.c (working copy) @@ -0,0 +1,23 @@ +--- meters.lv2/src/spectr.c.orig ++++ meters.lv2/src/spectr.c +@@ -30,10 +30,17 @@ + # define csqrt(XX) std::sqrt(XX) + # define creal(XX) std::real(XX) + # define cimag(XX) std::imag(XX) +-# define _I ((complex_t)(1i)) +- #ifdef __cpp_lib_complex_udls ++ ++# ifdef __cpp_lib_complex_udls + using namespace std::literals::complex_literals; +- #endif ++# endif ++ ++# if defined __clang_major__ && __clang_major__ > 4 ++# define _I (std::complex(0.0,1.0)) ++# else ++# define _I ((complex_t)(1i)) ++# endif ++ + typedef std::complex complex_t; + #else + # include Property changes on: files/patch-meters.lv2_src_spectr.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-onsettrigger.lv2_src_spectr.c =================================================================== --- files/patch-onsettrigger.lv2_src_spectr.c (nonexistent) +++ files/patch-onsettrigger.lv2_src_spectr.c (working copy) @@ -0,0 +1,23 @@ +--- onsettrigger.lv2/src/spectr.c.orig ++++ onsettrigger.lv2/src/spectr.c +@@ -30,10 +30,17 @@ + # define csqrt(XX) std::sqrt(XX) + # define creal(XX) std::real(XX) + # define cimag(XX) std::imag(XX) +-# define _I ((complex_t)(1i)) +- #ifdef __cpp_lib_complex_udls ++ ++# ifdef __cpp_lib_complex_udls + using namespace std::literals::complex_literals; +- #endif ++# endif ++ ++# if defined __clang_major__ && __clang_major__ > 4 ++# define _I (std::complex(0.0,1.0)) ++# else ++# define _I ((complex_t)(1i)) ++# endif ++ + typedef std::complex complex_t; + #else + # include Property changes on: files/patch-onsettrigger.lv2_src_spectr.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: files/patch-tuna.lv2_src_spectr.c =================================================================== --- files/patch-tuna.lv2_src_spectr.c (nonexistent) +++ files/patch-tuna.lv2_src_spectr.c (working copy) @@ -0,0 +1,23 @@ +--- tuna.lv2/src/spectr.c.orig ++++ tuna.lv2/src/spectr.c +@@ -30,10 +30,17 @@ + # define csqrt(XX) std::sqrt(XX) + # define creal(XX) std::real(XX) + # define cimag(XX) std::imag(XX) +-# define _I ((complex_t)(1i)) +- #ifdef __cpp_lib_complex_udls ++ ++# ifdef __cpp_lib_complex_udls + using namespace std::literals::complex_literals; +- #endif ++# endif ++ ++# if defined __clang_major__ && __clang_major__ > 4 ++# define _I (std::complex(0.0,1.0)) ++# else ++# define _I ((complex_t)(1i)) ++# endif ++ + typedef std::complex complex_t; + #else + # include Property changes on: files/patch-tuna.lv2_src_spectr.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property