mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
BoCA: New recipe for BoCA 1.0 alpha. (#3199)
This commit is contained in:
81
media-libs/boca/boca-1.0~alpha20180913.recipe
Normal file
81
media-libs/boca/boca-1.0~alpha20180913.recipe
Normal file
@@ -0,0 +1,81 @@
|
||||
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-2018 Robert Kausch"
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/enzo1982/BoCA/releases/download/v1.1-alpha-20180913/freac-cdk-1.1-alpha-20180913.tar.gz"
|
||||
CHECKSUM_SHA256="d8a6f59e3ccc68b3dbe5d77e5f3e97240691196467656714c678ccbf2932257b"
|
||||
SOURCE_DIR="freac-cdk-1.1-alpha-20180913"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="${portVersion%~*}"
|
||||
libVersionCompat="0 compat >= 0"
|
||||
|
||||
PROVIDES="
|
||||
boca$secondaryArchSuffix = $portVersion
|
||||
lib:libboca_${libVersion}$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libsmooth_0.8.74$secondaryArchSuffix >= 0
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
boca${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libboca_${libVersion}$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
boca$secondaryArchSuffix == $portVersion base
|
||||
devel:libsmooth_0.8.74$secondaryArchSuffix >= 0
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libsmooth_0.8.74$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
sed -i \
|
||||
-e "s|/lib/boca|/$relativeLibDir/boca|" \
|
||||
runtime/common/utilities.cpp
|
||||
fi
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make prefix="$prefix" libdir="$libDir" includedir="$includeDir" install
|
||||
|
||||
mkdir -p "$developLibDir"
|
||||
|
||||
ln -r -s "$libDir"/libboca-$libVersion.so.0 \
|
||||
"$developLibDir"/libboca-$libVersion.so
|
||||
ln -r -s "$libDir"/libboca-$libVersion.so.0 \
|
||||
"$developLibDir"/libboca-$libVersion.so.0
|
||||
|
||||
packageEntries devel \
|
||||
"$developDir"
|
||||
}
|
||||
Reference in New Issue
Block a user