mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 06:58:57 +02:00
musepack: add x86{,_64} to libcuefile, libreplaygain and musepack_tools.
* Add x86 and x86_64 to ARCHITECTURES as the recipe also works fine for these.
* Add x86_gcc2 to SECONDARY_ARCHITECTURES for use in x86 (gcc4) hybrid.
* Use $portVersion instead of the current version in SOURCE_{URI,DIR}.
* Drop the "r" prefix in version (r475 → 475) and ajust SOURCE_{URI,DIR}.
This commit is contained in:
83
media-sound/musepack_tools/musepack_tools-475.recipe
Normal file
83
media-sound/musepack_tools/musepack_tools-475.recipe
Normal file
@@ -0,0 +1,83 @@
|
||||
SUMMARY="Musepack SV8 libraries and utilities"
|
||||
DESCRIPTION="Musepack or MPC is an open source lossy audio codec, specifically \
|
||||
optimized for transparent compression of stereo audio at bitrates of 160-180 \
|
||||
(manual set allows bitrates up to 320) kbit/s. It was formerly known as \
|
||||
MPEGplus, MPEG+ or MP+."
|
||||
HOMEPAGE="https://www.musepack.net/"
|
||||
COPYRIGHT="1997-2011 Andree Buschmann, Frank Klemm"
|
||||
LICENSE="BSD (3-clause)
|
||||
GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="http://files.musepack.net/source/musepack_src_r$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a4b1742f997f83e1056142d556a8c20845ba764b70365ff9ccf2e3f81c427b2b"
|
||||
SOURCE_DIR="musepack_src_r$portVersion"
|
||||
PATCHES="musepack_tools-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
musepack_tools$secondaryArchSuffix = $portVersion
|
||||
cmd:mpc2sv8
|
||||
cmd:mpcchap
|
||||
cmd:mpccut
|
||||
cmd:mpcdec
|
||||
cmd:mpcenc
|
||||
cmd:mpcgain
|
||||
cmd:wavcmp
|
||||
lib:libmpcdec$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcuefile$secondaryArchSuffix
|
||||
lib:libreplaygain$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
musepack_tools${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmpcdec$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_devel="
|
||||
musepack_tools$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libreplaygain$secondaryArchSuffix
|
||||
devel:libcuefile$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DCUEFILE_INCLUDE_DIR=/system/develop/headers \
|
||||
-DREPLAY_GAIN_INCLUDE_DIR=/system/develop/headers
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/* $includeDir
|
||||
rm -r $includeDir/mpc/.svn
|
||||
rmdir $prefix/include
|
||||
|
||||
mkdir -p $libDir
|
||||
cp libmpcdec/libmpcdec.so $libDir/libmpcdec.so
|
||||
|
||||
prepareInstalledDevelLib libmpcdec
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user