void-packages/srcpkgs/flac/template

60 lines
1.5 KiB
Plaintext

# Template file for 'flac'
pkgname=flac
version=1.2.1
revision=6
build_style=gnu-configure
configure_args="--disable-rpath --disable-doxygen-docs --disable-xmms-plugin"
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
hostmakedepends="nasm"
fi
makedepends="libogg-devel"
short_desc="Free Lossless Audio Codec"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://flac.sourceforge.net/"
license="BSD, GPL"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=9635a44bceb478bbf2ee8a785cf6986fba525afb5fad1fd4bba73cf71f2d3edf
long_desc="
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
similar to MP3, but lossless. The FLAC project consists of:
* the stream format
* libFLAC, which implements reference encoders and decoders
* flac, a command-line wrapper around libFLAC to encode and decode .flac
files
* input plugins for various music players (Winamp, XMMS, and more in the
works)"
if [ "$CROSS_BUILD" ]; then
hostmakedepends="automake pkg-config"
pre_configure() {
./autogen.sh
}
configure_args+=" --with-ogg=$XBPS_CROSS_BASE"
fi
libflac_package() {
short_desc="${short_desc} - shared libraries"
pkg_install() {
vmove "usr/lib/*.so*"
}
}
libflac-devel_package() {
depends="libstdc++-devel libogg-devel libflac>=${version}"
short_desc="${short_desc} - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove usr/share/aclocal
vmove usr/share/doc
}
}
flac_package() {
pkg_install() {
vmove usr
}
}