mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
flac: bump version.
This commit is contained in:
104
media-libs/flac/flac-1.3.2.recipe
Normal file
104
media-libs/flac/flac-1.3.2.recipe
Normal file
@@ -0,0 +1,104 @@
|
||||
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="1"
|
||||
SOURCE_URI="http://downloads.xiph.org/releases/flac/flac-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="e48764f0761beb791a69590f12826fe8cf302c42db2879849c5d10bc7c85db66"
|
||||
PATCHES="flac-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
flac$secondaryArchSuffix = $portVersion compat >= 1
|
||||
lib:libFLAC$secondaryArchSuffix = 8.3.0 compat >= 8
|
||||
lib:libFLAC++$secondaryArchSuffix = 6.3.0 compat >= 6
|
||||
"
|
||||
if [ -z "$secondaryArchSuffix" ]; then
|
||||
PROVIDES="$PROVIDES
|
||||
cmd:flac$secondaryArchSuffix
|
||||
cmd:metaflac$secondaryArchSuffix
|
||||
"
|
||||
fi
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
flac${secondaryArchSuffix}_devel = $portVersion compat >= 1
|
||||
devel:libFLAC$secondaryArchSuffix = 8.3.0 compat >= 8
|
||||
devel:libFLAC++$secondaryArchSuffix = 6.3.0 compat >= 6
|
||||
"
|
||||
REQUIRES_devel="
|
||||
flac$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:nasm
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:gawk
|
||||
cmd:perl
|
||||
cmd:find
|
||||
cmd:gettext
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool library files
|
||||
rm $libDir/libFLAC.la $libDir/libFLAC++.la
|
||||
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $binDir $documentationDir
|
||||
fi
|
||||
prepareInstalledDevelLibs libFLAC libFLAC++
|
||||
fixPkgconfig
|
||||
|
||||
# devel package
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
test_grabbag.sh
|
||||
test_streams.sh
|
||||
test_libFLAC.sh
|
||||
test_wrapper.sh
|
||||
test_bins.sh
|
||||
test_libFLAC++.sh
|
||||
test_compression.sh
|
||||
test_metaflac.sh
|
||||
test_flac.sh
|
||||
test_seeking.sh
|
||||
}
|
||||
Reference in New Issue
Block a user