]> 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 into docbook
[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.21.51.0.8
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
45 build
46 BINUTILS_TARGET_PLATFORM=$(echo "%{DISTRO_MACHINE}" | sed -e "s/-gnu//")
47
48 cd %{DIR_SRC}/binutils-build && \
49 ../%{thisapp}/configure \
50 --host=${BINUTILS_TARGET_PLATFORM} \
51 --build=${BINUTILS_TARGET_PLATFORM} \
52 --target=${BINUTILS_TARGET_PLATFORM} \
53 --prefix=/usr \
54 --mandir=/usr/share/man \
55 --enable-shared \
56 --disable-nls \
57 --disable-werror \
58 --disable-static
59
60 cd %{DIR_SRC}/binutils-build && make tooldir=/usr %{PARALLELISMFLAGS}
61 end
62
63 #def test
64 # # Apply a sed substitution to prevent a testsuite error:
65 # sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c
66 # cd %{DIR_SRC}/binutils-build && make check
67 #end
68
69 install
70 cd %{DIR_SRC}/binutils-build && make tooldir=/usr install DESTDIR=%{BUILDROOT}
71
72 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
73 end
74 end
75
76 packages
77 package %{name}
78
79 package %{name}-devel
80 template DEVEL
81 end
82 end