]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - binutils/binutils.nm
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-3.x
[people/ms/ipfire-3.x.git] / binutils / binutils.nm
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.22
8 release = 3
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 = 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 configure_options += \
45 --build=%{DISTRO_BUILDTARGET} \
46 --host=%{DISTRO_BUILDTARGET} \
47 --target=%{DISTRO_BUILDTARGET} \
48 --disable-werror \
49 --disable-static \
50 --enable-64-bit-bfd \
51 --enable-plugins \
52 --with-bugurl="http://bugzilla.ipfire.org/"
53
54 build
55 cd %{DIR_SRC}/binutils-build
56 ../%{thisapp}/configure \
57 %{configure_options}
58
59 make tooldir=/usr %{PARALLELISMFLAGS}
60 end
61
62 #def test
63 # # Apply a sed substitution to prevent a testsuite error:
64 # sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c
65 # cd %{DIR_SRC}/binutils-build && make check
66 #end
67
68 install
69 cd %{DIR_SRC}/binutils-build && make tooldir=/usr install DESTDIR=%{BUILDROOT}
70
71 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
72
73 # Prevent packages from linking against libbfd and libopcodes,
74 # because they change too often.
75 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
76 end
77
78 # Keep static version of libiberty.
79 keep_libraries
80 %{libdir}/libiberty.a
81 end
82 end
83
84 packages
85 package %{name}
86
87 package %{name}-devel
88 template DEVEL
89
90 # Don't package libbfd and libopcodes in the -devel package.
91 files
92 /usr/include
93 %{libdir}/*.a
94 end
95 end
96
97 package %{name}-debuginfo
98 template DEBUGINFO
99 end
100 end