mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
wavpack: bump to 5.1.0 which now comes with wvtag(1), add _bin.
* Create a wavpack_bin sub-package to make the base package depend on no other package. * Move wavpack(1), wvgain(1), wvunpack(1) and wvtag(1) (as well as the dependency on lib:libiconv) to the wavpack_bin sub-package. * While at it, define commandSuffix to be more consistent with other packages which already define it.
This commit is contained in:
103
media-sound/wavpack/wavpack-5.1.0.recipe
Normal file
103
media-sound/wavpack/wavpack-5.1.0.recipe
Normal file
@@ -0,0 +1,103 @@
|
||||
SUMMARY="Hybrid lossless audio compression format & tools"
|
||||
DESCRIPTION="WavPack is a completely open audio compression format, providing \
|
||||
lossless, high-quality lossy, and a unique hybrid compression mode."
|
||||
HOMEPAGE="http://wavpack.com/"
|
||||
COPYRIGHT="1998-2017 David Bryant"
|
||||
LICENSE="WavPack"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://wavpack.com/wavpack-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="1939627d5358d1da62bc6158d63f7ed12905552f3a799c799ee90296a7612944"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
|
||||
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
else
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
wavpack$secondaryArchSuffix = $portVersion
|
||||
lib:libwavpack$secondaryArchSuffix = 1.2.0 compat >= 1
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_bin="
|
||||
wavpack${secondaryArchSuffix}_bin = $portVersion
|
||||
cmd:wavpack$commandSuffix = $portVersion
|
||||
cmd:wvgain$commandSuffix = $portVersion
|
||||
cmd:wvtag$commandSuffix = $portVersion
|
||||
cmd:wvunpack$commandSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_bin="
|
||||
haiku$secondaryArchSuffix
|
||||
wavpack$secondaryArchSuffix == $portVersion base
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
wavpack${secondaryArchSuffix}_devel
|
||||
devel:libwavpack$secondaryArchSuffix = 1.2.0 compat >= 1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
wavpack$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:awk
|
||||
cmd:diff
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i -e "/wpincludedir/ \
|
||||
s|/include\(/wavpack\)|/$relativeOldIncludeDir\1|" \
|
||||
include/Makefile.am
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
aclocal
|
||||
libtoolize --force
|
||||
automake --add-missing
|
||||
autoconf
|
||||
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
rm $libDir/libwavpack.la
|
||||
|
||||
prepareInstalledDevelLib libwavpack
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries bin \
|
||||
$commandBinDir \
|
||||
$manDir
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user