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