flac: fix powerpc build
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 6 Jan 2011 18:41:59 +0000 (15:41 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 10 Jan 2011 21:24:43 +0000 (22:24 +0100)
flac incorrectly assumes every powerpc around has altivec.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/flac/flac-no-altivec.patch [new file with mode: 0644]
package/multimedia/flac/flac.mk

diff --git a/package/multimedia/flac/flac-no-altivec.patch b/package/multimedia/flac/flac-no-altivec.patch
new file mode 100644 (file)
index 0000000..c6a535b
--- /dev/null
@@ -0,0 +1,28 @@
+FLAC assumes every powerpc around has altivec ABI which is wrong.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura flac-1.2.1/src/libFLAC/Makefile.am flac-1.2.1-noaltivec/src/libFLAC/Makefile.am
+--- flac-1.2.1/src/libFLAC/Makefile.am 2007-09-14 18:06:17.000000000 -0300
++++ flac-1.2.1-noaltivec/src/libFLAC/Makefile.am       2011-01-06 15:14:36.384242614 -0300
+@@ -41,7 +41,7 @@
+ else
+ # Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
+ #@@@ PPC optimizations temporarily disabled
+-CPUCFLAGS = -maltivec -mabi=altivec -DFLAC__NO_ASM
++CPUCFLAGS = -DFLAC__NO_ASM
+ endif
+ endif
+diff -Nura flac-1.2.1/src/libFLAC/Makefile.in flac-1.2.1-noaltivec/src/libFLAC/Makefile.in
+--- flac-1.2.1/src/libFLAC/Makefile.in 2007-09-16 17:05:12.000000000 -0300
++++ flac-1.2.1-noaltivec/src/libFLAC/Makefile.in       2011-01-06 15:14:50.997545602 -0300
+@@ -240,7 +240,7 @@
+ @FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_TRUE@CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM
+ # Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
+ #@@@ PPC optimizations temporarily disabled
+-@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@CPUCFLAGS = -maltivec -mabi=altivec -DFLAC__NO_ASM
++@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@CPUCFLAGS = -DFLAC__NO_ASM
+ AM_CFLAGS = $(DEBUGCFLAGS) $(CPUCFLAGS) @OGG_CFLAGS@
+ @FLaC__CPU_PPC_TRUE@@FLaC__NO_ASM_FALSE@ARCH_SUBDIRS = ppc
index a11924aecfa17736478d9e6f68c9e62cb8c2eb78..dbaf2e9ef57bb557a0f2764d15339539615c9f8b 100644 (file)
@@ -7,8 +7,6 @@
 FLAC_VERSION = 1.2.1
 FLAC_SOURCE = flac-$(FLAC_VERSION).tar.gz
 FLAC_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/flac/
-FLAC_AUTORECONF = NO
-FLAC_INSTALL_TARGET = YES
 FLAC_INSTALL_STAGING = YES
 
 FLAC_CONF_OPT = \