Files
haikuports/media-libs/speex/speex-1.2~rc1.recipe

94 lines
2.5 KiB
Plaintext

SUMMARY="A Free Codec For Free Speech"
DESCRIPTION="Speex is an Open Source/Free Software patent-free audio compression format designed for speech. The Speex Project aims to lower the barrier of entry for voice applications by providing a free alternative to expensive proprietary speech codecs. Moreover, Speex is well-adapted to Internet applications and provides useful features that are not present in most other codecs. Finally, Speex is part of the GNU Project and is available under the revised BSD license."
HOMEPAGE="http://www.speex.org"
LICENSE="Speex"
COPYRIGHT="
2002-2009 Xiph.org Foundation
2002-2008 Jean-Marc Valin
2005-2007 Analog Devices Inc.
2005-2008 Commonwealth Scientific and Industrial Research Organisation (CSIRO)
1993, 2002, 2006 David Rowe
2003 EpicGames
1992-1994 Jutta Degener, Carsten Bormann
"
SRC_URI="http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz"
CHECKSUM_MD5="c4438b22c08e5811ff10e2b06ee9b9ae"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="speex-1.2~rc1.patchset"
PROVIDES="
speex$secondaryArchSuffix = $portVersion
lib:libspeex$secondaryArchSuffix = 1.5.0 compat >= 1
lib:libspeexdsp$secondaryArchSuffix = 1.5.0 compat >= 1
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:speexdec = $portVersion
cmd:speexenc = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libogg$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libogg$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config
"
SOURCE_DIR="speex-1.2rc1"
BUILD()
{
libtoolize --copy --force --install
aclocal
automake
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libspeex libspeexdsp
fixPkgconfig
# devel package
packageEntries devel \
$dataDir/aclocal \
$developDir
# Remove stuff we don't need in the secondary architecture base package.
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir
rm -rf $documentationDir
fi
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
speex${secondaryArchSuffix}_devel = $portVersion
devel:libspeex$secondaryArchSuffix = 1.5.0 compat >= 1
devel:libspeexdsp$secondaryArchSuffix = 1.5.0 compat >= 1
"
REQUIRES_devel="
speex$secondaryArchSuffix == $portVersion
"