mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-07 07:28:57 +02:00
81 lines
1.7 KiB
Bash
81 lines
1.7 KiB
Bash
SUMMARY="An MPEG-4 and MPEG-2 AAC encoder"
|
|
DESCRIPTION="FAAC is an MPEG-4 and MPEG-2 AAC encoder."
|
|
HOMEPAGE="https://sourceforge.net/projects/faac/"
|
|
COPYRIGHT="2003 Krzysztof Nikiel"
|
|
LICENSE="FAAC
|
|
GNU GPL v2"
|
|
REVISION="3"
|
|
SOURCE_URI="https://github.com/knik0/faac/archive/${portVersion/./_}.tar.gz"
|
|
CHECKSUM_SHA256="adc387ce588cca16d98c03b6ec1e58f0ffd9fc6eadb00e254157d6b16203b2d2"
|
|
SOURCE_DIR="faac-${portVersion/./_}"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="0.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
faac${secondaryArchSuffix} = $portVersion
|
|
cmd:faac$commandSuffix
|
|
lib:libfaac$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
faac${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libfaac$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
faac$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtool$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
if [ $effectiveTargetArchitecture = "x86_gcc2" ]; then
|
|
sed -i 's/-lstdc++/-lstdc++.r4/' configure.ac frontend/Makefile.am
|
|
fi
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install-strip
|
|
|
|
rm $libDir/libfaac*.la
|
|
|
|
prepareInstalledDevelLib libfaac
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|