diff --git a/audio/cardinal/Makefile b/audio/cardinal/Makefile index 656b269ec577..a5b9ae3a62c4 100644 --- a/audio/cardinal/Makefile +++ b/audio/cardinal/Makefile @@ -1,57 +1,58 @@ PORTNAME= cardinal DISTVERSION= 22.05 PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= https://github.com/DISTRHO/Cardinal/releases/download/${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= Plugin wrapper around VCV Rack WWW= https://github.com/DISTRHO/Cardinal LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/include/FuzzySearchDatabase.hpp:textproc/fuzzysearchdatabase \ bash:shells/bash LIB_DEPENDS= libdbus-1.so:devel/dbus \ libfftw3f.so:math/fftw3-float \ libjansson.so:devel/jansson \ liblo.so:audio/liblo \ libpffft.so:math/pffft \ libpulse-simple.so:audio/pulseaudio \ libsamplerate.so:audio/libsamplerate \ libsndfile.so:audio/libsndfile \ libspeexdsp.so:audio/speexdsp USES= compiler:c++11-lang gl gmake libarchive localbase:ldflags pkgconfig python shebangfix tar:xz xorg USE_XORG= x11 xcursor xext xrandr USE_GL= gl SHEBANG_GLOB= *.sh CXXFLAGS+= -I${LOCALBASE}/include/pffft +CXXFLAGS_powerpc64le= -DNO_WARN_X86_INTRINSICS LDFLAGS+= -lpffft MAKE_ENV= LD_PRELOAD=/usr/lib/libpthread.so # workaround for https://github.com/DISTRHO/Cardinal/issues/128#issuecomment-1030817359 MAKE_ARGS= SYSDEPS=true BINARY_ALIAS= gcc-ar=ar \ python3=${PYTHON_CMD} OPTIONS_DEFINE= DOCS LTO PORTDOCS= * LTO_MAKE_ARGS= WITH_LTO=true LTO_BROKEN= Fails to build with LTO because it is gcc-centered .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 )) USES+= llvm:max=15 CC= clang${LLVM_VERSION} CPP= clang-cpp${LLVM_VERSION} CXX= clang++${LLVM_VERSION} .endif .include diff --git a/audio/cardinal/files/patch-include_neon-compat_pmmintrin.h b/audio/cardinal/files/patch-include_neon-compat_pmmintrin.h new file mode 100644 index 000000000000..4ca34e062f6e --- /dev/null +++ b/audio/cardinal/files/patch-include_neon-compat_pmmintrin.h @@ -0,0 +1,11 @@ +--- include/neon-compat/pmmintrin.h.orig 2023-08-16 16:08:02 UTC ++++ include/neon-compat/pmmintrin.h +@@ -17,7 +17,7 @@ + + #pragma once + +-#if defined(__i386__) || defined(__x86_64__) || defined(__EMSCRIPTEN__) ++#if defined(__i386__) || defined(__x86_64__) || defined(__EMSCRIPTEN__) || defined(__powerpc64__) + # include_next + #else + # include "../sse2neon/sse2neon.h"