]>
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 | 6 | name = binutils |
5f4bab70 | 7 | version = 2.23.52.0.1 |
4c4a5d3c | 8 | release = 1 |
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 | ||
0c98d65a MT |
21 | source_dl |
22 | http://ftp.gnu.org/gnu/binutils/ | |
23 | ftp://ftp.kernel.org/pub/linux/devel/binutils | |
24 | end | |
802ea3af MT |
25 | |
26 | build | |
27 | requires | |
28 | bison | |
29 | dejagnu | |
30 | flex | |
31 | gcc-c++ | |
e5e21531 | 32 | pakfire-builder >= 0.9.23-5 |
802ea3af MT |
33 | texinfo |
34 | zlib-devel | |
35 | end | |
36 | ||
37 | prepare_cmds | |
38 | mkdir -pv %{DIR_SRC}/binutils-build | |
39 | ||
40 | # Suppress the installation of an outdated standards.info file as a newer | |
41 | # one is installed later on in the Autoconf instructions: | |
42 | rm -fv etc/standards.info | |
43 | sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in | |
44 | ||
45 | sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in} | |
46 | end | |
47 | ||
bb86d46e | 48 | configure_options += \ |
f71c9576 MT |
49 | --build=%{DISTRO_BUILDTARGET} \ |
50 | --host=%{DISTRO_BUILDTARGET} \ | |
bb86d46e MT |
51 | --target=%{DISTRO_BUILDTARGET} \ |
52 | --disable-werror \ | |
f71c9576 MT |
53 | --disable-static \ |
54 | --enable-64-bit-bfd \ | |
55 | --enable-plugins \ | |
56 | --with-bugurl="http://bugzilla.ipfire.org/" | |
802ea3af MT |
57 | |
58 | build | |
68b0def9 MT |
59 | cd %{DIR_SRC}/binutils-build |
60 | ../%{thisapp}/configure \ | |
bb86d46e | 61 | %{configure_options} |
68b0def9 MT |
62 | |
63 | make tooldir=/usr %{PARALLELISMFLAGS} | |
802ea3af MT |
64 | end |
65 | ||
0c98d65a MT |
66 | test |
67 | cd %{DIR_SRC}/binutils-build | |
68 | make -k check </dev/null || : | |
69 | ||
70 | echo "==== RESULTS ====" | |
71 | cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum | |
72 | end | |
802ea3af MT |
73 | |
74 | install | |
0c98d65a MT |
75 | cd %{DIR_SRC}/binutils-build |
76 | make tooldir=/usr install DESTDIR=%{BUILDROOT} | |
802ea3af MT |
77 | |
78 | cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include | |
d5518e81 MT |
79 | |
80 | # Prevent packages from linking against libbfd and libopcodes, | |
81 | # because they change too often. | |
bb86d46e | 82 | rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so |
0c98d65a MT |
83 | |
84 | # Remove Windows/Novell only man pages. | |
85 | rm -vf %{BUILDROOT}%{mandir}/man1/{dlltool,nlmconv,windres}* | |
802ea3af | 86 | end |
68b0def9 MT |
87 | |
88 | # Keep static version of libiberty. | |
89 | keep_libraries | |
bb86d46e | 90 | %{libdir}/libiberty.a |
68b0def9 | 91 | end |
802ea3af MT |
92 | end |
93 | ||
94 | packages | |
95 | package %{name} | |
e5e21531 MT |
96 | provides |
97 | bundled(libiberty) | |
98 | end | |
99 | end | |
974699b4 MT |
100 | |
101 | package %{name}-devel | |
102 | template DEVEL | |
f45434a7 | 103 | |
e5e21531 MT |
104 | requires |
105 | binutils = %{thisver} | |
106 | zlib-devel | |
107 | end | |
108 | ||
f45434a7 MT |
109 | # Don't package libbfd and libopcodes in the -devel package. |
110 | files | |
111 | /usr/include | |
56c5b2e4 | 112 | %{libdir}/*.a |
f45434a7 | 113 | end |
802ea3af | 114 | end |
1f9bc2f0 MT |
115 | |
116 | package %{name}-debuginfo | |
117 | template DEBUGINFO | |
118 | end | |
802ea3af | 119 | end |