mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
91 lines
2.4 KiB
Bash
91 lines
2.4 KiB
Bash
SUMMARY="A free codec for 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="https://www.speex.org"
|
|
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"
|
|
LICENSE="Speex"
|
|
REVISION="2"
|
|
SOURCE_URI="http://downloads.xiph.org/releases/speex/speex-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4b44d4f2b38a370a2d98a78329fefc56a0cf93d1c1be70029217baae6628feea"
|
|
PATCHES="speex-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
speex$secondaryArchSuffix = $portVersion
|
|
lib:libspeex$secondaryArchSuffix = 1.5.1 compat >= 1
|
|
"
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
PROVIDES="$PROVIDES
|
|
cmd:speexdec = $portVersion
|
|
cmd:speexenc = $portVersion
|
|
"
|
|
fi
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libspeexdsp$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
speex${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libspeex$secondaryArchSuffix = 1.5.1 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
speex$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libogg$secondaryArchSuffix
|
|
devel:libspeexdsp$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
AUTOCONF=: AUTOHEADER=: AUTOMAKE=: ACLOCAL=: runConfigure ./configure \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libspeex.la
|
|
|
|
prepareInstalledDevelLibs libspeex
|
|
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
|
|
}
|