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