mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
faad2, bump version (#11831)
This commit is contained in:
76
media-libs/faad2/faad2-2.11.1.recipe
Normal file
76
media-libs/faad2/faad2-2.11.1.recipe
Normal file
@@ -0,0 +1,76 @@
|
||||
SUMMARY="An open source MPEG-4 and MPEG-2 AAC decoder"
|
||||
DESCRIPTION="This is an open source MPEG-4 and MPEG-4 ACC decoder programmed in C \
|
||||
and used in FAAC (freeware Advanced Audio Coder). It is used with the FAAC \
|
||||
encoder and can be compile on various platforms. It supports MPEG-4 audio \
|
||||
object types including LC, Main, LTP, LD, ER, SBR and PS. It contains a \
|
||||
library (libfaad) that may be used by other programs."
|
||||
HOMEPAGE="https://www.audiocoding.com/"
|
||||
COPYRIGHT="2003-2005 M. Bakker, Nero AG."
|
||||
LICENSE="GNU GPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/knik0/faad2/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="72dbc0494de9ee38d240f670eccf2b10ef715fd0508c305532ca3def3225bb06"
|
||||
SOURCE_DIR="faad2-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="2.11.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
faad2$secondaryArchSuffix = $portVersion compat >= 2
|
||||
cmd:faad$secondaryArchSuffix = $portVersion
|
||||
lib:libfaad$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libfaad_drm$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
faad2${secondaryArchSuffix}_devel = $portVersion compat >= 2
|
||||
devel:libfaad$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libfaad_drm$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
faad2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -B build -S . -G Ninja -DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs
|
||||
|
||||
ninja -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C build install
|
||||
|
||||
mkdir -p $developDocDir $docDir $manDir/man3
|
||||
cp docs/"Ahead AAC Decoder library documentation.pdf" $developDocDir
|
||||
cp {AUTHORS,ChangeLog,README} $docDir
|
||||
cp docs/libfaad.3 $manDir/man3
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libfaad \
|
||||
libfaad_drm
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$manDir/man3
|
||||
}
|
||||
Reference in New Issue
Block a user