diff --git a/audio/sfizz/Makefile b/audio/sfizz/Makefile index e53583c195d0..094ae7cb05fd 100644 --- a/audio/sfizz/Makefile +++ b/audio/sfizz/Makefile @@ -1,53 +1,51 @@ PORTNAME= sfizz DISTVERSION= 1.2.3 CATEGORIES= audio MAINTAINER= yuri@FreeBSD.org COMMENT= SFZ parser and synth C++ library & LV2/VST3 plugins WWW= https://sfz.tools/sfizz/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_aarch64= compilation fails: fatal error: 'linux/auxvec.h' file not found, see https://github.com/steinwurf/cpuid/issues/65 - LIB_DEPENDS= libabsl_hash.so:devel/abseil RUN_DEPENDS= zenity:x11/zenity USES= cmake compiler:c++17-lang localbase:ldflags pkgconfig qt:5 USE_QT= buildtools:build qmake:build widgets USE_GITHUB= yes GH_ACCOUNT= sfztools GH_TUPLE= mackron:dr_libs:e4a7765e598e9e54dc0f520b7e4416359bee80cc:mackron_dr_libs/external/st_audiofile/thirdparty/dr_libs \ sfztools:libaiff:78864a4a2e769e426be8cfd78ae7f5f72e236c33:sfztools_libaiff/external/st_audiofile/thirdparty/libaiff \ gulrak:filesystem:8a2edd6d92ed820521d42c94d179462bf06b5ed3:gulrak_filesystem/external/filesystem \ simd-everywhere:simde:2bf459d4ed6d7ed6b9f31bd9e07c91bace5009e0:simd_everywhere_simde/external/simde \ dbry:WavPack:07ffb331d23c16e2d2979370441f63ea722760bc:dbry_WavPack/external/st_audiofile/thirdparty/wavpack \ doctest:doctest:86892fc480f80fb57d9a3926cb506c0e974489d8:doctest_doctest/external/invoke.hpp/vendors/doctest \ nemequ:munit:da8f73412998e4f1adf1100dc187533a51af77fd:nemequ_munit/external/simde/test/munit \ dr-soft:miniaudio:d1a166c83ab445b1c14bc83d37c84e18d172e5f5:dr_soft_miniaudio/external/st_audiofile/thirdparty/dr_libs/tests/external/miniaudio USE_LDCONFIG= yes CMAKE_ON= SFIZZ_USE_SYSTEM_ABSEIL CMAKE_ARGS= -DCMAKE_CXX_STANDARD=17 OPTIONS_DEFINE= JACK OPTIONS_DEFAULT= JACK OPTIONS_SUB= yes JACK_LIB_DEPENDS= libjack.so:audio/jack JACK_CMAKE_BOOL= SFIZZ_JACK post-patch: # fix conflict of CACHE_LINE_SIZE with system-defined macro @${REINPLACE_CMD} \ -e 's|CACHE_LINE_SIZE|CACHE_LINE_SIZEx|' \ ${WRKSRC}/external/atomic_queue/include/atomic_queue/atomic_queue.h \ ${WRKSRC}/external/atomic_queue/include/atomic_queue/defs.h @${REINPLACE_CMD} \ -E -e 's/(template do_(push|pop)_any)/\1<>/' \ ${WRKSRC}/external/atomic_queue/include/atomic_queue/atomic_queue.h .include diff --git a/audio/sfizz/files/patch-src_external_cpuid_src_cpuid_detail_init__linux__gcc__arm.hpp b/audio/sfizz/files/patch-src_external_cpuid_src_cpuid_detail_init__linux__gcc__arm.hpp new file mode 100644 index 000000000000..2998fa8fce25 --- /dev/null +++ b/audio/sfizz/files/patch-src_external_cpuid_src_cpuid_detail_init__linux__gcc__arm.hpp @@ -0,0 +1,28 @@ +--- src/external/cpuid/src/cpuid/detail/init_linux_gcc_arm.hpp.orig 2024-12-29 13:01:01 UTC ++++ src/external/cpuid/src/cpuid/detail/init_linux_gcc_arm.hpp +@@ -11,7 +11,11 @@ + + #include + #include ++#ifdef __FreeBSD__ ++#include ++#else + #include ++#endif + #include + + #include "cpuinfo_impl.hpp" +@@ -28,6 +32,13 @@ void init_cpuinfo(cpuinfo::impl& info) + // (64-bit ARM). Note that /proc/cpuinfo will display "asimd" instead of + // "neon" in the Features list on a 64-bit ARM CPU. + info.m_has_neon = true; ++#elif defined(__FreeBSD__) ++ // armv7 FreeBSD ++ long hwcap = 0; ++ ++ elf_aux_info(AT_HWCAP, &hwcap, sizeof hwcap); ++ ++ info.m_has_neon = hwcap & HWCAP_NEON; + #else + // Runtime detection of NEON is necessary on 32-bit ARM CPUs + //