blob: 8d802330a7dea7e2d633f9344e3063747b47c620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-devel/binutils/binutils-2.10.0.18-r1.ebuild,v 1.4 2000/09/15 20:09:25 drobbins Exp $
P=binutils-2.10.0.18
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Tools necessary to build programs"
SRC_URI="ftp://ftp.varesearch.com/pub/support/hjl/binutils/${A}"
src_compile() {
try ./configure --prefix=/usr --host=${CHOST}
try make
}
src_install() {
#I'm sure this can be simplified with a "try make PREFIX=${D}/usr install"
#one of these days...
into /usr
doman binutils/*.1 gas/doc/as.1 gprof/gprof.1
insinto /usr/lib
doins bfd/libbfd.la bfd/libbfd.a opcodes/libopcodes.a opcodes/libopcodes.la libiberty/libiberty.a
insinto /usr/include
doins bfd/bfd.h include/ansidecl.h include/bfdlink.h
cp binutils/nm-new binutils/nm
cp binutils/strip-new binutils/strip
cp gas/as-new gas/as
cp gas/gasp-new gas/gasp
cp ld/ld-new ld/ld
cd binutils
dobin addr2line ar cxxfilt nm objcopy objdump ranlib readelf size strings strip
cd ..
dobin ld/ld gprof/gprof gas/as gas/gasp
dodir /usr/${CHOST}/bin
for i in nm strip ar ranlib as ld
do
dosym /usr/bin/${i} /usr/${CHOST}/bin/${i}
done
insinto /usr/${CHOST}/lib/ldscripts
doins ld/ldscripts/*
dodoc COPYING* README* ChangeLog* mpw-README
docinto bfd
dodoc bfd/ChangeLog* bfd/COPYING bfd/README bfd/PORTING bfd/TODO
docinto binutils
dodoc binutils/MAINTAINERS binutils/NEWS binutils/README
docinto gas
dodoc gas/ChangeLog* gas/CONTRIBUTORS gas/COPYING gas/MAINTAINERS gas/NEWS gas/README*
docinto gprof
dodoc gprof/ChangeLog* gprof/MAINTAINERS gprof/NOTES gprof/TEST gprof/TODO
docinto include
dodoc include/ChangeLog* include/COPYING include/MAINTAINERS
docinto intl
dodoc intl/ChangeLog
docinto ld
dodoc ld/ChangeLog* ld/MAINTAINERS ld/README ld/NEWS ld/TODO
docinto libiberty
dodoc libiberty/ChangeLog* libiberty/COPYING.LIB libiberty/README
docinto opcodes
dodoc opcodes/ChangeLog* opcodes/MAINTAINERS
}
|