Index: Makefile =================================================================== --- Makefile (revision 508978) +++ Makefile (working copy) @@ -30,7 +30,12 @@ TEST_TARGET= check OPTIONS_DEFINE= DOCS +OPTIONS_DEFINE_powerpc64= VSX +VSX_CFLAGS= -mvsx +VSX_CONFIGURE_ENABLE= vsx +VSX_DESC= Enable VSX intrinsics support + .include .if ${ARCH} == "i386" Index: files/patch-src_libFLAC_cpu.c =================================================================== --- files/patch-src_libFLAC_cpu.c (nonexistent) +++ files/patch-src_libFLAC_cpu.c (working copy) @@ -0,0 +1,24 @@ +--- src/libFLAC/cpu.c.orig 2019-08-15 00:05:19 UTC ++++ src/libFLAC/cpu.c +@@ -245,11 +245,21 @@ ppc_cpu_info (FLAC__CPUInfo *info) + #define PPC_FEATURE2_ARCH_2_07 0x80000000 + #endif + ++#ifdef __linux__ + if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_3_00) { + info->ppc.arch_3_00 = true; + } else if (getauxval(AT_HWCAP2) & PPC_FEATURE2_ARCH_2_07) { + info->ppc.arch_2_07 = true; + } ++#elif defined(__FreeBSD__) ++ long hwcaps; ++ elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps)); ++ if (hwcaps & PPC_FEATURE2_ARCH_3_00) { ++ info->ppc.arch_3_00 = true; ++ } else if (hwcaps & PPC_FEATURE2_ARCH_2_07) { ++ info->ppc.arch_2_07 = true; ++ } ++#endif + #else + info->ppc.arch_2_07 = false; + info->ppc.arch_3_00 = false; Property changes on: files/patch-src_libFLAC_cpu.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