speex: cross build support.

This commit is contained in:
Juan RP 2013-05-06 17:00:23 +02:00
parent 8773634820
commit 6f8a14777b

View file

@ -1,7 +1,7 @@
# Template file for 'speex'.
pkgname=speex
version=1.2rc1
revision=6
revision=7
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
@ -18,8 +18,12 @@ long_desc="
is meant to be complementary to the Vorbis codec which places a greater
emphasis on high-quality music reproduction."
if [ "$CROSS_BUILD" ]; then
configure_args+=" --with-ogg=$XBPS_CROSS_BASE"
fi
libspeex_package() {
short_desc="${short_desc} - shared libraries"
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/*.so*"
}
@ -27,7 +31,7 @@ libspeex_package() {
speex-devel_package() {
depends="libspeex-${version}_${revision}"
short_desc+=" -- development files"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig