Files
haikuports/media-libs/boca/boca-1.0.0.recipe
2020-03-30 09:13:12 +03:00

78 lines
2.2 KiB
Bash

SUMMARY="An audio component framework and library"
DESCRIPTION="BoCA is the component framework behind the fre:ac audio \
converter. It provides unified interfaces for components like encoders, \
decoders, taggers and extensions as well as code to support communication \
between applications and their components."
HOMEPAGE="https://github.com/enzo1982/BoCA"
COPYRIGHT="2007-2020 Robert Kausch"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/enzo1982/BoCA/releases/download/v${portVersion%.0}/boca-${portVersion%.0}.tar.gz"
CHECKSUM_SHA256="65cca448d6541b80b59aa9bc49d7c71ef32b6a65a68fc7dc7a0d32672b4f1c05"
SOURCE_DIR="boca-${portVersion%.0}"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="${portVersion%.0}"
libVersionCompat="2 compat >= 2"
PROVIDES="
boca$secondaryArchSuffix = $portVersion
lib:libboca_${libVersion}$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
smooth$secondaryArchSuffix >= 0.9.0
lib:libsmooth_0.9$secondaryArchSuffix >= 0
lib:libexpat$secondaryArchSuffix
lib:liburiparser$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
boca${secondaryArchSuffix}_devel = $portVersion
devel:libboca_${libVersion}$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
boca$secondaryArchSuffix == $portVersion base
smooth${secondaryArchSuffix}_devel >= 0.9.0
devel:libsmooth_0.9$secondaryArchSuffix >= 0
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
smooth${secondaryArchSuffix}_devel >= 0.9.0
devel:libsmooth_0.9$secondaryArchSuffix
devel:libexpat$secondaryArchSuffix
devel:liburiparser$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:g++$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
make prefix="$prefix" libdir="$libDir" includedir="$includeDir" install
mkdir -p "$developLibDir"
ln -r -s "$libDir"/libboca-$libVersion.so.2 \
"$developLibDir"/libboca-$libVersion.so
ln -r -s "$libDir"/libboca-$libVersion.so.2 \
"$developLibDir"/libboca-$libVersion.so.2
packageEntries devel \
"$developDir"
}