1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = Development/Tools
12 url = http://www.gnu.org/software/binutils/
14 summary = The GNU Binutils are a collection of binary tools.
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.
22 http://ftp.gnu.org/gnu/binutils/
23 ftp://ftp.kernel.org/pub/linux/devel/binutils
32 pakfire-builder >= 0.9.23-5
38 mkdir -pv %{DIR_SRC}/binutils-build
40 # Suppress the installation of an outdated standards.info file as a newer
41 # one is installed later on in the Autoconf instructions:
42 rm -fv etc/standards.info
43 sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in
45 sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in}
48 configure_options += \
49 --build=%{DISTRO_BUILDTARGET} \
50 --host=%{DISTRO_BUILDTARGET} \
51 --target=%{DISTRO_BUILDTARGET} \
56 --with-bugurl="http://bugzilla.ipfire.org/"
59 cd %{DIR_SRC}/binutils-build
60 ../%{thisapp}/configure \
63 make tooldir=/usr %{PARALLELISMFLAGS}
67 cd %{DIR_SRC}/binutils-build
68 make -k check </dev/null || :
70 echo "==== RESULTS ===="
71 cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum
75 cd %{DIR_SRC}/binutils-build
76 make tooldir=/usr install DESTDIR=%{BUILDROOT}
78 cp -fv %{DIR_APP}/include/libiberty.h %{BUILDROOT}/usr/include
80 # Prevent packages from linking against libbfd and libopcodes,
81 # because they change too often.
82 rm -rfv %{BUILDROOT}%{libdir}/lib{bfd,opcodes}.so
84 # Remove Windows/Novell only man pages.
85 rm -vf %{BUILDROOT}%{mandir}/man1/{dlltool,nlmconv,windres}*
88 # Keep static version of libiberty.
101 package %{name}-devel
105 binutils = %{thisver}
109 # Don't package libbfd and libopcodes in the -devel package.
116 package %{name}-debuginfo