summaryrefslogtreecommitdiff
path: root/audio/flac/patches
diff options
context:
space:
mode:
authorben <ben>2004-10-18 14:23:29 +0000
committerben <ben>2004-10-18 14:23:29 +0000
commit31bcfe4085abef9a211464966db7b7531fcc5f3c (patch)
treea4f7e49db5aac2a0d7bb24d0e523d107db419469 /audio/flac/patches
parenta65d799469546d5d4420feb7e0231d7730afc985 (diff)
downloadpkgsrc-31bcfe4085abef9a211464966db7b7531fcc5f3c.tar.gz
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 <macallan18@earthlink.net> for troubleshooting!
Diffstat (limited to 'audio/flac/patches')
-rw-r--r--audio/flac/patches/patch-af20
1 files changed, 20 insertions, 0 deletions
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
+