From 6ef4eb96b3541bcc5ea4a2bab4257861b6572d87 Mon Sep 17 00:00:00 2001 From: fbrosson Date: Fri, 21 Sep 2018 11:33:01 +0000 Subject: [PATCH] opusfile: bump to 0.11, add debuginfo. --- ...sfile-0.10.recipe => opusfile-0.11.recipe} | 38 +++++++++++++------ 1 file changed, 26 insertions(+), 12 deletions(-) rename media-libs/opusfile/{opusfile-0.10.recipe => opusfile-0.11.recipe} (62%) diff --git a/media-libs/opusfile/opusfile-0.10.recipe b/media-libs/opusfile/opusfile-0.11.recipe similarity index 62% rename from media-libs/opusfile/opusfile-0.10.recipe rename to media-libs/opusfile/opusfile-0.11.recipe index bc925820a..9ef6037fb 100644 --- a/media-libs/opusfile/opusfile-0.10.recipe +++ b/media-libs/opusfile/opusfile-0.11.recipe @@ -9,20 +9,24 @@ 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" +HOMEPAGE="https://opus-codec.org/" +COPYRIGHT="2001-2018 Xiph.org" LICENSE="BSD (3-clause)" REVISION="1" -SOURCE_URI="http://downloads.xiph.org/releases/opus/opusfile-$portVersion.tar.gz" -CHECKSUM_SHA256="48e03526ba87ef9cf5f1c47b5ebe3aa195bd89b912a57060c36184a6cd19412f" +SOURCE_URI="https://downloads.xiph.org/releases/opus/opusfile-$portVersion.tar.gz" +CHECKSUM_SHA256="74ce9b6cf4da103133e7b5c95df810ceb7195471e1162ed57af415fabf5603bf" ARCHITECTURES="x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" +libVersion="0.4.4" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" +portVersionCompat="$portVersion compat >= 0" + PROVIDES=" - opusfile$secondaryArchSuffix = $portVersion compat >= 0 - lib:libopusfile$secondaryArchSuffix = 0.4.3 compat >= 0 - lib:libopusurl$secondaryArchSuffix = 0.4.3 compat >= 0 + opusfile$secondaryArchSuffix = $portVersionCompat + lib:libopusfile$secondaryArchSuffix = $libVersionCompat + lib:libopusurl$secondaryArchSuffix = $libVersionCompat " REQUIRES=" haiku$secondaryArchSuffix @@ -32,9 +36,9 @@ REQUIRES=" " PROVIDES_devel=" - opusfile${secondaryArchSuffix}_devel = $portVersion compat >= 0 - devel:libopusfile$secondaryArchSuffix = 0.4.3 compat >= 0 - devel:libopusurl$secondaryArchSuffix = 0.4.3 compat >= 0 + opusfile${secondaryArchSuffix}_devel = $portVersionCompat + devel:libopusfile$secondaryArchSuffix = $libVersionCompat + devel:libopusurl$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" opusfile$secondaryArchSuffix == $portVersion base @@ -59,6 +63,10 @@ BUILD_PREREQUIRES=" cmd:sed " +defineDebugInfoPackage opusfile$secondaryArchSuffix \ + "$libDir"/libopusfile.so.$libVersion \ + "$libDir"/libopusurl.so.$libVersion \ + BUILD() { autoreconf -fi @@ -71,10 +79,16 @@ INSTALL() make install # remove libtool library file - rm $libDir/libopusfile.la $libDir/libopusurl.la + rm -f "$libDir"/libopus*.la prepareInstalledDevelLibs libopusfile libopusurl fixPkgconfig - packageEntries devel $developDir + packageEntries devel \ + "$developDir" +} + +TEST() +{ + make check }