mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
* cmake/debuginfo: Mass fix packages with broken debuginfo * rtl_sdr: Fix trailing whitespace * meson/debuginfo: Mass fix packages with broken debuginfo * clean up conflicts --------- Co-authored-by: Luc Schrijvers <begasus@gmail.com>
78 lines
1.8 KiB
Bash
78 lines
1.8 KiB
Bash
SUMMARY="A fast and powerful lossless audio compressor"
|
|
DESCRIPTION="Monkey's Audio is a lossless audio format. This package provides \
|
|
the mac command line utility for compressing and decompressing Monkey's Audio \
|
|
files."
|
|
HOMEPAGE="https://www.monkeysaudio.com/"
|
|
COPYRIGHT="2000-2023 Matthew T. Ashland"
|
|
LICENSE="Monkey's Audio SDK and Source Code License Agreement"
|
|
REVISION="3"
|
|
SOURCE_URI="https://www.monkeysaudio.com/files/MAC_${portVersion/./}_SDK.zip"
|
|
CHECKSUM_SHA256="54a99ff50b589d4afdb0e38aa86dba2c6a9fe1a086330209ecd563f09e46fd66"
|
|
SOURCE_DIR=""
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="9"
|
|
|
|
PROVIDES="
|
|
mac$secondaryArchSuffix = $portVersion
|
|
cmd:mac$commandSuffix = $portVersion
|
|
lib:libMAC$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
mac${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libMAC$secondaryArchSuffix = $libVersion
|
|
"
|
|
REQUIRES_devel="
|
|
mac$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
defineDebugInfoPackage mac$secondaryArchSuffix \
|
|
$libDir/libMAC.so.$libVersion \
|
|
$commandBinDir/mac
|
|
|
|
BUILD()
|
|
{
|
|
export CXXFLAGS="$CXXFLAGS -fpermissive"
|
|
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
$cmakeDirArgs \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
install -m 755 -d "$developDocDir"
|
|
install -m 644 -t "$developDocDir" Readme.txt
|
|
|
|
prepareInstalledDevelLib libMAC
|
|
|
|
packageEntries devel \
|
|
"$developDir"
|
|
}
|