dash: add support for x86 secondary arch.

This commit is contained in:
fbrosson
2018-05-08 18:36:50 +00:00
parent 21294480d6
commit 585c93b9c7

View File

@@ -12,20 +12,28 @@ REVISION="1"
SOURCE_URI="https://git.kernel.org/pub/scm/utils/dash/dash.git/snapshot/dash-$portVersion.tar.gz"
CHECKSUM_SHA256="3f747013a20a3a9d2932be1a6dd1b002ca5649849b649be0af8a8da80bd8a918"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
commandSuffix=$secondaryArchSuffix
commandBinDir=$binDir
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
dash = $portVersion
cmd:dash = $portVersion
dash$secondaryArchSuffix = $portVersion
cmd:dash$commandSuffix = $portVersion
"
REQUIRES="
haiku
lib:libreadline
lib:libncursesw
haiku$secondaryArchSuffix
lib:libreadline$secondaryArchSuffix
lib:libncursesw$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku_devel
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
@@ -33,14 +41,14 @@ BUILD_PREREQUIRES="
cmd:autoheader
cmd:automake
cmd:awk
cmd:gcc
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
./autogen.sh
runConfigure ./configure
runConfigure --omit-dirs binDir ./configure --bindir="$commandBinDir"
make $jobArgs LIBS="-lbsd"
}
@@ -48,3 +56,8 @@ INSTALL()
{
make install
}
TEST()
{
make check
}