mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
Add recipe for gcc-6809 4.6.3.
- Now including libgcc (it builds only if I disable optimizations, but that will do for now).
This commit is contained in:
93
dev-embedded/gcc6809/gcc6809-4.6.3.recipe
Normal file
93
dev-embedded/gcc6809/gcc6809-4.6.3.recipe
Normal file
@@ -0,0 +1,93 @@
|
||||
SUMMARY="GCC compiler for Motorola 6809"
|
||||
DESCRIPTION="This is a version of the GCC compiler for the Motorla 6809. It \
|
||||
uses the lwtools as a backend. Note that there is no C library provided."
|
||||
HOMEPAGE="http://lwtools.projects.l-w.ca"
|
||||
SOURCE_URI="ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/releases/gcc-$portVersion/gcc-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="e8f5853d4eec2f5ebaf8a72ae4d53c436aacf98153b2499f8635b48c4718a093"
|
||||
REVISION="1"
|
||||
COPYRIGHT="1988-2013 Free Software Foundation, Inc."
|
||||
LICENSE="
|
||||
GNU GPL v2
|
||||
GNU LGPL v2
|
||||
"
|
||||
PATCHES="gcc6809-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
gcc6809$secondaryArchSuffix = $portVersion compat >= 4
|
||||
cmd:m6809_unknown_c++$secondaryArchSuffix
|
||||
cmd:m6809_unknown_cpp$secondaryArchSuffix
|
||||
cmd:m6809_unknown_g++$secondaryArchSuffix
|
||||
cmd:m6809_unknown_gcc_$portVersion$secondaryArchSuffix
|
||||
cmd:m6809_unknown_gcc$secondaryArchSuffix
|
||||
cmd:m6809_unknown_gcov$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libmpc$secondaryArchSuffix
|
||||
lib:libmpfr$secondaryArchSuffix
|
||||
lib:libgmp$secondaryArchSuffix
|
||||
cmd:m6809_unknown_ld
|
||||
cmd:lwasm
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libgmp$secondaryArchSuffix
|
||||
devel:libmpfr$secondaryArchSuffix
|
||||
devel:libmpc$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:autoconf
|
||||
cmd:awk
|
||||
cmd:find
|
||||
cmd:flex
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:makeinfo
|
||||
cmd:sed
|
||||
cmd:strip
|
||||
cmd:tar
|
||||
cmd:which
|
||||
cmd:xargs
|
||||
cmd:m6809_unknown_ld
|
||||
"
|
||||
|
||||
SOURCE_DIR="gcc-$portVersion"
|
||||
|
||||
sourceDir=$(pwd)
|
||||
objectsDir=$(pwd)/../${portVersionedName}-obj
|
||||
|
||||
BUILD()
|
||||
{
|
||||
rm -rf $objectsDir
|
||||
|
||||
mkdir -p $objectsDir
|
||||
cd $objectsDir
|
||||
|
||||
# Setting a quoted string in an environment variable is ugly (the quotes
|
||||
# are removed at various stages and need an absurd amount of escaping), so
|
||||
# let's use a file and --include instead.
|
||||
echo '#define LIBRARY_PATH_ENV "M6809_LIBRARY_PATH"' > haiku_host.h
|
||||
|
||||
CXXFLAGS="-O2 -include $objectsDir/haiku_host.h" \
|
||||
CFLAGS="-O2 -include $objectsDir/haiku_host.h" \
|
||||
runConfigure $sourceDir/configure --enable-languages=c,c++ \
|
||||
--target=m6809-unknown --program-prefix=m6809-unknown- \
|
||||
--enable-obsolete --srcdir=$sourceDir --disable-threads --disable-nls \
|
||||
--disable-libssp --disable-multilib --with-as=$(which m6809-unknown-as) \
|
||||
--with-ar=$(which m6809-unknown-ar) --with-ld=$(which m6809-unknown-ld) \
|
||||
MAKEINFO=missing
|
||||
|
||||
make $jobArgs all-gcc all-target-libgcc
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd $objectsDir
|
||||
make install-gcc install-target-libgcc
|
||||
# Remove buggy (empty) dir left over by install
|
||||
rm -r $prefix/m6809-unknown
|
||||
}
|
||||
8234
dev-embedded/gcc6809/patches/gcc6809-4.6.3.patchset
Normal file
8234
dev-embedded/gcc6809/patches/gcc6809-4.6.3.patchset
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user