WIP fixes to gcc-6809 and lwtools

* Not working properly yet.
* gcc6809 was missing dependencies on mpc/mpfr/gmp (not caught by
haikuporter because the executables are not in $binDir
* the -x86 suffix on lwasm was causing gcc to not find it, so use the
normal "bin" dir (it doesn't build with gcc2 anyway)
* Still not working because of LIBRARY_PATH issues (gcc redefines this
and it confuses runtime_loader)
This commit is contained in:
Adrien Destugues
2015-05-15 20:55:10 +02:00
parent 7dfeb14e63
commit b52d2973fb
2 changed files with 33 additions and 23 deletions

View File

@@ -7,7 +7,7 @@ supports macros and file inclusion among other things.
HOMEPAGE="http://lwtools.projects.l-w.ca/"
SRC_URI="$HOMEPAGE/releases/lwtools/lwtools-$portVersion.tar.gz"
CHECKSUM_SHA256="06ee27c597798bbfb064a8d9471e5cd91074ff22fa8eb4f7d276a8809d35622c"
REVISION="1"
REVISION="2"
COPYRIGHT="2006-2014 William Astle"
LICENSE="GNU GPL v3"
@@ -21,17 +21,17 @@ SECONDARY_ARCHITECTURES="x86"
PROVIDES="
lwtools$secondaryArchSuffix = $portVersion
cmd:lwar$secondaryArchSuffix
cmd:lwasm$secondaryArchSuffix
cmd:lwlink$secondaryArchSuffix
cmd:lwobjdump$secondaryArchSuffix
cmd:m6809_unknown_ar$secondaryArchSuffix
cmd:m6809_unknown_as$secondaryArchSuffix
cmd:m6809_unknown_ld$secondaryArchSuffix
cmd:m6809_unknown_nm$secondaryArchSuffix
cmd:m6809_unknown_objdump$secondaryArchSuffix
cmd:m6809_unknown_ranlib$secondaryArchSuffix
cmd:m6809_unknown_strip$secondaryArchSuffix
cmd:lwar
cmd:lwasm
cmd:lwlink
cmd:lwobjdump
cmd:m6809_unknown_ar
cmd:m6809_unknown_as
cmd:m6809_unknown_ld
cmd:m6809_unknown_nm
cmd:m6809_unknown_objdump
cmd:m6809_unknown_ranlib
cmd:m6809_unknown_strip
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -49,15 +49,15 @@ BUILD()
INSTALL()
{
make install INSTALLDIR=$binDir
make install INSTALLDIR=$prefix/bin
# Install the binutil-like interfaces to the tools
cp extra/as $binDir/m6809-unknown-as
cp extra/ar $binDir/m6809-unknown-ar
cp extra/ld $binDir/m6809-unknown-ld
cp extra/as $prefix/bin/m6809-unknown-as
cp extra/ar $prefix/bin/m6809-unknown-ar
cp extra/ld $prefix/bin/m6809-unknown-ld
ln -s /bin/true $binDir/m6809-unknown-nm
ln -s /bin/true $binDir/m6809-unknown-objdump
ln -s /bin/true $binDir/m6809-unknown-ranlib
ln -s /bin/true $binDir/m6809-unknown-strip
ln -s /bin/true $prefix/bin/m6809-unknown-nm
ln -s /bin/true $prefix/bin/m6809-unknown-objdump
ln -s /bin/true $prefix/bin/m6809-unknown-ranlib
ln -s /bin/true $prefix/bin/m6809-unknown-strip
}