]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = binutils | |
7 | version = 2.23.52.0.1 | |
8 | release = 1 | |
9 | ||
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. | |
15 | ||
16 | description | |
17 | The GNU Binary Utilities, or binutils, is a collection of programming | |
18 | tools for the manipulation of object code in various object file formats. | |
19 | end | |
20 | ||
21 | source_dl | |
22 | http://ftp.gnu.org/gnu/binutils/ | |
23 | ftp://ftp.kernel.org/pub/linux/devel/binutils | |
24 | end | |
25 | ||
26 | build | |
27 | requires | |
28 | bison | |
29 | dejagnu | |
30 | flex | |
31 | gcc-c++ | |
32 | pakfire-builder >= 0.9.23-5 | |
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 | ||
48 | configure_options += \ | |
49 | --build=%{DISTRO_BUILDTARGET} \ | |
50 | --host=%{DISTRO_BUILDTARGET} \ | |
51 | --target=%{DISTRO_BUILDTARGET} \ | |
52 | --disable-werror \ | |
53 | --disable-static \ | |
54 | --enable-64-bit-bfd \ | |
55 | --enable-plugins \ | |
56 | --with-bugurl="http://bugzilla.ipfire.org/" | |
57 | ||
58 | build | |
59 | cd %{DIR_SRC}/binutils-build | |
60 | ../%{thisapp}/configure \ | |
61 | %{configure_options} | |
62 | ||
63 | make tooldir=/usr %{PARALLELISMFLAGS} | |
64 | end | |
65 | ||
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 | |
73 | ||
74 | install | |
75 | cd %{DIR_SRC}/binutils-build | |
76 | make tooldir=/usr install DESTDIR=%{BUILDROOT} | |
77 | ||
78 | cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include | |
79 | ||
80 | # Prevent packages from linking against libbfd and libopcodes, | |
81 | # because they change too often. | |
82 | rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so | |
83 | ||
84 | # Remove Windows/Novell only man pages. | |
85 | rm -vf %{BUILDROOT}%{mandir}/man1/{dlltool,nlmconv,windres}* | |
86 | end | |
87 | ||
88 | # Keep static version of libiberty. | |
89 | keep_libraries | |
90 | %{libdir}/libiberty.a | |
91 | end | |
92 | end | |
93 | ||
94 | packages | |
95 | package %{name} | |
96 | provides | |
97 | bundled(libiberty) | |
98 | end | |
99 | end | |
100 | ||
101 | package %{name}-devel | |
102 | template DEVEL | |
103 | ||
104 | requires | |
105 | binutils = %{thisver} | |
106 | zlib-devel | |
107 | end | |
108 | ||
109 | # Don't package libbfd and libopcodes in the -devel package. | |
110 | files | |
111 | /usr/include | |
112 | %{libdir}/*.a | |
113 | end | |
114 | end | |
115 | ||
116 | package %{name}-debuginfo | |
117 | template DEBUGINFO | |
118 | end | |
119 | end |