toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / madplay / madplay.mk
blob6b13819754852a98d7cfbeeb5a328fa1eb7eb0a9
1 ################################################################################
3 # madplay
5 ################################################################################
7 MADPLAY_VERSION = 0.15.2b
8 MADPLAY_SITE = http://downloads.sourceforge.net/project/mad/madplay/$(MADPLAY_VERSION)
9 MADPLAY_LICENSE = GPLv2+
10 MADPLAY_LICENSE_FILES = COPYING COPYRIGHT
11 MADPLAY_LIBTOOL_PATCH = NO
12 MADPLAY_DEPENDENCIES = libmad libid3tag $(if $(BR2_PACKAGE_GETTEXT),gettext)
14 # Workaround a bug in uClibc-ng, which exposes madvise() but doesn't
15 # provide the corresponding MADV_* definitions. Bug reported at
16 # http://mailman.uclibc-ng.org/pipermail/devel/2016-December/001306.html. madvise()
17 # is anyway useless on noMMU.
18 ifeq ($(BR2_USE_MMU),)
19 MADPLAY_CONF_ENV += ac_cv_func_madvise=no
20 endif
22 # Check if ALSA is built, then we should configure after alsa-lib so
23 # ./configure can find alsa-lib.
24 ifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y)
25 MADPLAY_CONF_OPTS += --with-alsa
26 MADPLAY_DEPENDENCIES += host-pkgconf alsa-lib
27 MADPLAY_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs alsa`"
28 endif
30 $(eval $(autotools-package))