2009-02-20 14:02:13 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# flac
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2014-11-27 17:33:25 +01:00
|
|
|
FLAC_VERSION = 1.3.1
|
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)
|
|
|
|
FLAC_LICENSE = Xiph BSD-like (libFLAC), GPLv2+ (tools), LGPLv2.1+ (other libraries)
|
|
|
|
FLAC_LICENSE_FILES = COPYING.Xiph COPYING.GPL COPYING.LGPL
|
2014-09-27 21:32:44 +02:00
|
|
|
FLAC_CONF_OPTS = \
|
2009-02-20 14:02:13 +01:00
|
|
|
--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))
|