a9da692606
Fix the following build failure raised because madplay uses mad_f_mul
which is defined in usr/include/mad.h (installed by libmad which has
been fixed by a similar workaround in commit
0aaadd525f
, unfortunately the fix works
for compiled code, not mad_f_mul define):
/tmp/cc5SGGoU.s:102: Error: selected processor does not support `smull r8,r9,r2,r4' in Thumb mode
Fixes:
- http://autobuild.buildroot.org/results/0c0955d4f6726b50cad721f4d3437dabde316e70
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# madplay
|
|
#
|
|
################################################################################
|
|
|
|
MADPLAY_VERSION = 0.15.2b
|
|
MADPLAY_SITE = http://downloads.sourceforge.net/project/mad/madplay/$(MADPLAY_VERSION)
|
|
MADPLAY_LICENSE = GPL-2.0+
|
|
MADPLAY_LICENSE_FILES = COPYING COPYRIGHT
|
|
MADPLAY_DEPENDENCIES = host-pkgconf libmad libid3tag $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
# Force autoreconf to be able to use a more recent libtool script, that
|
|
# is able to properly behave in the face of a missing C++ compiler.
|
|
# Also 0003-configure-ac-use-pkg-config-to-find-id3tag.patch
|
|
MADPLAY_AUTORECONF = YES
|
|
|
|
# madplay uses libmad which has some assembly function that is not present in
|
|
# Thumb mode:
|
|
# Error: selected processor does not support `smull r8,r9,r2,r4' in Thumb mode
|
|
# so, we desactivate Thumb mode
|
|
ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y)
|
|
MADPLAY_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -marm"
|
|
endif
|
|
|
|
# Check if ALSA is built, then we should configure after alsa-lib so
|
|
# ./configure can find alsa-lib.
|
|
ifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y)
|
|
MADPLAY_CONF_OPTS += --with-alsa
|
|
MADPLAY_DEPENDENCIES += alsa-lib
|
|
MADPLAY_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs alsa`"
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|