diff --git a/media-libs/opusfile/opusfile-0.6.recipe b/media-libs/opusfile/opusfile-0.6.recipe new file mode 100644 index 000000000..fd238d12c --- /dev/null +++ b/media-libs/opusfile/opusfile-0.6.recipe @@ -0,0 +1,78 @@ +SUMMARY="Opus Interactive Audio Codec" +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. +" +HOMEPAGE="http://www.opus-codec.org" +COPYRIGHT="2001-2014 Xiph.org" +LICENSE="BSD (3-clause)" +SRC_URI="http://downloads.xiph.org/releases/opus/opusfile-$portVersion.tar.gz" +CHECKSUM_SHA256="2428717b356e139f18ed2fdb5ad990b5654a238907a0058200b39c46a7d03ea6" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + opusfile$secondaryArchSuffix = $portVersion compat >= 0 + lib:libopusfile$secondaryArchSuffix = 0.3.1 compat >= 0 + lib:libopusurl$secondaryArchSuffix = 0.3.1 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libogg$secondaryArchSuffix + lib:libopus$secondaryArchSuffix + lib:libssl$secondaryArchSuffix + " +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 +} + + +# ----- devel package ------------------------------------------------------- + + +PROVIDES_devel=" + opusfile${secondaryArchSuffix}_devel = $portVersion compat >= 1 + devel:libopusfile$secondaryArchSuffix = 0.3.1 compat >= 0 + devel:libopusurl$secondaryArchSuffix = 0.3.1 compat >= 0 + " +REQUIRES_devel=" + opusfile$secondaryArchSuffix == $portVersion base + "