mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
63 lines
1.5 KiB
Bash
63 lines
1.5 KiB
Bash
SUMMARY="Replay Gain library from Musepack"
|
|
DESCRIPTION="libreplaygain calculates the perceived loudness of audio and \
|
|
suggests dB adjustments according to the ReplayGain standard."
|
|
HOMEPAGE="https://www.musepack.net/"
|
|
COPYRIGHT="1997-2011 Musepack Project"
|
|
LICENSE="GNU LGPL v2.1"
|
|
REVISION="4"
|
|
SOURCE_URI="http://files.musepack.net/source/libreplaygain_r$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="8258bf785547ac2cda43bb195e07522f0a3682f55abe97753c974609ec232482"
|
|
SOURCE_DIR="libreplaygain_r$portVersion"
|
|
PATCHES="libreplaygain-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="1.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libreplaygain$secondaryArchSuffix = $portVersion
|
|
lib:libreplaygain$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libreplaygain${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libreplaygain$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libreplaygain$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=$prefix\
|
|
-DLIB_SUFFIX=$secondaryArchSubDir
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
mkdir -p $includeDir
|
|
cp -r include/replaygain $includeDir
|
|
|
|
prepareInstalledDevelLib libreplaygain
|
|
|
|
packageEntries devel $developDir
|
|
}
|