]>
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 | |
d5518e81 | 8 | release = 5 |
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 | |
d5518e81 MT |
73 | |
74 | # Prevent packages from linking against libbfd and libopcodes, | |
75 | # because they change too often. | |
76 | rm -rfv %{BUILDROOT}/usr/lib/lib{bfd,opcodes}.so | |
802ea3af | 77 | end |
68b0def9 MT |
78 | |
79 | # Keep static version of libiberty. | |
80 | keep_libraries | |
81 | /usr/lib/libiberty.a | |
82 | end | |
802ea3af MT |
83 | end |
84 | ||
85 | packages | |
86 | package %{name} | |
974699b4 MT |
87 | |
88 | package %{name}-devel | |
89 | template DEVEL | |
f45434a7 MT |
90 | |
91 | # Don't package libbfd and libopcodes in the -devel package. | |
92 | files | |
93 | /usr/include | |
94 | /usr/lib/*.a | |
f45434a7 | 95 | end |
802ea3af MT |
96 | end |
97 | end |