[Buildroot] mplayer-package doesn't build for other architectures than avr32

Simon Pasch fpasch at googlemail.com
Wed Aug 29 08:33:04 UTC 2007

It's the same issues as in libmad-package:
There are architecture-specific patches. (by the way...one should be
removed, as they can't be used both at the same time.
AVR32-Users...tell us which one is the good one!)

I added an extra command to the Makefile, because the build fails on
my x86. Don't know if this breaks the build on other architectures.
So either a sed-command can be used inside the Makefile or an extra
architecture-specific patch (but it's not that simple with $(ARCH),
because then you need patches for i386, i686, etc).

This is my sed-command approach. (you have to manually rename the avr-patches):

--- buildroot/package/mplayer/mplayer.mk.old	2007-08-28 09:15:43.000000000 +0200
+++ buildroot/package/mplayer/mplayer.mk	2007-08-29 10:02:07.000000000 +0200
@@ -22,7 +22,9 @@

-	toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/
+	toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/
+	toolchain/patch-kernel.sh $(MPLAYER_DIR) package/mplayer/
+	$(SED) '/^CFLAGS/s/$$/ -fomit-frame-pointer/'
 	touch $@

 $(MPLAYER_DIR)/.configured: $(MPLAYER_DIR)/.unpacked

More information about the buildroot mailing list