From 2dfbc61433798eb324f390b505b07cff543dcbe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 28 Oct 2014 01:06:42 +0100 Subject: [PATCH] lzip: Install to /bin for x86 gcc4 --- app-arch/lzip/lzip-1.16.recipe | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app-arch/lzip/lzip-1.16.recipe b/app-arch/lzip/lzip-1.16.recipe index c4388d0b4..6955f6a8c 100644 --- a/app-arch/lzip/lzip-1.16.recipe +++ b/app-arch/lzip/lzip-1.16.recipe @@ -39,9 +39,17 @@ else fi SECONDARY_ARCHITECTURES="x86" +# On x86_gcc2 we don't want to install the commands in bin//, but in bin/. +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + PROVIDES=" lzip$secondaryArchSuffix = $portVersion - cmd:lzip$secondaryArchSuffix = $portVersion + cmd:lzip$commandSuffix = $portVersion " REQUIRES=" @@ -62,7 +70,7 @@ BUILD_PREREQUIRES=" BUILD() { ./configure --prefix=$prefix \ - --bindir=$binDir \ + --bindir=$commandBinDir \ --datarootdir=$dataRootDir \ --infodir=$infoDir \ --mandir=$manDir