]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - binutils/binutils.nm
Merge remote-tracking branch 'stevee/unicode-ucd'
[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
0f64d6ce 7version = 2.22
f71c9576 8release = 3
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
21source_dl = http://ftp.gnu.org/gnu/binutils/
22
23build
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
bb86d46e 44 configure_options += \
f71c9576
MT
45 --build=%{DISTRO_BUILDTARGET} \
46 --host=%{DISTRO_BUILDTARGET} \
bb86d46e
MT
47 --target=%{DISTRO_BUILDTARGET} \
48 --disable-werror \
f71c9576
MT
49 --disable-static \
50 --enable-64-bit-bfd \
51 --enable-plugins \
52 --with-bugurl="http://bugzilla.ipfire.org/"
802ea3af
MT
53
54 build
68b0def9
MT
55 cd %{DIR_SRC}/binutils-build
56 ../%{thisapp}/configure \
bb86d46e 57 %{configure_options}
68b0def9
MT
58
59 make tooldir=/usr %{PARALLELISMFLAGS}
802ea3af
MT
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
d5518e81
MT
72
73 # Prevent packages from linking against libbfd and libopcodes,
74 # because they change too often.
bb86d46e 75 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
802ea3af 76 end
68b0def9
MT
77
78 # Keep static version of libiberty.
79 keep_libraries
bb86d46e 80 %{libdir}/libiberty.a
68b0def9 81 end
802ea3af
MT
82end
83
84packages
85 package %{name}
974699b4
MT
86
87 package %{name}-devel
88 template DEVEL
f45434a7
MT
89
90 # Don't package libbfd and libopcodes in the -devel package.
91 files
92 /usr/include
56c5b2e4 93 %{libdir}/*.a
f45434a7 94 end
802ea3af 95 end
1f9bc2f0
MT
96
97 package %{name}-debuginfo
98 template DEBUGINFO
99 end
802ea3af 100end