]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - binutils/binutils.nm
binutils: Make package work on x86_64.
[people/ms/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
bb86d46e 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
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
MT
44 configure_options += \
45 --target=%{DISTRO_BUILDTARGET} \
46 --disable-werror \
47 --disable-static
802ea3af
MT
48
49 build
68b0def9
MT
50 cd %{DIR_SRC}/binutils-build
51 ../%{thisapp}/configure \
bb86d46e 52 %{configure_options}
68b0def9
MT
53
54 make tooldir=/usr %{PARALLELISMFLAGS}
802ea3af
MT
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
d5518e81
MT
67
68 # Prevent packages from linking against libbfd and libopcodes,
69 # because they change too often.
bb86d46e 70 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
802ea3af 71 end
68b0def9
MT
72
73 # Keep static version of libiberty.
74 keep_libraries
bb86d46e 75 %{libdir}/libiberty.a
68b0def9 76 end
802ea3af
MT
77end
78
79packages
80 package %{name}
974699b4
MT
81
82 package %{name}-devel
83 template DEVEL
f45434a7
MT
84
85 # Don't package libbfd and libopcodes in the -devel package.
86 files
87 /usr/include
88 /usr/lib/*.a
f45434a7 89 end
802ea3af 90 end
1f9bc2f0
MT
91
92 package %{name}-debuginfo
93 template DEBUGINFO
94 end
802ea3af 95end