49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Template file for 'flac'
|
|
pkgname=flac
|
|
version=1.4.3
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-rpath --disable-doxygen-docs --disable-examples
|
|
--with-ogg=${XBPS_CROSS_BASE}/usr --disable-thorough-tests"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libogg-devel"
|
|
short_desc="Free Lossless Audio Codec"
|
|
maintainer="Colin Booth <colin-void@heliocat.net>"
|
|
license="BSD-3-Clause, GPL-2.0-or-later"
|
|
homepage="https://xiph.org/flac/"
|
|
changelog="https://xiph.org/flac/changelog.html"
|
|
distfiles="https://downloads.xiph.org/releases/flac/flac-${version}.tar.xz"
|
|
checksum=6c58e69cd22348f441b861092b825e591d0b822e106de6eb0ee4d05d27205b70
|
|
# the tests fail when run as root and as such break in the CI containers
|
|
make_check=ci-skip
|
|
|
|
# TODO: make into options
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64le*) configure_args+=" --enable-altivec --enable-vsx" ;;
|
|
ppc64*) configure_args+=" --enable-altivec --disable-vsx" ;;
|
|
ppc*) configure_args+=" --disable-altivec --disable-vsx" ;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense COPYING.Xiph
|
|
}
|
|
|
|
libflac_package() {
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libflac-devel_package() {
|
|
depends="libogg-devel libflac>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/aclocal
|
|
vmove usr/share/doc
|
|
}
|
|
}
|