From 12831746a8d5e028e4ef955ab1cd06b5c3e39505 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Wed, 23 Apr 2014 21:25:06 +0000 Subject: [PATCH] added libebur128. * gentoo-portage doesn't have this lib, so I chose media-libs for a category. --- media-libs/libebur128/libebur128-1.0.1.recipe | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 media-libs/libebur128/libebur128-1.0.1.recipe diff --git a/media-libs/libebur128/libebur128-1.0.1.recipe b/media-libs/libebur128/libebur128-1.0.1.recipe new file mode 100644 index 000000000..ef8d32869 --- /dev/null +++ b/media-libs/libebur128/libebur128-1.0.1.recipe @@ -0,0 +1,72 @@ +SUMMARY="A library implementing the EBU R128 loudness standard" +DESCRIPTION=" +libebur128 is a library that implements the EBU R 128 standard for loudness \ +normalisation. +" +HOMEPAGE="https://github.com/jiixyj/libebur128" +LICENSE="MIT" +COPYRIGHT="2011 Jan Kokemüller" +SRC_URI="https://github.com/jiixyj/libebur128/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="01aa7aed90c593944eeb3087a6f965557dc708de360bf1a589b3babb021e7336" +REVISION="1" +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 x86" + +PROVIDES=" + libebur128$secondaryArchSuffix = $portVersion + lib:libebur128$secondaryArchSuffix = 1.0.1 compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " +# lib:libspeexdsp$secondaryArchSuffix + +BUILD_REQUIRES=" + " +# devel:libspeexdsp$secondaryArchSuffix +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:cmake + cmd:make + cmd:pkg_config + cmd:sed + " + +PATCH() +{ + sed -i 's,include)','"develop/headers")', ebur128/CMakeLists.txt +} + +BUILD() +{ + rm -Rf build + mkdir build + cd build + cmake -DENABLE_INTERNAL_QUEUE_H=1 -DCMAKE_INSTALL_PREFIX:PATH=$prefix .. + make $jobArgs VERBOSE=1 +} + +INSTALL() +{ + cd build + make install + + prepareInstalledDevelLibs libebur128 + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libebur128${secondaryArchSuffix}_devel = $portVersion + devel:libebur128$secondaryArchSuffix = 1.0.1 compat >= 1 + " +REQUIRES_devel=" + libebur128$secondaryArchSuffix == $portVersion + "