xref: /OK3568_Linux_fs/buildroot/package/lame/lame.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# lame
4#
5################################################################################
6
7LAME_VERSION = 3.100
8LAME_SITE = http://downloads.sourceforge.net/project/lame/lame/$(LAME_VERSION)
9LAME_DEPENDENCIES = host-pkgconf
10LAME_INSTALL_STAGING = YES
11LAME_CONF_ENV = GTK_CONFIG=/bin/false
12LAME_CONF_OPTS = --enable-dynamic-frontends
13LAME_LICENSE = LGPL-2.0+
14LAME_LICENSE_FILES = COPYING
15LAME_CPE_ID_VENDOR = lame_project
16
17ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
18LAME_DEPENDENCIES += libsndfile
19LAME_CONF_OPTS += --with-fileio=sndfile
20endif
21
22ifeq ($(BR2_PACKAGE_NCURSES),y)
23LAME_DEPENDENCIES += ncurses
24endif
25
26ifeq ($(BR2_ENDIAN),"BIG")
27define LAME_BIGENDIAN_ARCH
28	echo "#define WORDS_BIGENDIAN 1" >>$(@D)/config.h
29endef
30endif
31
32LAME_POST_CONFIGURE_HOOKS += LAME_BIGENDIAN_ARCH
33
34$(eval $(autotools-package))
35