]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - binutils/binutils.nm
Merge remote-tracking branch 'stevee/openvswitch-systemd'
[people/amarx/ipfire-3.x.git] / binutils / binutils.nm
CommitLineData
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 6name = binutils
2d6fd519 7version = 2.22.52.0.4
0f549683 8release = 2
166a6c21 9
802ea3af
MT
10maintainer = Michael Tremer <michael.tremer@ipfire.org>
11groups = Development/Tools
12url = http://www.gnu.org/software/binutils/
13license = GPLv2+
14summary = The GNU Binutils are a collection of binary tools.
166a6c21 15
802ea3af
MT
16description
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
19end
20
0c98d65a
MT
21source_dl
22 http://ftp.gnu.org/gnu/binutils/
23 ftp://ftp.kernel.org/pub/linux/devel/binutils
24end
802ea3af
MT
25
26build
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
bb86d46e 47 configure_options += \
f71c9576
MT
48 --build=%{DISTRO_BUILDTARGET} \
49 --host=%{DISTRO_BUILDTARGET} \
bb86d46e
MT
50 --target=%{DISTRO_BUILDTARGET} \
51 --disable-werror \
f71c9576
MT
52 --disable-static \
53 --enable-64-bit-bfd \
54 --enable-plugins \
55 --with-bugurl="http://bugzilla.ipfire.org/"
802ea3af
MT
56
57 build
68b0def9
MT
58 cd %{DIR_SRC}/binutils-build
59 ../%{thisapp}/configure \
bb86d46e 60 %{configure_options}
68b0def9
MT
61
62 make tooldir=/usr %{PARALLELISMFLAGS}
802ea3af
MT
63 end
64
0c98d65a
MT
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
802ea3af
MT
72
73 install
0c98d65a
MT
74 cd %{DIR_SRC}/binutils-build
75 make tooldir=/usr install DESTDIR=%{BUILDROOT}
802ea3af
MT
76
77 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
d5518e81
MT
78
79 # Prevent packages from linking against libbfd and libopcodes,
80 # because they change too often.
bb86d46e 81 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
0c98d65a
MT
82
83 # Remove Windows/Novell only man pages.
84 rm -vf %{BUILDROOT}%{mandir}/man1/{dlltool,nlmconv,windres}*
802ea3af 85 end
68b0def9
MT
86
87 # Keep static version of libiberty.
88 keep_libraries
bb86d46e 89 %{libdir}/libiberty.a
68b0def9 90 end
802ea3af
MT
91end
92
93packages
94 package %{name}
974699b4
MT
95
96 package %{name}-devel
97 template DEVEL
f45434a7
MT
98
99 # Don't package libbfd and libopcodes in the -devel package.
100 files
101 /usr/include
56c5b2e4 102 %{libdir}/*.a
f45434a7 103 end
802ea3af 104 end
1f9bc2f0
MT
105
106 package %{name}-debuginfo
107 template DEBUGINFO
108 end
802ea3af 109end