]>
Commit | Line | Data |
---|---|---|
166a6c21 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
166a6c21 MT |
4 | ############################################################################### |
5 | ||
802ea3af MT |
6 | name = binutils |
7 | version = 2.21.51.0.8 | |
68b0def9 | 8 | release = 3 |
166a6c21 | 9 | |
802ea3af MT |
10 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
11 | groups = Development/Tools | |
12 | url = http://www.gnu.org/software/binutils/ | |
13 | license = GPLv2+ | |
14 | summary = The GNU Binutils are a collection of binary tools. | |
166a6c21 | 15 | |
802ea3af MT |
16 | description |
17 | The GNU Binary Utilities, or binutils, is a collection of programming | |
166a6c21 | 18 | tools for the manipulation of object code in various object file formats. |
802ea3af MT |
19 | end |
20 | ||
21 | source_dl = http://ftp.gnu.org/gnu/binutils/ | |
22 | ||
23 | build | |
24 | requires | |
25 | bison | |
26 | dejagnu | |
27 | flex | |
28 | gcc-c++ | |
29 | texinfo | |
30 | zlib-devel | |
31 | end | |
32 | ||
33 | prepare_cmds | |
34 | mkdir -pv %{DIR_SRC}/binutils-build | |
35 | ||
36 | # Suppress the installation of an outdated standards.info file as a newer | |
37 | # one is installed later on in the Autoconf instructions: | |
38 | rm -fv etc/standards.info | |
39 | sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in | |
40 | ||
41 | sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in} | |
42 | end | |
43 | ||
44 | ||
45 | build | |
46 | BINUTILS_TARGET_PLATFORM=$(echo "%{DISTRO_MACHINE}" | sed -e "s/-gnu//") | |
47 | ||
68b0def9 MT |
48 | cd %{DIR_SRC}/binutils-build |
49 | ../%{thisapp}/configure \ | |
50 | --host=${BINUTILS_TARGET_PLATFORM} \ | |
51 | --build=${BINUTILS_TARGET_PLATFORM} \ | |
52 | --target=${BINUTILS_TARGET_PLATFORM} \ | |
53 | --prefix=/usr \ | |
54 | --mandir=/usr/share/man \ | |
55 | --enable-shared \ | |
56 | --disable-nls \ | |
57 | --disable-werror \ | |
58 | --disable-static | |
59 | ||
60 | make tooldir=/usr %{PARALLELISMFLAGS} | |
802ea3af MT |
61 | end |
62 | ||
63 | #def test | |
64 | # # Apply a sed substitution to prevent a testsuite error: | |
65 | # sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c | |
66 | # cd %{DIR_SRC}/binutils-build && make check | |
67 | #end | |
68 | ||
69 | install | |
70 | cd %{DIR_SRC}/binutils-build && make tooldir=/usr install DESTDIR=%{BUILDROOT} | |
71 | ||
72 | cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include | |
73 | end | |
68b0def9 MT |
74 | |
75 | # Keep static version of libiberty. | |
76 | keep_libraries | |
77 | /usr/lib/libiberty.a | |
78 | end | |
802ea3af MT |
79 | end |
80 | ||
81 | packages | |
82 | package %{name} | |
974699b4 MT |
83 | |
84 | package %{name}-devel | |
85 | template DEVEL | |
802ea3af MT |
86 | end |
87 | end |