mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
opus: bump version.
* disable intrinsics for x86_gcc2.
This commit is contained in:
87
media-libs/opus/opus-1.1.3.recipe
Normal file
87
media-libs/opus/opus-1.1.3.recipe
Normal file
@@ -0,0 +1,87 @@
|
||||
SUMMARY="The interactive audio codec Opus"
|
||||
DESCRIPTION="Opus is a totally open, royalty-free, highly versatile audio \
|
||||
codec. Opus is unmatched for interactive speech and music transmission over \
|
||||
the Internet, but is also intended for storage and streaming applications. \
|
||||
It is standardized by the Internet Engineering Task Force (IETF) as RFC 6716 \
|
||||
which incorporated technology from Skype's SILK codec and Xiph.Org's CELT \
|
||||
codec.
|
||||
|
||||
Opus can handle a wide range of audio applications, including Voice over IP, \
|
||||
videoconferencing, in-game chat, and even remote live music performances. It \
|
||||
can scale from low bitrate narrowband speech to very high quality stereo \
|
||||
music.
|
||||
|
||||
Supported features are:
|
||||
|
||||
* Bitrates from 6 kb/s to 510 kb/s
|
||||
* Sampling rates from 8 kHz (narrowband) to 48 kHz (fullband)
|
||||
* Frame sizes from 2.5 ms to 60 ms
|
||||
* Support for both constant bitrate (CBR) and variable bitrate (VBR)
|
||||
* Audio bandwidth from narrowband to fullband
|
||||
* Support for speech and music
|
||||
* Support for mono and stereo
|
||||
* Support for up to 255 channels (multistream frames)
|
||||
* Dynamically adjustable bitrate, audio bandwidth, and frame size
|
||||
* Good loss robustness and packet loss concealment (PLC)
|
||||
* Floating point and fixed-point implementation"
|
||||
HOMEPAGE="http://www.opus-codec.org"
|
||||
COPYRIGHT="2001-2014 Xiph.org"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://downloads.xiph.org/releases/opus/opus-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="58b6fe802e7e30182e95d0cde890c0ace40b6f125cffc50635f0ad2eef69b633"
|
||||
PATCHES="opus-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
opus$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libopus$secondaryArchSuffix = 0.5.2 compat >= 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
opus${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||||
devel:libopus$secondaryArchSuffix = 0.5.2 compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
opus$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:sed
|
||||
cmd:awk
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
local configureFlags
|
||||
if [ $effectiveTargetArchitecture = "x86_gcc2" ]; then
|
||||
configureFlags=--disable-intrinsics
|
||||
fi
|
||||
runConfigure ./configure $configureFlags
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool library file
|
||||
rm $libDir/libopus.la
|
||||
|
||||
prepareInstalledDevelLibs libopus
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir \
|
||||
$dataDir
|
||||
}
|
||||
Reference in New Issue
Block a user