xref: /OK3568_Linux_fs/buildroot/package/flac/flac.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# flac
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunFLAC_VERSION = 1.3.3
8*4882a593SmuzhiyunFLAC_SITE = http://downloads.xiph.org/releases/flac
9*4882a593SmuzhiyunFLAC_SOURCE = flac-$(FLAC_VERSION).tar.xz
10*4882a593SmuzhiyunFLAC_INSTALL_STAGING = YES
11*4882a593SmuzhiyunFLAC_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
12*4882a593SmuzhiyunFLAC_LICENSE = Xiph BSD-like (libFLAC), GPL-2.0+ (tools), LGPL-2.1+ (other libraries)
13*4882a593SmuzhiyunFLAC_LICENSE_FILES = COPYING.Xiph COPYING.GPL COPYING.LGPL
14*4882a593SmuzhiyunFLAC_CPE_ID_VENDOR = flac_project
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# patch touching configure.ac
17*4882a593SmuzhiyunFLAC_AUTORECONF = YES
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunFLAC_CONF_OPTS = \
20*4882a593Smuzhiyun	$(if $(BR2_INSTALL_LIBSTDCPP),--enable-cpplibs,--disable-cpplibs) \
21*4882a593Smuzhiyun	--disable-xmms-plugin \
22*4882a593Smuzhiyun	--disable-altivec
23*4882a593Smuzhiyun
24*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBOGG),y)
25*4882a593SmuzhiyunFLAC_CONF_OPTS += --with-ogg=$(STAGING_DIR)/usr
26*4882a593SmuzhiyunFLAC_DEPENDENCIES += libogg
27*4882a593Smuzhiyunelse
28*4882a593SmuzhiyunFLAC_CONF_OPTS += --disable-ogg
29*4882a593Smuzhiyunendif
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunifeq ($(BR2_X86_CPU_HAS_SSE),y)
32*4882a593SmuzhiyunFLAC_DEPENDENCIES += host-nasm
33*4882a593SmuzhiyunFLAC_CONF_OPTS += --enable-sse
34*4882a593Smuzhiyunelse
35*4882a593SmuzhiyunFLAC_CONF_OPTS += --disable-sse
36*4882a593Smuzhiyunendif
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun$(eval $(autotools-package))
39