mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
SpeexDSP: new recipe (#2437)
This commit is contained in:
35
media-libs/speexdsp/licenses/Speex
Normal file
35
media-libs/speexdsp/licenses/Speex
Normal 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.
|
||||
88
media-libs/speexdsp/speexdsp-1.2~rc3.recipe
Normal file
88
media-libs/speexdsp/speexdsp-1.2~rc3.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user