Annotation of /smage/branches/branch_0.9.0/binutils/binutils-2.18.50.0.3-r2.smage2
Parent Directory
|
Revision Log
Revision 3 -
(hide annotations)
(download)
Sun Jan 11 00:48:53 2009 UTC (15 years, 5 months ago) by niro
Original Path: smage/trunk/extras/binutils/binutils-2.18.50.0.3-r2.smage2
File size: 1683 byte(s)
Sun Jan 11 00:48:53 2009 UTC (15 years, 5 months ago) by niro
Original Path: smage/trunk/extras/binutils/binutils-2.18.50.0.3-r2.smage2
File size: 1683 byte(s)
-import alx-0.9.0
1 | niro | 3 | # $Header: /alx-cvs/smage-eglibc/binutils/binutils-2.18.50.0.3-r2.smage2,v 1.2 2008/04/14 19:41:06 niro Exp $ |
2 | |||
3 | PNAME="binutils" | ||
4 | PVER="2.18.50.0.3" | ||
5 | PBUILD="r2" | ||
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 alx | ||
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 | # binutils don't like strong CFLAGS | ||
28 | export CFLAGS="${CFLAGS//-O?} -O2" | ||
29 | export CXXFLAGS="${CFLAGS}" | ||
30 | |||
31 | if [[ -z ${CCHOST} ]] | ||
32 | then | ||
33 | # no crosscompile defined | ||
34 | export CCHOST=${CHOST} | ||
35 | else | ||
36 | # use crosscompile host | ||
37 | export CCHOST=${CCHOST} | ||
38 | fi | ||
39 | |||
40 | src_prepare() | ||
41 | { | ||
42 | munpack ${SRCFILE} || die | ||
43 | install -d ${SRCDIR}/build || die | ||
44 | |||
45 | cd ${SRCDIR} | ||
46 | mpatch ${PNAME}-2.16.91.0.5-multilib.patch || die | ||
47 | } | ||
48 | |||
49 | src_compile() | ||
50 | { | ||
51 | cd ${SRCDIR}/build | ||
52 | |||
53 | ../configure \ | ||
54 | --host=${CHOST} \ | ||
55 | --target=${CCHOST} \ | ||
56 | --prefix=/usr \ | ||
57 | --mandir=/usr/share/man \ | ||
58 | --infodir=/usr/share/info \ | ||
59 | --libdir=/usr/$(mlibdir) \ | ||
60 | --enable-shared \ | ||
61 | --enable-64-bit-bfd \ | ||
62 | --disable-werror \ | ||
63 | || die | ||
64 | |||
65 | make configure-host || die | ||
66 | make tooldir=/usr all || die | ||
67 | } | ||
68 | |||
69 | src_install() | ||
70 | { | ||
71 | cd ${SRCDIR}/build | ||
72 | |||
73 | make prefix=${BINDIR}/usr \ | ||
74 | mandir=${BINDIR}/usr/share/man \ | ||
75 | infodir=${BINDIR}/usr/share/info \ | ||
76 | tooldir=${BINDIR}/usr \ | ||
77 | libdir=${BINDIR}/usr/$(mlibdir) install || die | ||
78 | |||
79 | install -m 0644 ../include/libiberty.h ${BINDIR}/usr/include || die | ||
80 | |||
81 | cd ${SRCDIR} | ||
82 | minstalldocs ChangeLog* COPYING* MAINTAINERS README* || die | ||
83 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |