1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-24 07:56:21 +00:00
Lakka-LibreELEC/packages/audio/flac/package.mk
2023-01-18 11:15:04 +01:00

43 lines
1.5 KiB
Makefile

# 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)
PKG_NAME="flac"
PKG_VERSION="1.4.2"
PKG_SHA256="e322d58a1f48d23d9dd38f432672865f6f79e73a6f9cc5a5f57fcaa83eb5a8e4"
PKG_LICENSE="GPLv2"
PKG_SITE="https://xiph.org/flac/"
PKG_URL="https://downloads.xiph.org/releases/flac/${PKG_NAME}-${PKG_VERSION}.tar.xz"
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 \
--disable-rpath \
--disable-altivec \
--disable-doxygen-docs \
--disable-thorough-tests \
--disable-cpplibs \
--disable-xmms-plugin \
--disable-oggtest \
--with-ogg=${SYSROOT_PREFIX}/usr \
--with-gnu-ld"
if target_has_feature sse; then
PKG_CONFIGURE_OPTS_TARGET+=" --enable-sse"
else
PKG_CONFIGURE_OPTS_TARGET+=" --disable-sse"
fi
if [ "${DISTRO}" = "Lakka" ]; then
PKG_CONFIGURE_OPTS_TARGET="${PKG_CONFIGURE_OPTS_TARGET//--disable-shared/--enable-shared}"
fi
post_makeinstall_target() {
rm -rf ${INSTALL}/usr/bin
}