mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
rubberband: fix x86 2nd arch and simplify install a little. (#751)
This commit is contained in:
@@ -13,6 +13,12 @@ PATCHES="rubberband-$portVersion.patchset"
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
if [ "$targetArchitecture" != x86_gcc2 ]; then
|
||||
commandBinDir=$binDir
|
||||
else
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
rubberband$secondaryArchSuffix = $portVersion
|
||||
cmd:rubberband
|
||||
@@ -53,10 +59,19 @@ BUILD_PREREQUIRES="
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -i \
|
||||
-e "/^INSTALL_INCDIR/ s|\(@prefix@/\)include/|\1$relativeIncludeDir/|;" \
|
||||
-e "/^INSTALL_LRDFDIR/ s|\(@prefix@/\)share/|\1$relativeDataDir/|;" \
|
||||
-e "/^INSTALL_/ s|\(@prefix@/\)lib|\1$relativeLibDir|;" \
|
||||
Makefile.in
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
autoreconf -fi
|
||||
runConfigure ./configure
|
||||
runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -64,10 +79,6 @@ INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
mkdir -p $(dirname $includeDir) $dataDir
|
||||
mv $prefix/include $includeDir
|
||||
mv $prefix/share/ladspa $dataDir
|
||||
|
||||
prepareInstalledDevelLibs librubberband
|
||||
fixPkgconfig
|
||||
|
||||
@@ -78,5 +89,5 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
bin/rubberband --version
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user