boehm_bc: Fix recipe secondary arch issues

* Recipe wasn't designed properly for secondary
  architecture building
This commit is contained in:
Alexander von Gluck IV
2013-12-26 22:15:30 -06:00
parent a45c9e2eac
commit 7dbd21bd91

View File

@@ -9,42 +9,33 @@ be otherwise accessed."
HOMEPAGE="http://www.hpl.hp.com/personal/Hans_Boehm/gc/"
SRC_URI="http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2d.tar.gz"
REVISION="1"
ARCHITECTURES="x86 x86_gcc2"
REVISION="2"
ARCHITECTURES="x86 x86_gcc2 x86_64"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
CHECKSUM_MD5="91340b28c61753a789eb6077675d87d2"
SOURCE_DIR="gc-7.2"
PATCHES="boehm_gc-7.2d.patch"
PROVIDES="
boehm_gc = $portVersion compat >= 7
lib:libgc = $portVersion compat >= 7
lib:libcord = $portVersion compat >= 7
boehm_gc$secondaryArchSuffix = $portVersion compat >= 7
lib:libgc$secondaryArchSuffix = $portVersion compat >= 7
lib:libcord$secondaryArchSuffix = $portVersion compat >= 7
"
REQUIRES="
haiku >= $haikuVersion
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES=""
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:libtoolize
cmd:autoconf
cmd:make
cmd:gcc
cmd:ld
"
PROVIDES_devel="
boehm_gc_devel = $portVersion compat >= 7
devel:libgc = $portVersion compat >= 7
devel:libcord = $portVersion compat >= 7
"
REQUIRES_devel="
boehm_gc == $portVersion
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
BUILD()
@@ -52,7 +43,7 @@ BUILD()
libtoolize --force --copy --install
autoconf -f
runConfigure ./configure --enable-threads=posix \
--enable-thread-local-alloc --enable-parallel-mark
--enable-thread-local-alloc --enable-parallel-mark
make
}
@@ -69,6 +60,16 @@ TEST()
make check
}
PROVIDES_devel="
boehm_gc${secondaryArchSuffix}_devel = $portVersion compat >= 7
devel:libgc${secondaryArchSuffix} = $portVersion compat >= 7
devel:libcord${secondaryArchSuffix} = $portVersion compat >= 7
"
REQUIRES_devel="
boehm_gc${secondaryArchSuffix} == $portVersion base
"
LICENSE="BOEHM"
COPYRIGHT="1988, 1989 Hans-J. Boehm, Alan J. Demers
1991-1996 by Xerox Corporation. All rights reserved.