From 511788a4109e9c4fbc85e7c6dfa2e23355e07229 Mon Sep 17 00:00:00 2001 From: miqlas <5569059+extrowerk@users.noreply.github.com> Date: Sun, 15 Apr 2018 13:48:44 +0200 Subject: [PATCH] SpeexDSP: new recipe (#2437) --- media-libs/speexdsp/licenses/Speex | 35 ++++++++ media-libs/speexdsp/speexdsp-1.2~rc3.recipe | 88 +++++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 media-libs/speexdsp/licenses/Speex create mode 100644 media-libs/speexdsp/speexdsp-1.2~rc3.recipe diff --git a/media-libs/speexdsp/licenses/Speex b/media-libs/speexdsp/licenses/Speex new file mode 100644 index 000000000..de6fbe2c9 --- /dev/null +++ b/media-libs/speexdsp/licenses/Speex @@ -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. diff --git a/media-libs/speexdsp/speexdsp-1.2~rc3.recipe b/media-libs/speexdsp/speexdsp-1.2~rc3.recipe new file mode 100644 index 000000000..d85a2da18 --- /dev/null +++ b/media-libs/speexdsp/speexdsp-1.2~rc3.recipe @@ -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 +}