mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 13:38:52 +02:00
Add recipe for musepack.
This commit is contained in:
87
media-sound/musepack_tools/musepack_tools-r475.recipe
Normal file
87
media-sound/musepack_tools/musepack_tools-r475.recipe
Normal file
@@ -0,0 +1,87 @@
|
||||
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+.
|
||||
"
|
||||
ARCHITECTURES="x86_gcc2"
|
||||
REVISION="1"
|
||||
HOMEPAGE="https://www.musepack.net"
|
||||
LICENSE="
|
||||
BSD (3-clause)
|
||||
GNU LGPL v2.1
|
||||
"
|
||||
COPYRIGHT="
|
||||
1997-2011 Andree Buschmann, Frank Klemm
|
||||
"
|
||||
|
||||
SRC_URI="http://files.musepack.net/source/musepack_src_r475.tar.gz"
|
||||
SOURCE_DIR="musepack_src_r475"
|
||||
|
||||
PROVIDES="
|
||||
musepack_tools = $portVersion
|
||||
cmd:mpc2sv8
|
||||
cmd:mpcchap
|
||||
cmd:mpccut
|
||||
cmd:mpcdec
|
||||
cmd:mpcenc
|
||||
cmd:mpcgain
|
||||
cmd:wavcmp
|
||||
lib:libmpcdec
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku >= $haikuVersion
|
||||
lib:libcuefile
|
||||
lib:libreplaygain
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
devel:libreplaygain
|
||||
devel:libcuefile
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku_devel >= $haikuVersion
|
||||
cmd:cmake
|
||||
cmd:gcc
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
musepack_tools_devel = $portVersion
|
||||
devel:libmpcdec
|
||||
"
|
||||
|
||||
REQUIRES_devel="
|
||||
musepack_tools == $portVersion base
|
||||
"
|
||||
|
||||
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 $developDir
|
||||
mv $prefix/include $includeDir
|
||||
rm -r $includeDir/mpc/.svn
|
||||
|
||||
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