Contents of /trunk/core/libstdc++/libstdc++-4.3.2-r1.smage2
Parent Directory | Revision Log
Revision 47 -
(show annotations)
(download)
Sun Oct 12 20:27:15 2008 UTC (15 years, 11 months ago) by niro
File size: 3287 byte(s)
Sun Oct 12 20:27:15 2008 UTC (15 years, 11 months ago) by niro
File size: 3287 byte(s)
-fixed branding
1 | # $Header: /magellan-cvs/smage/libstdc++/libstdc++-4.2.3-r2.smage2,v 1.1 2008/04/01 13:36:16 niro Exp $ |
2 | |
3 | PNAME="libstdc++" |
4 | PVER="4.3.2" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Standard GNU C and C++ libraries." |
11 | HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html" |
12 | |
13 | # needed to prevent compat issues with gcc-3.4.x and gcc-4.0.x |
14 | DEPEND=">= sys-libs/libstdc++-v3-3.3.3 |
15 | >= sys-apps/base-files-0.1" |
16 | |
17 | SDEPEND=">= sys-dev/binutils-2.19 |
18 | >= dev-libs/gmp-4.2.4 |
19 | >= dev-libs/mpfr-2.3.2 |
20 | >= virtual/kernel-headers" |
21 | |
22 | SRCFILE="gcc-${PVER}.tar.bz2" |
23 | SRCDIR="${BUILDDIR}/gcc-${PVER}" |
24 | |
25 | # languages to build into gcc |
26 | MyLanguages=c,c++ |
27 | |
28 | sminclude cleanutils libtool |
29 | |
30 | SRC_URI=( |
31 | gnu://gcc/gcc-${PVER}/${SRCFILE} |
32 | mirror://gcc/${SRCFILE} |
33 | mirror://gcc/gcc-${PVER}-no-fixincludes.patch |
34 | ) |
35 | |
36 | # gcc don't like strong CFLAGS |
37 | export CFLAGS="${CFLAGS//-O?} -O2" |
38 | export CXXFLAGS="${CFLAGS}" |
39 | |
40 | # check for crosscompile or export default CHOST |
41 | if [[ -z ${CCHOST} ]] |
42 | then |
43 | # no crosscompile defined |
44 | export CCHOST=${CHOST} |
45 | else |
46 | # use crosscompile host |
47 | export CCHOST=${CCHOST} |
48 | fi |
49 | |
50 | src_prepare() |
51 | { |
52 | munpack ${SRCFILE} || die |
53 | cd ${SRCDIR} |
54 | |
55 | mpatch gcc-${PVER}-no-fixincludes.patch || die |
56 | |
57 | # suppress installation of libiberty, as we will be |
58 | # using the one from binutils |
59 | sed -i 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in || die |
60 | |
61 | install -d ${SRCDIR}/build || die |
62 | cd ${SRCDIR}/build |
63 | } |
64 | |
65 | src_compile() |
66 | { |
67 | cd ${SRCDIR}/build |
68 | |
69 | local myconf |
70 | |
71 | # you better off when not using distcc to compile |
72 | # your new compiler :) maybe not all are the same |
73 | export SMAGE_USE_DISTCC=false |
74 | |
75 | # Straight from the GCC install doc: |
76 | # "GCC has code to correctly determine the correct value for target |
77 | # for nearly all native systems. Therefore, we highly recommend you |
78 | # not provide a configure target when configuring a native compiler." |
79 | if [[ ${CHOST} != ${CCHOST} ]] |
80 | then |
81 | myconf+=" --target=${CCHOST}" |
82 | fi |
83 | |
84 | # gcc >= 4.3 has now configure flags for uri and version - yeah! |
85 | AR=ar \ |
86 | ../configure \ |
87 | --with-bugurl="http://bugs.magellan-linux.de/" \ |
88 | --with-pkgversion="Magellan-Linux" \ |
89 | --build=${CHOST} \ |
90 | --host=${CHOST} \ |
91 | --prefix=/usr \ |
92 | --mandir=/usr/share/man \ |
93 | --infodir=/usr/share/info \ |
94 | --libdir=/usr/$(mlibdir) \ |
95 | --libexecdir=/usr/$(mlibdir) \ |
96 | --enable-shared \ |
97 | --enable-threads=posix \ |
98 | --enable-__cxa_atexit \ |
99 | --enable-clocale=gnu \ |
100 | --disable-checking \ |
101 | --disable-libunwind-exceptions \ |
102 | --with-system-zlib \ |
103 | --enable-long-long \ |
104 | --enable-cstdio=stdio \ |
105 | --enable-languages=${MyLanguages} \ |
106 | --disable-libstdcxx-pch \ |
107 | ${myconf} \ |
108 | || die |
109 | |
110 | # parallel builds seems to break sometimes on x86_64 |
111 | local myopts |
112 | [[ ${ARCH} = x86_64 ]] && myopts=-j1 |
113 | |
114 | mmake ${myopts} bootstrap-lean || die |
115 | } |
116 | |
117 | src_install() |
118 | { |
119 | cd ${SRCDIR}/build |
120 | install -d ${BINDIR}/$(mlibdir) || die |
121 | |
122 | make DESTDIR=${BINDIR} install || die |
123 | |
124 | # deletes everything excluding libgcc_s and libstdc++ |
125 | zapmost ${BINDIR}/usr/$(mlibdir) libgcc_s*.* libstdc++*.* || die |
126 | |
127 | # other not needed |
128 | rm -rf ${BINDIR}/$(mlibdir) || die |
129 | rm -rf ${BINDIR}/usr/{bin,include,share} || die |
130 | rm -rf ${BINDIR}/usr/libexec || die |
131 | |
132 | # fix all .la files |
133 | # the contain invalid libpathes and they are not needed |
134 | local la |
135 | for la in $(find ${BINDIR} -name \*.la) |
136 | do |
137 | fix_la_file ${la} || die ${la} |
138 | done |
139 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |