Files
haikuports/media-sound/mac/mac-5.11.recipe
2020-01-02 18:04:41 +01:00

72 lines
1.7 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-2019 Matthew T. Ashland"
LICENSE="Monkey's Audio SDK and Source Code License Agreement"
REVISION="2"
SOURCE_URI="https://www.monkeysaudio.com/files/MAC_SDK_${portVersion/./}.zip"
CHECKSUM_SHA256="4ec04c57be9f8519a02cc3a90ec5977ac202d865843b19ffa557093d91970e9d"
SOURCE_DIR=""
PATCHES="mac-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
libVersion="5"
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:g++$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
make -f Source/Projects/NonWindows/Makefile $jobArgs
}
INSTALL()
{
make -f Source/Projects/NonWindows/Makefile \
prefix="$prefix" bindir="$commandBinDir" \
libdir="$libDir" includedir="$includeDir" install
install -m 755 -d "$developDocDir"
install -m 644 -t "$developDocDir" Readme.txt
prepareInstalledDevelLibs libMAC
packageEntries devel \
"$developDir"
}