Contents of /branches/magellan-0_10_0/core/binutils/binutils-2.19.51.0.4-r1.smage2
Parent Directory | Revision Log
Revision 3000 -
(show annotations)
(download)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1595 byte(s)
Mon Oct 5 18:47:41 2009 UTC (14 years, 11 months ago) by niro
File size: 1595 byte(s)
created branch 'magellan-0_10_0'
1 | # $Id$ |
2 | |
3 | PNAME="binutils" |
4 | PVER="2.19.51.0.4" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-dev" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Tools necessary to build programs." |
11 | HOMEPAGE="http://www.kernel.org/pub/linux/devel/binutils/" |
12 | |
13 | DEPEND="" |
14 | SDEPEND=">= virtual/kernel-headers" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | sminclude mtools |
20 | |
21 | SRC_URI=( |
22 | http://www.kernel.org/pub/linux/devel/${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/${PNAME}-2.16.91.0.5-multilib.patch |
25 | ) |
26 | |
27 | UP2DATE="updatecmd ${HOMEPAGE} | sed -n 's/.*release.binutils-\(.*\).*/\1/;$ p'" |
28 | |
29 | # binutils don't like strong CFLAGS |
30 | export CFLAGS="${CFLAGS//-O?} -O2" |
31 | export CXXFLAGS="${CFLAGS}" |
32 | |
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 | { |
44 | munpack ${SRCFILE} || die |
45 | install -d ${SRCDIR}/build || die |
46 | |
47 | cd ${SRCDIR} |
48 | mpatch ${PNAME}-2.16.91.0.5-multilib.patch || die |
49 | } |
50 | |
51 | src_compile() |
52 | { |
53 | cd ${SRCDIR}/build |
54 | |
55 | # fixes compilation, use 'ar' instead of '${CHOST}-ar' |
56 | AR=ar \ |
57 | ../configure \ |
58 | --host=${CHOST} \ |
59 | --target=${CCHOST} \ |
60 | --prefix=/usr \ |
61 | --mandir=/usr/share/man \ |
62 | --infodir=/usr/share/info \ |
63 | --libdir=/usr/$(mlibdir) \ |
64 | --enable-shared \ |
65 | --enable-64-bit-bfd \ |
66 | --disable-werror \ |
67 | || die |
68 | |
69 | make configure-host || die |
70 | mmake tooldir=/usr all || die |
71 | } |
72 | |
73 | src_install() |
74 | { |
75 | cd ${SRCDIR}/build |
76 | |
77 | mmake DESTDIR=${BINDIR} tooldir=/usr install || die |
78 | minstallfile ../include/libiberty.h /usr/include || die |
79 | |
80 | cd ${SRCDIR} |
81 | minstalldocs ChangeLog* COPYING* MAINTAINERS README* || die |
82 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |