mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
73 lines
1.9 KiB
Bash
73 lines
1.9 KiB
Bash
SUMMARY="The free lossless audio codec"
|
|
DESCRIPTION="FLAC stands for Free Lossless Audio Codec, an audio format \
|
|
similar to MP3, but lossless, meaning that audio is compressed in FLAC \
|
|
without any loss in quality. This is similar to how Zip works, except with \
|
|
FLAC you will get much better compression because it is designed specifically \
|
|
for audio, and you can play back compressed FLAC files in your favorite player \
|
|
(or your car or home stereo) just like you would an MP3 file."
|
|
HOMEPAGE="http://flac.sourceforge.net/"
|
|
COPYRIGHT="2000-2007 Josh Coalson"
|
|
LICENSE="GNU LGPL v2.1
|
|
GNU GPL v2
|
|
BSD (3-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="http://downloads.xiph.org/releases/flac/flac-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="8ff0607e75a322dd7cd6ec48f4f225471404ae2730d0ea945127b1355155e737"
|
|
SOURCE_DIR="flac-$portVersion"
|
|
PATCHES="flac-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
flac13$secondaryArchSuffix = $portVersion compat >= 1
|
|
lib:libFLAC$secondaryArchSuffix = 8.3.0 compat >= 8
|
|
lib:libFLAC++$secondaryArchSuffix = 6.3.0 compat >= 6
|
|
"
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
lib:libstdc++$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libogg$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:nasm
|
|
cmd:ninja
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -S. -Bbuilddir -GNinja \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DBUILD_PROGRAMS=OFF \
|
|
-DINSTALL_MANPAGES=OFF \
|
|
-DWITH_STACK_PROTECTOR=OFF \
|
|
$cmakeDirArgs
|
|
ninja -C builddir $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
ninja -C builddir install
|
|
|
|
install -Dm 644 src/*/*.m4 -t $dataDir/aclocal
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm -rf $binDir $documentationDir
|
|
fi
|
|
prepareInstalledDevelLibs libFLAC libFLAC++
|
|
fixPkgconfig
|
|
|
|
rm -rf $dataDir $developDir
|
|
}
|