Annotation of /trunk/deprecated/gcc-v3/gcc-v3-3.3.6-r4.smage2
Parent Directory | Revision Log
Revision 867 -
(hide annotations)
(download)
Sat Dec 27 18:46:23 2008 UTC (15 years, 9 months ago) by niro
File size: 1832 byte(s)
Sat Dec 27 18:46:23 2008 UTC (15 years, 9 months ago) by niro
File size: 1832 byte(s)
-moved to 'deprecated'
1 | niro | 2 | # $Header: /magellan-cvs/smage/gcc-v3/gcc-v3-3.3.6-r3.smage2,v 1.1 2006/07/09 16:32:59 niro Exp $ |
2 | |||
3 | PNAME="gcc-v3" | ||
4 | PVER="3.3.6" | ||
5 | PBUILD="r4" | ||
6 | |||
7 | PCATEGORIE="sys-dev" | ||
8 | STATE="unstable" | ||
9 | |||
10 | DESCRIPTION="Compat C/C++ compiler written by the GNU people." | ||
11 | HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" | ||
12 | |||
13 | DEPEND=">= virtual/glibc" | ||
14 | SDEPEND=">= sys-dev/binutils-2.4" | ||
15 | |||
16 | SRCFILE="gcc-${PVER}.tar.bz2" | ||
17 | SRCDIR="${BUILDDIR}/gcc-${PVER}" | ||
18 | |||
19 | # languages to build into gcc | ||
20 | MyLanguages=c,c++ | ||
21 | |||
22 | SRC_URI=( | ||
23 | gnu://gcc/${SRCFILE} | ||
24 | mirror://gcc/${SRCFILE} | ||
25 | mirror://gcc/gcc-${PVER}-no_fixincludes-1.patch | ||
26 | mirror://gcc/gcc-${PVER}-magellan-version.patch | ||
27 | ) | ||
28 | |||
29 | # prevent issues with gcc-3.4.x | ||
30 | export CFLAGS="-O" | ||
31 | export CXXFLAGS="-O" | ||
32 | |||
33 | # check for crosscompile or export default CHOST | ||
34 | if [[ -z ${CCHOST} ]] | ||
35 | then | ||
36 | # no crosscompile defined | ||
37 | export CCHOST=${CHOST} | ||
38 | else | ||
39 | # use crosscompile host | ||
40 | export CCHOST=${CCHOST} | ||
41 | fi | ||
42 | |||
43 | src_prepare() | ||
44 | { | ||
45 | munpack ${SRCFILE} || die | ||
46 | cd ${SRCDIR} | ||
47 | |||
48 | mpatch gcc-${PVER}-no_fixincludes-1.patch || die | ||
49 | mpatch gcc-${PVER}-magellan-version.patch || die | ||
50 | |||
51 | # suppress installation of libiberty, as we will be | ||
52 | # using the one from binutils | ||
53 | sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || die | ||
54 | |||
55 | install -d ${SRCDIR}/build || die | ||
56 | cd ${SRCDIR}/build | ||
57 | } | ||
58 | |||
59 | src_compile() | ||
60 | { | ||
61 | cd ${SRCDIR}/build | ||
62 | |||
63 | # install this thing to /opt/gcc-${PVER} | ||
64 | ../configure \ | ||
65 | --host=${CHOST} \ | ||
66 | --target=${CCHOST} \ | ||
67 | --prefix=/opt/gcc-${PVER} \ | ||
68 | --enable-shared \ | ||
69 | --enable-threads=posix \ | ||
70 | --enable-__cxa_atexit \ | ||
71 | --enable-clocale=gnu \ | ||
72 | --disable-checking \ | ||
73 | --disable-libunwind-exceptions \ | ||
74 | --with-system-zlib \ | ||
75 | --enable-long-long \ | ||
76 | --enable-cstdio=stdio \ | ||
77 | --enable-languages=${MyLanguages} \ | ||
78 | || die | ||
79 | |||
80 | # smaller boostrap | ||
81 | mmake bootstrap-lean || die | ||
82 | } | ||
83 | |||
84 | src_install() | ||
85 | { | ||
86 | cd ${SRCDIR}/build | ||
87 | make DESTDIR=${BINDIR} install || die | ||
88 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |