2009-02-20 14:02:13 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# flac
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-08-25 19:37:58 +02:00
|
|
|
FLAC_VERSION = 1.3.3
|
2014-04-11 12:55:05 +02:00
|
|
|
FLAC_SITE = http://downloads.xiph.org/releases/flac
|
|
|
|
FLAC_SOURCE = flac-$(FLAC_VERSION).tar.xz
|
2009-02-20 14:02:13 +01:00
|
|
|
FLAC_INSTALL_STAGING = YES
|
2014-04-11 12:55:05 +02:00
|
|
|
FLAC_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
2017-03-30 15:43:34 +02:00
|
|
|
FLAC_LICENSE = Xiph BSD-like (libFLAC), GPL-2.0+ (tools), LGPL-2.1+ (other libraries)
|
2014-04-11 12:55:05 +02:00
|
|
|
FLAC_LICENSE_FILES = COPYING.Xiph COPYING.GPL COPYING.LGPL
|
2021-03-05 23:27:44 +01:00
|
|
|
FLAC_CPE_ID_VENDOR = flac_project
|
2019-09-29 21:49:12 +02:00
|
|
|
|
|
|
|
# patch touching configure.ac
|
|
|
|
FLAC_AUTORECONF = YES
|
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
FLAC_CONF_OPTS = \
|
2021-06-28 08:01:25 +02:00
|
|
|
$(if $(BR2_INSTALL_LIBSTDCPP),--enable-cpplibs,--disable-cpplibs) \
|
2014-04-11 12:55:05 +02:00
|
|
|
--disable-xmms-plugin \
|
|
|
|
--disable-altivec
|
2009-02-20 14:02:13 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBOGG),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
FLAC_CONF_OPTS += --with-ogg=$(STAGING_DIR)/usr
|
2014-04-11 12:55:05 +02:00
|
|
|
FLAC_DEPENDENCIES += libogg
|
2009-02-20 14:02:13 +01:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FLAC_CONF_OPTS += --disable-ogg
|
2009-02-20 14:02:13 +01:00
|
|
|
endif
|
|
|
|
|
2014-04-11 12:55:05 +02:00
|
|
|
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
|
|
|
FLAC_DEPENDENCIES += host-nasm
|
2014-09-27 21:32:44 +02:00
|
|
|
FLAC_CONF_OPTS += --enable-sse
|
2014-04-11 12:55:05 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
FLAC_CONF_OPTS += --disable-sse
|
2014-04-11 12:55:05 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|