From 31bcfe4085abef9a211464966db7b7531fcc5f3c Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 18 Oct 2004 14:23:29 +0000 Subject: FLAC recently gained PPC optimizations that only work with Apple's assembler. Since they cause the FLAC build to fail on AIX and NetBSD, only enable the optimizations if the OPSYS is Darwin. There is also a misplaced #endif in lpc.h that causes the build to fail on all platforms if assembler optimizations are disabled. This is fixed by patch-af. Thanks to Michael for troubleshooting! --- audio/flac/patches/patch-af | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 audio/flac/patches/patch-af (limited to 'audio/flac/patches') diff --git a/audio/flac/patches/patch-af b/audio/flac/patches/patch-af new file mode 100644 index 00000000000..314c4f5f99a --- /dev/null +++ b/audio/flac/patches/patch-af @@ -0,0 +1,20 @@ +$NetBSD: patch-af,v 1.1 2004/10/18 14:23:29 ben Exp $ + +--- src/libFLAC/include/private/lpc.h.orig Tue Jul 27 12:13:25 2004 ++++ src/libFLAC/include/private/lpc.h +@@ -61,6 +61,7 @@ void FLAC__lpc_compute_autocorrelation_a + void FLAC__lpc_compute_autocorrelation_asm_ia32_3dnow(const FLAC__real data[], unsigned data_len, unsigned lag, FLAC__real autoc[]); + #endif + #endif ++#endif + + /* + * FLAC__lpc_compute_lp_coefficients() +@@ -154,7 +155,6 @@ void FLAC__lpc_restore_signal_asm_ia32_m + #elif defined FLAC__CPU_PPC + void FLAC__lpc_restore_signal_asm_ppc_altivec_16(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 data[]); + void FLAC__lpc_restore_signal_asm_ppc_altivec_16_order8(const FLAC__int32 residual[], unsigned data_len, const FLAC__int32 qlp_coeff[], unsigned order, int lp_quantization, FLAC__int32 data[]); +-#endif + #endif + #endif + -- cgit v1.2.3