2009-12-22 20:00:53 +00:00
|
|
|
# Template file for 'flac'
|
|
|
|
pkgname=flac
|
2013-05-29 06:21:47 +00:00
|
|
|
version=1.3.0
|
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2009-12-22 20:00:53 +00:00
|
|
|
configure_args="--disable-rpath --disable-doxygen-docs --disable-xmms-plugin"
|
2013-03-24 09:21:58 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
hostmakedepends="nasm"
|
|
|
|
fi
|
|
|
|
makedepends="libogg-devel"
|
2009-12-22 20:00:53 +00:00
|
|
|
short_desc="Free Lossless Audio Codec"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-03-21 16:46:27 +00:00
|
|
|
homepage="http://flac.sourceforge.net/"
|
|
|
|
license="BSD, GPL"
|
2013-05-29 06:21:47 +00:00
|
|
|
distfiles="http://downloads.xiph.org/releases/flac/flac-${version}.tar.xz"
|
|
|
|
checksum=fa2d64aac1f77e31dfbb270aeb08f5b32e27036a52ad15e69a77e309528010dc
|
2009-12-22 20:00:53 +00:00
|
|
|
long_desc="
|
|
|
|
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
|
|
|
|
similar to MP3, but lossless. The FLAC project consists of:
|
2013-03-21 16:46:27 +00:00
|
|
|
|
2009-12-22 20:00:53 +00:00
|
|
|
* 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
|
2013-03-21 16:46:27 +00:00
|
|
|
works)"
|
2010-10-28 15:47:24 +00:00
|
|
|
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-05-29 06:21:47 +00:00
|
|
|
hostmakedepends="automake pkg-config libtool"
|
2013-03-21 16:46:27 +00:00
|
|
|
pre_configure() {
|
2013-05-29 06:21:47 +00:00
|
|
|
autoreconf -fi
|
2013-03-21 16:46:27 +00:00
|
|
|
}
|
2013-04-12 09:16:02 +00:00
|
|
|
configure_args+=" --with-ogg=$XBPS_CROSS_BASE"
|
2013-03-21 16:46:27 +00:00
|
|
|
fi
|
2013-04-12 09:16:02 +00:00
|
|
|
|
|
|
|
libflac_package() {
|
2013-05-29 06:21:47 +00:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-12 09:16:02 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libflac-devel_package() {
|
|
|
|
depends="libstdc++-devel libogg-devel libflac>=${version}"
|
2013-05-29 06:21:47 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 09:16:02 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/aclocal
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
flac_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|