]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/binutils/binutils.nm
avahi: Update to 0.6.30.
[people/ms/ipfire-3.x.git] / pkgs / binutils / binutils.nm
CommitLineData
166a6c21
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
a7c97434 25include $(PKGROOT)/Include
166a6c21
MT
26
27PKG_NAME = binutils
46a22b42
MT
28PKG_VER = 2.21.51.0.8
29PKG_REL = 1
166a6c21
MT
30
31PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
bb7d617c 32PKG_GROUPS = Development/Tools
166a6c21
MT
33PKG_URL = http://www.gnu.org/software/binutils/
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = The GNU Binutils are a collection of binary tools.
36
37define PKG_DESCRIPTION
38 The GNU Binary Utilities, or binutils, is a collection of programming \
39 tools for the manipulation of object code in various object file formats.
40endef
41
46a22b42 42PKG_BUILD_DEPS+= bison dejagnu flex gcc-c++ texinfo zlib-devel
166a6c21 43
46a22b42 44PKG_TARBALL += $(THISAPP).tar.gz
166a6c21 45
17c0ee8a 46define STAGE_PREPARE_CMDS
166a6c21 47 -mkdir -pv $(DIR_SRC)/binutils-build
fba656ca
MT
48
49 # Suppress the installation of an outdated standards.info file as a newer
50 # one is installed later on in the Autoconf instructions:
51 cd $(DIR_APP) && rm -fv etc/standards.info
52 cd $(DIR_APP) && sed -e '/^INFO/s/standards.info //' -i etc/Makefile.in
46a22b42
MT
53
54 cd $(DIR_APP) && sed -i -e 's/%''{release}/$(PKG_RELEASE)/g' bfd/Makefile{.am,.in}
17c0ee8a 55endef
166a6c21 56
4d553b0a
MT
57BINUTILS_TARGET_PLATFORM = $(subst -gnu,,$(DISTRO_MACHINE))
58
17c0ee8a 59define STAGE_BUILD
166a6c21 60 cd $(DIR_SRC)/binutils-build && \
166a6c21 61 ../$(THISAPP)/configure \
4d553b0a
MT
62 --host=$(BINUTILS_TARGET_PLATFORM) \
63 --build=$(BINUTILS_TARGET_PLATFORM) \
64 --target=$(BINUTILS_TARGET_PLATFORM) \
166a6c21 65 --prefix=/usr \
daaaf465 66 --mandir=/usr/share/man \
166a6c21
MT
67 --enable-shared \
68 --disable-nls \
69 --disable-werror \
70 --disable-static
71
72 cd $(DIR_SRC)/binutils-build && make tooldir=/usr $(PARALLELISMFLAGS)
17c0ee8a 73endef
166a6c21 74
54cddc72 75#define STAGE_TEST
fba656ca 76 # Apply a sed substitution to prevent a testsuite error:
54cddc72
SS
77 #cd $(DIR_APP) && sed -i 's/getline/get_line/' libiberty/testsuite/test-demangle.c
78 #cd $(DIR_SRC)/binutils-build && make check
79#endef
fba656ca 80
17c0ee8a 81define STAGE_INSTALL
166a6c21
MT
82 cd $(DIR_SRC)/binutils-build && make tooldir=/usr install DESTDIR=$(BUILDROOT)
83
69b4aebf 84 cp -fv $(DIR_APP)/include/libiberty.h $(BUILDROOT)/usr/include
17c0ee8a 85endef