distribution/packages/audio/flac/package.mk

39 lines
1.3 KiB
Makefile
Raw Normal View History

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)
# Copyright (C) 2020-present Team LibreELEC (https://libreelec.tv)
2022-02-05 14:23:32 +00:00
PKG_NAME="flac"
PKG_VERSION="1.3.3"
PKG_SHA256="213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="GPLv2"
PKG_SITE="https://xiph.org/flac/"
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
PKG_CONFIGURE_OPTS_TARGET="--enable-static \
--disable-shared \
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 \
--with-ogg=${SYSROOT_PREFIX}/usr \
2022-02-05 14:23:32 +00:00
--with-gnu-ld"
if target_has_feature sse; then
PKG_CONFIGURE_OPTS_TARGET+=" --enable-sse"
2022-02-05 14:23:32 +00:00
else
PKG_CONFIGURE_OPTS_TARGET+=" --disable-sse"
2022-02-05 14:23:32 +00:00
fi
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/bin
2022-02-05 14:23:32 +00:00
}