Fix musepack hybrid build.

This commit is contained in:
Adrien Destugues
2014-09-25 09:07:54 +02:00
parent 190415521c
commit 151131504d
3 changed files with 36 additions and 32 deletions

View File

@@ -5,6 +5,7 @@ optimized for transparent compression of stereo audio at bitrates of 160180 \
MPEGplus, MPEG+ or MP+.
"
ARCHITECTURES="x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
REVISION="1"
HOMEPAGE="https://www.musepack.net"
LICENSE="
@@ -20,7 +21,7 @@ SOURCE_DIR="musepack_src_r475"
PATCHES="musepack_tools-r475.patchset"
PROVIDES="
musepack_tools = $portVersion
musepack_tools$secondaryArchSuffix = $portVersion
cmd:mpc2sv8
cmd:mpcchap
cmd:mpccut
@@ -28,34 +29,34 @@ PROVIDES="
cmd:mpcenc
cmd:mpcgain
cmd:wavcmp
lib:libmpcdec
lib:libmpcdec$secondaryArchSuffix
"
REQUIRES="
haiku >= $haikuVersion
lib:libcuefile
lib:libreplaygain
haiku$secondaryArchSuffix >= $haikuVersion
lib:libcuefile$secondaryArchSuffix
lib:libreplaygain$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libreplaygain
devel:libcuefile
devel:libreplaygain$secondaryArchSuffix
devel:libcuefile$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:cmake
cmd:gcc
cmd:gcc$secondaryArchSuffix
cmd:make
"
PROVIDES_devel="
musepack_tools_devel = $portVersion
devel:libmpcdec
musepack_tools_devel$secondaryArchSuffix = $portVersion
devel:libmpcdec$secondaryArchSuffix
"
REQUIRES_devel="
musepack_tools == $portVersion base
musepack_tools$secondaryArchSuffix == $portVersion base
"
BUILD()
@@ -70,9 +71,10 @@ INSTALL()
{
make install
mkdir -p $developDir
mv $prefix/include $includeDir
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