e47e0af1ffa31296c5d8a4f20adeca8b1a78aea7
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / lame / lame.mk
1 ################################################################################
2 #
3 # lame
4 #
5 ################################################################################
6
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
16
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
23
24 ifeq ($(BR2_PACKAGE_LIBSNDFILE),y)
25 LAME_DEPENDENCIES += libsndfile
26 LAME_CONF_OPTS += --with-fileio=sndfile
27 endif
28
29 ifeq ($(BR2_PACKAGE_NCURSES),y)
30 LAME_DEPENDENCIES += ncurses
31 endif
32
33 ifeq ($(BR2_ENDIAN),"BIG")
34 define LAME_BIGENDIAN_ARCH
35         echo "#define WORDS_BIGENDIAN 1" >>$(@D)/config.h
36 endef
37 endif
38
39 LAME_POST_CONFIGURE_HOOKS += LAME_BIGENDIAN_ARCH
40
41 $(eval $(autotools-package))