Lines 5-13
Link Here
|
5 |
inherit eutils |
5 |
inherit eutils |
6 |
|
6 |
|
7 |
PATCH_VERSION=${PV:5} |
7 |
PATCH_VERSION=${PV:5} |
8 |
GCC_SNAPSHOT="20050326" |
|
|
9 |
BASE_BINUTILS="2.15" |
8 |
BASE_BINUTILS="2.15" |
10 |
GCC_VER=4.0 |
9 |
GCC_VER="4.0.0" |
11 |
BIN_VER=${BASE_BINUTILS:0:4} |
10 |
BIN_VER=${BASE_BINUTILS:0:4} |
12 |
ENV_FILE=${D}/etc/env.d/99tigcc |
11 |
ENV_FILE=${D}/etc/env.d/99tigcc |
13 |
S=$WORKDIR |
12 |
S=$WORKDIR |
Lines 15-21
Link Here
|
15 |
HOMEPAGE="http://tigcc.ticalc.org" |
14 |
HOMEPAGE="http://tigcc.ticalc.org" |
16 |
|
15 |
|
17 |
SRC_URI="mirror://gentoo/${PF}.tar.bz2 |
16 |
SRC_URI="mirror://gentoo/${PF}.tar.bz2 |
18 |
ftp://gcc.gnu.org/pub/gcc/snapshots/4.0-${GCC_SNAPSHOT}/gcc-4.0-${GCC_SNAPSHOT}.tar.bz2 |
17 |
mirror://gentoo/gcc-${GCC_VER}.tar.bz2 |
19 |
mirror:/kernel/linux/devel/binutils/binutils-${BASE_BINUTILS}.tar.bz2 |
18 |
mirror:/kernel/linux/devel/binutils/binutils-${BASE_BINUTILS}.tar.bz2 |
20 |
http://members.chello.at/gerhard.kofler/kevin/ti89prog/libfargo.zip |
19 |
http://members.chello.at/gerhard.kofler/kevin/ti89prog/libfargo.zip |
21 |
http://members.chello.at/gerhard.kofler/kevin/ti89prog/flashosa.zip" |
20 |
http://members.chello.at/gerhard.kofler/kevin/ti89prog/flashosa.zip" |
Lines 26-38
Link Here
|
26 |
KEYWORDS="~x86 ~ppc ~sparc ~amd64" |
25 |
KEYWORDS="~x86 ~ppc ~sparc ~amd64" |
27 |
IUSE="doc" |
26 |
IUSE="doc" |
28 |
|
27 |
|
29 |
DEPEND="virtual/glibc |
28 |
DEPEND="virtual/libc |
30 |
>=sys-devel/binutils-2.14.90.0.6-r1 |
29 |
>=sys-devel/binutils-2.14.90.0.6-r1 |
31 |
>=sys-devel/bison-1.875" |
30 |
>=sys-devel/bison-1.875" |
32 |
|
31 |
|
33 |
src_unpack() { |
32 |
src_unpack() { |
34 |
unpack ${A} |
33 |
unpack ${A} |
35 |
sed -ie s/20050319/${GCC_SNAPSHOT}/ sources/gcc/gcc-4.0-tigcc-patch.diff |
|
|
36 |
# start by patching and cleaning out binutils and gcc directories. |
34 |
# start by patching and cleaning out binutils and gcc directories. |
37 |
cd ${WORKDIR}/binutils-${BASE_BINUTILS} |
35 |
cd ${WORKDIR}/binutils-${BASE_BINUTILS} |
38 |
epatch ${S}/sources/gcc/gas-${BIN_VER}-tigcc-*.diff |
36 |
epatch ${S}/sources/gcc/gas-${BIN_VER}-tigcc-*.diff |
Lines 52-58
Link Here
|
52 |
rm -f -r ld |
50 |
rm -f -r ld |
53 |
rm -f -r texinfo |
51 |
rm -f -r texinfo |
54 |
|
52 |
|
55 |
cd ${WORKDIR}/gcc-4.0-${GCC_SNAPSHOT} |
53 |
cd ${WORKDIR}/gcc-${GCC_VER} |
56 |
epatch ${S}/sources/gcc/gcc-4.0-tigcc-patch.diff |
54 |
epatch ${S}/sources/gcc/gcc-4.0-tigcc-patch.diff |
57 |
|
55 |
|
58 |
rm -f .brik |
56 |
rm -f .brik |
Lines 94-100
Link Here
|
94 |
|
92 |
|
95 |
# build gcc |
93 |
# build gcc |
96 |
cd ${WORKDIR}/build/gcc |
94 |
cd ${WORKDIR}/build/gcc |
97 |
CFLAGS="${CFLAGS}" ${WORKDIR}/gcc-4.0-${GCC_SNAPSHOT}/configure --target=m68k-coff \ |
95 |
CFLAGS="${CFLAGS}" ${WORKDIR}/gcc-${GCC_VER}/configure --target=m68k-coff \ |
98 |
--with-gnu-as --with-as=${WORKDIR}/build/binutils/gas/as-new --with-gnu-ld \ |
96 |
--with-gnu-as --with-as=${WORKDIR}/build/binutils/gas/as-new --with-gnu-ld \ |
99 |
--disable-nls --disable-multilib --disable-shared --enable-static \ |
97 |
--disable-nls --disable-multilib --disable-shared --enable-static \ |
100 |
--disable-threads --enable-languages=c --disable-win32-registry \ |
98 |
--disable-threads --enable-languages=c --disable-win32-registry \ |
Lines 103-109
Link Here
|
103 |
|
101 |
|
104 |
# GCC compilations _is intended_ to fail on a certain point, |
102 |
# GCC compilations _is intended_ to fail on a certain point, |
105 |
# don't worry about that. |
103 |
# don't worry about that. |
106 |
emake |
104 |
emake -j1 |
107 |
|
105 |
|
108 |
# Check if gcc has been built, die otherwise |
106 |
# Check if gcc has been built, die otherwise |
109 |
( [ -e ${WORKDIR}/build/gcc/gcc/xgcc ] && [ -e ${WORKDIR}/build/gcc/gcc/cc1 ] ) || die "gcc" |
107 |
( [ -e ${WORKDIR}/build/gcc/gcc/xgcc ] && [ -e ${WORKDIR}/build/gcc/gcc/cc1 ] ) || die "gcc" |