Files
haikuports/media-libs/boca/boca-1.0.1.recipe
2020-04-19 22:28:18 +03:00

78 lines
2.1 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}/boca-${portVersion}.tar.gz"
CHECKSUM_SHA256="6badd0462922bc8fd0d91d6e3220bfd7dfa15dbd95e540ca197e293cf3ed40e1"
SOURCE_DIR="boca-${portVersion}"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
libVersion="${portVersion%.*}"
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"
}