1 ################################################################################
5 ################################################################################
7 LAME_VERSION_MAJOR = 3.99
8 LAME_VERSION = $(LAME_VERSION_MAJOR).5
9 LAME_SITE = http://downloads.sourceforge.net/project/lame/lame/$(LAME_VERSION_MAJOR)
10 LAME_DEPENDENCIES = host-pkgconf
11 LAME_INSTALL_STAGING = YES
12 LAME_CONF_ENV = GTK_CONFIG=/bin/false
13 LAME_CONF_OPTS = --enable-dynamic-frontends
14 LAME_LICENSE = LGPLv2+
15 LAME_LICENSE_FILES = COPYING
17 # Building lame with debug symbols needs the following macros to be
18 # defined: _FPU_MASK_IM, _FPU_MASK_ZM, _FPU_MASK_OM.
19 # So, if BR2_ENABLE_DEBUG is selected, then we have force lame to be
20 # built without debug symbols because a number of architectures don't
21 # have those macros defined.
22 LAME_CONF_OPTS += --disable-debug
24 ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
25 LAME_DEPENDENCIES += libsndfile
26 LAME_CONF_OPTS += --with-fileio=sndfile
29 ifeq ($(BR2_PACKAGE_NCURSES),y)
30 LAME_DEPENDENCIES += ncurses
33 ifeq ($(BR2_ENDIAN),"BIG")
34 define LAME_BIGENDIAN_ARCH
35 echo "#define WORDS_BIGENDIAN 1" >>$(@D)/config.h
39 LAME_POST_CONFIGURE_HOOKS += LAME_BIGENDIAN_ARCH
41 $(eval $(autotools-package))