Index: head/audio/x42-plugins-lv2/Makefile =================================================================== --- head/audio/x42-plugins-lv2/Makefile (revision 496858) +++ head/audio/x42-plugins-lv2/Makefile (revision 496859) @@ -1,61 +1,54 @@ # Created by: Yuri Victorovich # $FreeBSD$ PORTNAME= x42-plugins DISTVERSION= 20181103 # the version is published here: http://gareus.org/misc/x42-plugins.php CATEGORIES= audio MASTER_SITES= http://gareus.org/misc/x42-plugins/ PKGNAMESUFFIX= -lv2 DISTFILES= ${DISTNAME}${EXTRACT_SUFX} # only to allow USE_GITHUB=nodefault for zita4 compatilility patch MAINTAINER= yuri@FreeBSD.org COMMENT= Collection of LV2 plugins (submodules) LICENSE= GPLv2 BUILD_DEPENDS= lv2>0:audio/lv2 \ ${LOCALBASE}/include/fftw3.h:math/fftw3 \ bash:shells/bash LIB_DEPENDS= libfftw3f.so:math/fftw3-float \ libjack.so:audio/jack \ liblo.so:audio/liblo \ libltc.so:audio/libltc \ libsamplerate.so:audio/libsamplerate \ libsndfile.so:audio/libsndfile \ libzita-convolver.so:audio/zita-convolver USES= gl gmake gnome localbase pkgconfig tar:xz shebangfix USE_GITHUB= nodefault GH_TUPLE= x42:convoLV2:f814f1e:x/convoLV2zita4 USE_GNOME= glib20 pango cairo USE_XORG= x11 USE_GL= glu gl MAKE_ENV= BUILDOPENGL=yes BUILDGTK=no LV2DIR=${PREFIX}/lib/lv2 MANDIR=${PREFIX}/man/man1 SHEBANG_FILES= stepseq.lv2/gridgen.sh CXXFLAGS+= -std=c++98 OPTIONS_DEFINE_amd64= SSE OPTIONS_DEFINE_i386= SSE OPTIONS_DEFAULT_amd64= SSE OPTIONS_DEFAULT_i386= SSE 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 @${REINPLACE_CMD} 's|$$(mandir)/man1|$$(MANDIR)|' \ ${WRKSRC}/sisco.lv2/Makefile @cd ${WRKSRC} && ${RM} -r convoLV2 && ${MV} convoLV2zita4 convoLV2 @${REINPLACE_CMD} 's| -msse -msse2 -mfpmath=sse| $$(PORT_SIMD_FLAGS)|' \ ${WRKSRC}/*.lv2/Makefile ${WRKSRC}/convoLV2/Makefile .include Index: head/audio/x42-plugins-lv2/files/patch-meters.lv2_src_spectr.c =================================================================== --- head/audio/x42-plugins-lv2/files/patch-meters.lv2_src_spectr.c (nonexistent) +++ head/audio/x42-plugins-lv2/files/patch-meters.lv2_src_spectr.c (revision 496859) @@ -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: head/audio/x42-plugins-lv2/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: head/audio/x42-plugins-lv2/files/patch-onsettrigger.lv2_src_spectr.c =================================================================== --- head/audio/x42-plugins-lv2/files/patch-onsettrigger.lv2_src_spectr.c (nonexistent) +++ head/audio/x42-plugins-lv2/files/patch-onsettrigger.lv2_src_spectr.c (revision 496859) @@ -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: head/audio/x42-plugins-lv2/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: head/audio/x42-plugins-lv2/files/patch-tuna.lv2_src_spectr.c =================================================================== --- head/audio/x42-plugins-lv2/files/patch-tuna.lv2_src_spectr.c (nonexistent) +++ head/audio/x42-plugins-lv2/files/patch-tuna.lv2_src_spectr.c (revision 496859) @@ -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: head/audio/x42-plugins-lv2/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