mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From 8589b44c573d4228a9df3ba7bffdfdf584e7b033 Mon Sep 17 00:00:00 2001
|
||||
From: Peter Korsgaard <peter@korsgaard.com>
|
||||
Date: Mon, 9 Jan 2017 21:38:29 +0100
|
||||
Subject: [PATCH] configure.ac: relax linux OS detection
|
||||
|
||||
Not all linux hosts match the *-pc-linux-gnu wildcard, causing build
|
||||
failures for older glibc versions where we need to link with -lrt for
|
||||
clock_gettime - E.G.:
|
||||
|
||||
- arm-unknown-linux-musleabihf
|
||||
- powerpc-unknown-linux-gnuspe
|
||||
- bfin-linux-linux-uclibc
|
||||
..
|
||||
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
configure.ac | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 070ab357..235d2717 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -186,7 +186,7 @@ esac
|
||||
AM_CONDITIONAL(OS_IS_WINDOWS, test "x$os_is_windows" = xyes)
|
||||
|
||||
case "$host" in
|
||||
- *-pc-linux-gnu)
|
||||
+ *-linux-*)
|
||||
sys_linux=true
|
||||
AC_DEFINE(FLAC__SYS_LINUX)
|
||||
AH_TEMPLATE(FLAC__SYS_LINUX, [define if building for Linux])
|
||||
--
|
||||
2.11.0
|
||||
|
||||
10
package/flac/Config.in
Normal file
10
package/flac/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_FLAC
|
||||
bool "flac"
|
||||
depends on BR2_USE_WCHAR
|
||||
help
|
||||
FLAC is an Open Source lossless audio codec.
|
||||
|
||||
http://flac.sourceforge.net/
|
||||
|
||||
comment "flac needs a toolchain w/ wchar"
|
||||
depends on !BR2_USE_WCHAR
|
||||
2
package/flac/flac.hash
Normal file
2
package/flac/flac.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://downloads.xiph.org/releases/flac/SHA256SUMS.txt
|
||||
sha256 91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f flac-1.3.2.tar.xz
|
||||
35
package/flac/flac.mk
Normal file
35
package/flac/flac.mk
Normal file
@@ -0,0 +1,35 @@
|
||||
################################################################################
|
||||
#
|
||||
# flac
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FLAC_VERSION = 1.3.2
|
||||
FLAC_SITE = http://downloads.xiph.org/releases/flac
|
||||
FLAC_SOURCE = flac-$(FLAC_VERSION).tar.xz
|
||||
FLAC_INSTALL_STAGING = YES
|
||||
FLAC_DEPENDENCIES = $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
||||
FLAC_LICENSE = Xiph BSD-like (libFLAC), GPL-2.0+ (tools), LGPL-2.1+ (other libraries)
|
||||
FLAC_LICENSE_FILES = COPYING.Xiph COPYING.GPL COPYING.LGPL
|
||||
# 0001-configure.ac-relax-linux-OS-detection.patch patches configure.ac
|
||||
FLAC_AUTORECONF = YES
|
||||
FLAC_CONF_OPTS = \
|
||||
--disable-cpplibs \
|
||||
--disable-xmms-plugin \
|
||||
--disable-altivec
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBOGG),y)
|
||||
FLAC_CONF_OPTS += --with-ogg=$(STAGING_DIR)/usr
|
||||
FLAC_DEPENDENCIES += libogg
|
||||
else
|
||||
FLAC_CONF_OPTS += --disable-ogg
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_X86_CPU_HAS_SSE),y)
|
||||
FLAC_DEPENDENCIES += host-nasm
|
||||
FLAC_CONF_OPTS += --enable-sse
|
||||
else
|
||||
FLAC_CONF_OPTS += --disable-sse
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user