distribution/packages/audio/flac-system/package.mk

40 lines
1.2 KiB
Makefile
Raw Normal View History

2022-12-29 22:20:38 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2019-present Frank Hartung (supervisedthinking (@) gmail.com)
PKG_NAME="flac-system"
PKG_VERSION="$(get_pkg_version flac)"
PKG_LICENSE="GFDL-1.2"
PKG_SITE="https://xiph.org/flac/"
PKG_URL="http://downloads.xiph.org/releases/flac/flac-${PKG_VERSION}.tar.xz"
PKG_DEPENDS_TARGET="toolchain libogg-system flac"
PKG_LONGDESC="An Free Lossless Audio Codec."
PKG_TOOLCHAIN="autotools"
PKG_BUILD_FLAGS="+pic"
if [ "${TARGET_ARCH}" = "x86_64" ]; then
PKG_DEPENDS_TARGET+=" nasm:host"
fi
pre_configure_target() {
PKG_CONFIGURE_OPTS_TARGET="--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
}
post_makeinstall_target() {
safe_remove ${INSTALL}/usr/bin
}