43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
# Template file for 'flac'
|
|
pkgname=flac
|
|
version=1.3.3
|
|
revision=1
|
|
patch_args="-Np1"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-rpath --disable-doxygen-docs --disable-xmms-plugin
|
|
--with-ogg=${XBPS_CROSS_BASE}/usr --disable-thorough-tests"
|
|
hostmakedepends="pkg-config nasm"
|
|
makedepends="libogg-devel"
|
|
short_desc="Free Lossless Audio Codec"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
homepage="http://flac.sourceforge.net/"
|
|
license="BSD-3-Clause, GPL-2"
|
|
distfiles="https://downloads.xiph.org/releases/flac/flac-${version}.tar.xz"
|
|
checksum=213e82bd716c9de6db2f98bcadbc4c24c7e2efe8c75939a1a84e28539c4e1748
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64|ppc64-musl) configure_args+=" --disable-vsx";;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense COPYING.Xiph
|
|
}
|
|
|
|
libflac_package() {
|
|
short_desc+=" - shared libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
libflac-devel_package() {
|
|
depends="libstdc++-devel 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
|
|
}
|
|
}
|