]> git.ipfire.org Git - ipfire-3.x.git/blob - binutils/binutils.nm
Merge remote-tracking branch 'stevee/openvswitch-systemd'
[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.52.0.4
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
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 texinfo
33 zlib-devel
34 end
35
36 prepare_cmds
37 mkdir -pv %{DIR_SRC}/binutils-build
38
39 # Suppress the installation of an outdated standards.info file as a newer
40 # one is installed later on in the Autoconf instructions:
41 rm -fv etc/standards.info
42 sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in
43
44 sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in}
45 end
46
47 configure_options += \
48 --build=%{DISTRO_BUILDTARGET} \
49 --host=%{DISTRO_BUILDTARGET} \
50 --target=%{DISTRO_BUILDTARGET} \
51 --disable-werror \
52 --disable-static \
53 --enable-64-bit-bfd \
54 --enable-plugins \
55 --with-bugurl="http://bugzilla.ipfire.org/"
56
57 build
58 cd %{DIR_SRC}/binutils-build
59 ../%{thisapp}/configure \
60 %{configure_options}
61
62 make tooldir=/usr %{PARALLELISMFLAGS}
63 end
64
65 test
66 cd %{DIR_SRC}/binutils-build
67 make -k check </dev/null || :
68
69 echo "==== RESULTS ===="
70 cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum
71 end
72
73 install
74 cd %{DIR_SRC}/binutils-build
75 make tooldir=/usr install DESTDIR=%{BUILDROOT}
76
77 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
78
79 # Prevent packages from linking against libbfd and libopcodes,
80 # because they change too often.
81 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
82
83 # Remove Windows/Novell only man pages.
84 rm -vf %{BUILDROOT}%{mandir}/man1/{dlltool,nlmconv,windres}*
85 end
86
87 # Keep static version of libiberty.
88 keep_libraries
89 %{libdir}/libiberty.a
90 end
91 end
92
93 packages
94 package %{name}
95
96 package %{name}-devel
97 template DEVEL
98
99 # Don't package libbfd and libopcodes in the -devel package.
100 files
101 /usr/include
102 %{libdir}/*.a
103 end
104 end
105
106 package %{name}-debuginfo
107 template DEBUGINFO
108 end
109 end