mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 14:08:51 +02:00
74 lines
1.7 KiB
Bash
74 lines
1.7 KiB
Bash
SUMMARY="A library implementing the EBU R128 loudness standard"
|
|
DESCRIPTION="libebur128 is a library that implements the EBU R 128 standard for loudness \
|
|
normalisation. It supports all samplerates by recalculation of the filter coefficients."
|
|
HOMEPAGE="https://github.com/jiixyj/libebur128"
|
|
COPYRIGHT="2011 Jan Kokemüller"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/jiixyj/libebur128/archive/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="13776667743cf6e3df36bcf4f8c7ac828859ce02c9988514e3fdddc3efba98f7"
|
|
SOURCE_FILENAME="libebur128-$portVersion.tar.gz"
|
|
PATCHES="libebur128-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libebur128$secondaryArchSuffix = $portVersion
|
|
lib:libebur128$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
# lib:libspeexdsp$secondaryArchSuffix
|
|
|
|
PROVIDES_devel="
|
|
libebur128${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libebur128$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libebur128$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
# devel:libspeexdsp$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
rm -Rf build
|
|
mkdir build
|
|
cd build
|
|
cmake .. \
|
|
-DENABLE_INTERNAL_QUEUE_H=1 \
|
|
-DCMAKE_INSTALL_PREFIX:PATH="$prefix" \
|
|
-DCMAKE_INSTALL_LIBDIR:PATH="$libDir" \
|
|
-DCMAKE_INSTALL_INCLUDEDIR:PATH="$includeDir" \
|
|
|
|
make $jobArgs VERBOSE=1
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd build
|
|
make install
|
|
|
|
prepareInstalledDevelLib libebur128
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|