0
0
Fork 0
haikuports/media-sound/dcadec/dcadec-0.2.0.recipe

74 lines
1.9 KiB
Bash

SUMMARY="Free DTS Coherent Acoustics decoder with support for HD extensions"
DESCRIPTION="Supported features:
* Decoding of standard DTS core streams with up to 5.1 channels
* Decoding of DTS-ES streams with discrete back channel
* Decoding of High Resolution streams with up to 7.1 channels and extended \
bitrate
* Decoding of 96/24 core streams
* Lossless decoding of Master Audio streams with up to 7.1 channels, 192 kHz
* Downmixing to stereo and 5.1 using embedded coefficients
Features not implemented:
* Decoding of DTS Express streams
* Applying dynamic range compression and dialog normalization
"
HOMEPAGE="https://github.com/foo86/dcadec"
COPYRIGHT="
2015 foo86
"
LICENSE="GNU LGPL v2.1"
REVISION="2"
SOURCE_URI="https://github.com/foo86/dcadec/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="ed9d207fde3e8d576f3af8b0d1235b3371e315175757173689104efcaebf0d44"
SOURCE_FILENAME="dcadec-$portVersion.tar.gz"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
dcadec$secondaryArchSuffix = $portVersion compat >= 0
cmd:dcadec$secondaryArchSuffix
lib:libdcadec$secondaryArchSuffix = 0.1.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
CONFLICTS="
libdca$secondaryArchSuffix
"
PROVIDES_devel="
dcadec${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libdcadec$secondaryArchSuffix = 0.1.0 compat >= 0
"
REQUIRES_devel="
dcadec$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
make $jobArgs PREFIX=$prefix BINDIR=$binDir LIBDIR=$libDir \
INCLUDEDIR=$includeDir LIBS= CONFIG_SHARED=1
}
INSTALL()
{
make PREFIX=$prefix BINDIR=$binDir LIBDIR=$libDir \
INCLUDEDIR=$includeDir LIBS= CONFIG_SHARED=1 install
prepareInstalledDevelLibs libdcadec
fixPkgconfig
# devel package
packageEntries devel \
$developDir
}