Magellan Linux

Annotation of /trunk/core/binutils/binutils-2.19.50.0.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 42 - (hide annotations) (download)
Sat Oct 11 01:07:51 2008 UTC (15 years, 7 months ago) by niro
File size: 1631 byte(s)
-ver bump to 2.19.50.1-r1
1 niro 42 # $Header: /magellan-cvs/smage/binutils/binutils-2.18.50.0.3-r2.smage2,v 1.1 2008/04/03 08:48:45 niro Exp $
2    
3     PNAME="binutils"
4     PVER="2.19.50.0.1"
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     ../configure \
56     --host=${CHOST} \
57     --target=${CCHOST} \
58     --prefix=/usr \
59     --mandir=/usr/share/man \
60     --infodir=/usr/share/info \
61     --libdir=/usr/$(mlibdir) \
62     --enable-shared \
63     --enable-64-bit-bfd \
64     --disable-werror \
65     || die
66    
67     make configure-host || die
68     mmake tooldir=/usr all || die
69     }
70    
71     src_install()
72     {
73     cd ${SRCDIR}/build
74    
75     mmake DESTDIR=${BINDIR} tooldir=/usr install || die
76     minstallfile ../include/libiberty.h /usr/include || die
77    
78     cd ${SRCDIR}
79     minstalldocs ChangeLog* COPYING* MAINTAINERS README* || die
80     }

Properties

Name Value
svn:keywords Id