Files
haikuports/media-libs/opusfile/opusfile-0.10.recipe
2017-11-20 18:29:31 +01:00

81 lines
2.2 KiB
Bash

SUMMARY="Library to seek, decode, and playback Opus streams"
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.
The opusfile library provides seeking, decode, and playback of Opus streams \
in the Ogg container (.opus files) including over http(s) on posix and \
windows systems."
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/opusfile-$portVersion.tar.gz"
CHECKSUM_SHA256="48e03526ba87ef9cf5f1c47b5ebe3aa195bd89b912a57060c36184a6cd19412f"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
opusfile$secondaryArchSuffix = $portVersion compat >= 0
lib:libopusfile$secondaryArchSuffix = 0.4.3 compat >= 0
lib:libopusurl$secondaryArchSuffix = 0.4.3 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libogg$secondaryArchSuffix
lib:libopus$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
"
PROVIDES_devel="
opusfile${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libopusfile$secondaryArchSuffix = 0.4.3 compat >= 0
devel:libopusurl$secondaryArchSuffix = 0.4.3 compat >= 0
"
REQUIRES_devel="
opusfile$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libogg$secondaryArchSuffix
devel:libopus$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
cmd:awk
cmd:libtool$secondaryArchSuffix
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make
}
INSTALL()
{
make install
# remove libtool library file
rm $libDir/libopusfile.la $libDir/libopusurl.la
prepareInstalledDevelLibs libopusfile libopusurl
fixPkgconfig
packageEntries devel $developDir
}