flac: cross build and debug support.

This commit is contained in:
Juan RP 2013-03-21 17:46:27 +01:00
parent d6c8d827b7
commit 15d09159f1
3 changed files with 18 additions and 27 deletions

View file

@ -1,15 +1,9 @@
# Template file for 'libflac-devel'. # Template file for 'libflac-devel'.
# #
depends="libstdc++-devel libogg-devel libflac" depends="libstdc++-devel libogg-devel libflac>=${version}"
short_desc="${short_desc} - development files" short_desc="${short_desc} - development files"
long_desc="${long_desc}
This package contains files for development, headers, static libs, etc." do_install() {
do_install()
{
mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share mkdir -p ${DESTDIR}/usr/lib ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib

View file

@ -1,14 +1,8 @@
# Template file for 'libflac'. # Template file for 'libflac'.
# #
short_desc="${short_desc} - shared libraries" short_desc="${short_desc} - shared libraries"
long_desc="${long_desc}
This package contains the FLAC shared libraries." do_install() {
do_install()
{
mkdir -p ${DESTDIR}/usr/lib mkdir -p ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.so* ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/lib/*.so* ${DESTDIR}/usr/lib
} }

View file

@ -1,30 +1,33 @@
# Template file for 'flac' # Template file for 'flac'
pkgname=flac pkgname=flac
version=1.2.1 version=1.2.1
revision=5 revision=6
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" subpackages="libflac libflac-devel"
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-rpath --disable-doxygen-docs --disable-xmms-plugin" configure_args="--disable-rpath --disable-doxygen-docs --disable-xmms-plugin"
makedepends="nasm libogg-devel" makedepends="nasm libogg-devel"
short_desc="Free Lossless Audio Codec" short_desc="Free Lossless Audio Codec"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://flac.sourceforge.net/"
license="BSD, GPL"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz"
checksum=9635a44bceb478bbf2ee8a785cf6986fba525afb5fad1fd4bba73cf71f2d3edf checksum=9635a44bceb478bbf2ee8a785cf6986fba525afb5fad1fd4bba73cf71f2d3edf
long_desc=" long_desc="
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is
similar to MP3, but lossless. The FLAC project consists of: similar to MP3, but lossless. The FLAC project consists of:
* the stream format * the stream format
* libFLAC, which implements reference encoders and decoders * libFLAC, which implements reference encoders and decoders
* flac, a command-line wrapper around libFLAC to encode and decode .flac * flac, a command-line wrapper around libFLAC to encode and decode .flac
files files
* input plugins for various music players (Winamp, XMMS, and more in the * input plugins for various music players (Winamp, XMMS, and more in the
works) works)"
Free means that the specification of the stream format is in the public
domain (the FLAC project reserves the right to set the FLAC specification
and certify compliance), and that neither the FLAC format nor any of the
implemented encoding/decoding methods are covered by any patent. It also
means that the source for libFLAC is available under the LGPL and the
sources for flac and the plugins are available under the GPL."
subpackages="libflac libflac-devel"
if [ -n "$XBPS_CROSS_BUILD" ]; then
makedepends="automake pkg-config"
crossmakedepends="libogg-devel"
pre_configure() {
./autogen.sh
}
configure_args="${configure_args} --with-ogg=$XBPS_CROSS_BASE"
fi