xref: /OK3568_Linux_fs/buildroot/package/madplay/madplay.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# madplay
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunMADPLAY_VERSION = 0.15.2b
8*4882a593SmuzhiyunMADPLAY_SITE = http://downloads.sourceforge.net/project/mad/madplay/$(MADPLAY_VERSION)
9*4882a593SmuzhiyunMADPLAY_LICENSE = GPL-2.0+
10*4882a593SmuzhiyunMADPLAY_LICENSE_FILES = COPYING COPYRIGHT
11*4882a593SmuzhiyunMADPLAY_DEPENDENCIES = host-pkgconf libmad libid3tag $(TARGET_NLS_DEPENDENCIES)
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun# Force autoreconf to be able to use a more recent libtool script, that
14*4882a593Smuzhiyun# is able to properly behave in the face of a missing C++ compiler.
15*4882a593Smuzhiyun# Also 0003-configure-ac-use-pkg-config-to-find-id3tag.patch
16*4882a593SmuzhiyunMADPLAY_AUTORECONF = YES
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun# Check if ALSA is built, then we should configure after alsa-lib so
19*4882a593Smuzhiyun# ./configure can find alsa-lib.
20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y)
21*4882a593SmuzhiyunMADPLAY_CONF_OPTS += --with-alsa
22*4882a593SmuzhiyunMADPLAY_DEPENDENCIES += alsa-lib
23*4882a593SmuzhiyunMADPLAY_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs alsa`"
24*4882a593Smuzhiyunendif
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun$(eval $(autotools-package))
27