2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
|
|
|
|
|
|
|
|
PKG_NAME="flac"
|
2022-04-14 11:03:39 +00:00
|
|
|
PKG_VERSION="1.3.2"
|
|
|
|
PKG_SHA256="91cfc3ed61dc40f47f050a109b08610667d73477af6ef36dcad31c31a4a8d53f"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_LICENSE="GPLv2"
|
|
|
|
PKG_SITE="https://xiph.org/flac/"
|
2022-04-14 11:03:39 +00:00
|
|
|
PKG_URL="http://downloads.xiph.org/releases/flac/$PKG_NAME-$PKG_VERSION.tar.xz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain libogg"
|
|
|
|
PKG_LONGDESC="An Free Lossless Audio Codec."
|
|
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
# flac-1.3.1 dont build with LTO support
|
|
|
|
PKG_BUILD_FLAGS="+pic"
|
|
|
|
|
|
|
|
# package specific configure options
|
2022-04-14 11:03:39 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--enable-shared \
|
|
|
|
--disable-static \
|
2022-02-05 14:23:32 +00:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-altivec \
|
|
|
|
--disable-doxygen-docs \
|
|
|
|
--disable-thorough-tests \
|
|
|
|
--disable-cpplibs \
|
|
|
|
--disable-xmms-plugin \
|
|
|
|
--disable-oggtest \
|
2022-04-14 11:03:39 +00:00
|
|
|
--with-ogg=$SYSROOT_PREFIX/usr \
|
2022-02-05 14:23:32 +00:00
|
|
|
--with-gnu-ld"
|
|
|
|
|
|
|
|
if target_has_feature sse; then
|
2022-04-14 11:03:39 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --enable-sse"
|
2022-02-05 14:23:32 +00:00
|
|
|
else
|
2022-04-14 11:03:39 +00:00
|
|
|
PKG_CONFIGURE_OPTS_TARGET="$PKG_CONFIGURE_OPTS_TARGET --disable-sse"
|
2022-02-05 14:23:32 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
2022-04-14 11:03:39 +00:00
|
|
|
rm -rf $INSTALL/usr/bin
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|