speexdsp-1.2.0.recipe revision 1a08d275
1SUMMARY="A patent-free, Open Source/Free Software DSP library"
2DESCRIPTION="Speex is an open-source/free software  patent-free audio \
3compression format designed for speech. The Speex project aims to lower the \
4barrier of entry for voice applications by providing a free alternative to \
5expensive proprietary speech codecs. Moreover, Speex is well-adapted to \
6internet applications and provides useful features that are not present in \
7most other codecs.
8Finally, Speex is part of the GNU project and is available under the revised \
9BSD license."
10HOMEPAGE="https://www.speex.org/"
11COPYRIGHT="2002-2009 Xiph.org Foundation
12	2002-2008 Jean-Marc Valin
13	2005-2007 Analog Devices Inc.
14	2005-2008 Commonwealth Scientific and Industrial Research Organisation (CSIRO)
15	1993, 2002, 2006 David Rowe
16	2003 EpicGames
17	1992-1994 Jutta Degener, Carsten Bormann"
18LICENSE="Speex"
19REVISION="1"
20SOURCE_URI="https://downloads.xiph.org/releases/speex/speexdsp-${portVersion/\~/}.tar.gz"
21CHECKSUM_SHA256="682042fc6f9bee6294ec453f470dadc26c6ff29b9c9e9ad2ffc1f4312fd64771"
22SOURCE_DIR="speexdsp-${portVersion/\~/}"
23
24ARCHITECTURES="x86_gcc2 x86 x86_64"
25SECONDARY_ARCHITECTURES="x86_gcc2 x86"
26
27libVersion="1.5.1"
28libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
29
30PROVIDES="
31	speexdsp$secondaryArchSuffix = $portVersion
32	lib:libspeexdsp$secondaryArchSuffix = $libVersionCompat
33	"
34REQUIRES="
35	haiku$secondaryArchSuffix
36	"
37
38PROVIDES_devel="
39	speexdsp${secondaryArchSuffix}_devel = $portVersion
40	devel:libspeexdsp$secondaryArchSuffix = $libVersionCompat
41	"
42REQUIRES_devel="
43	speexdsp$secondaryArchSuffix == $portVersion base
44	"
45
46BUILD_REQUIRES="
47	haiku${secondaryArchSuffix}_devel
48	"
49BUILD_PREREQUIRES="
50	cmd:awk
51	cmd:gcc$secondaryArchSuffix
52	cmd:ld$secondaryArchSuffix
53	cmd:libtoolize$secondaryArchSuffix
54	cmd:make
55	cmd:pkg_config$secondaryArchSuffix
56	"
57
58defineDebugInfoPackage speexdsp$secondaryArchSuffix \
59	"$libDir"/libspeexdsp.so.$libVersion
60
61BUILD()
62{
63	runConfigure ./configure
64	make $jobArgs
65}
66
67INSTALL()
68{
69	make install
70
71	rm -f "$libDir"/*.la "$libDir"/*.a
72
73	if [ -n "$secondaryArchSuffix" ]; then
74		rm -rf "$docDir"
75	fi
76
77	prepareInstalledDevelLib libspeexdsp
78	fixPkgconfig
79
80	# devel package
81	packageEntries devel \
82		"$developDir"
83}
84
85TEST()
86{
87	make check
88}
89