package/mplayer: needs host-yasm for mmx support
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 8 Nov 2015 16:22:32 +0000 (17:22 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 11 Nov 2015 14:19:23 +0000 (15:19 +0100)
Fixes
http://autobuild.buildroot.net/results/6a8/6a8c3a70e33cb5b3fc40d036fb0716d915185f33/
http://autobuild.buildroot.net/results/cef/cef30d4e14d39ab64bb27a6514a0390755f4a9d2/
http://autobuild.buildroot.net/results/03b/03b1b42688b07789971a99337708b4dbe4278665/
http://autobuild.buildroot.net/results/5e3/5e3320dfc6793a9ff0494161cdc9a3be795462c4/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mplayer/mplayer.mk

index 2f588643d55fd2dc56668a37cbefd72527982a78..99fc469f6a43939f8e0aaf8b141264dfbb8222b4 100644 (file)
@@ -259,6 +259,13 @@ ifeq ($(BR2_i386),y)
 MPLAYER_CFLAGS += -fomit-frame-pointer
 endif
 
+ifeq ($(BR2_X86_CPU_HAS_MMX),y)
+MPLAYER_CONF_OPTS += --yasm=$(HOST_DIR)/usr/bin/yasm
+MPLAYER_DEPENDENCIES += host-yasm
+else
+MPLAYER_CONF_OPTS += --yasm=''
+endif
+
 define MPLAYER_CONFIGURE_CMDS
        (cd $(@D); rm -rf config.cache; \
                $(TARGET_CONFIGURE_OPTS) \
@@ -273,7 +280,6 @@ define MPLAYER_CONFIGURE_CMDS
                --charset=UTF-8 \
                --extra-cflags="$(MPLAYER_CFLAGS)" \
                --extra-ldflags="$(MPLAYER_LDFLAGS)" \
-               --yasm='' \
                --enable-fbdev \
                $(MPLAYER_CONF_OPTS) \
                --enable-cross-compile \