SpeexDSP: new recipe (#2437)

This commit is contained in:
miqlas
2018-04-15 13:48:44 +02:00
committed by fbrosson
parent 816bd9097c
commit 511788a410
2 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
Copyright 2002-2008 Xiph.org Foundation
Copyright 2002-2008 Jean-Marc Valin
Copyright 2005-2007 Analog Devices Inc.
Copyright 2005-2008 Commonwealth Scientific and Industrial Research
Organisation (CSIRO)
Copyright 1993, 2002, 2006 David Rowe
Copyright 2003 EpicGames
Copyright 1992-1994 Jutta Degener, Carsten Bormann
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of the Xiph.org Foundation nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,88 @@
SUMMARY="A patent-free, Open Source/Free Software DSP library"
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="1"
SOURCE_URI="https://downloads.xiph.org/releases/speex/speexdsp-${portVersion/\~/}.tar.gz"
CHECKSUM_SHA256="4ae688600039f5d224bdf2e222d2fbde65608447e4c2f681585e4dca6df692f1"
SOURCE_DIR="speexdsp-${portVersion/\~/}"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="1.5.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
speexdsp$secondaryArchSuffix = $portVersion
lib:libspeexdsp$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
speexdsp${secondaryArchSuffix}_devel = $portVersion
devel:libspeexdsp$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
speexdsp$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:awk
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
defineDebugInfoPackage speexdsp$secondaryArchSuffix \
"$libDir"/libspeexdsp.so.$libVersion
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm -f "$libDir"/*.la
if [ -n "$secondaryArchSuffix" ]; then
rm -rf "$docDir"
fi
prepareInstalledDevelLib libspeexdsp
fixPkgconfig
# devel package
packageEntries devel \
"$developDir"
}
TEST()
{
make check
}