]> git.ipfire.org Git - ipfire-3.x.git/blame - pkgs/grub/grub.nm
avahi: Update to 0.6.30.
[ipfire-3.x.git] / pkgs / grub / grub.nm
CommitLineData
c36e4789
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
25include $(PKGROOT)/Include
26
27PKG_NAME = grub
ae1ca48d 28PKG_VER = 1.98
dcc3c9bd 29PKG_REL = 6
c36e4789
MT
30
31PKG_MAINTAINER =
b42a752b 32PKG_GROUPS = Base System/Boot
c36e4789
MT
33PKG_URL = http://www.gnu.org/software/grub/
34PKG_LICENSE = GPLv2+
35PKG_SUMMARY = Grand Unified Boot Loader.
36
f718dadc 37PKG_BUILD_DEPS+= autoconf automake bison flex freetype-devel gettext \
b0be77df 38 ncurses-devel xorg-x11-fonts zlib-devel
0b58643f 39PKG_DEPS += gettext os-prober
c36e4789
MT
40
41define PKG_DESCRIPTION
42 GRUB (Grand Unified Boot Loader) is an experimental boot loader \
43 capable of booting into most free operating systems - Linux, FreeBSD, \
44 NetBSD, GNU Mach, and others as well as most commercial operating \
45 systems.
46endef
47
48PKG_TARBALL = $(THISAPP).tar.gz
49
812a6816 50QUALITY_AGENT_WHITELIST_NX = /usr/bin/*|/usr/sbin/*
c36e4789 51
812a6816 52CFLAGS += -fno-strict-aliasing
c36e4789 53
812a6816 54CONFIGURE_OPTIONS += \
9799562f
MT
55 --sysconfdir=/etc \
56 --with-platform=pc \
57 --enable-grub-emu
58
59define STAGE_PREPARE_CMDS
60 cd $(DIR_APP) && \
61 sed -e "s@ GNU/Linux\"@\"@" -i util/grub.d/10_linux.in
62endef
c36e4789
MT
63
64define STAGE_INSTALL
65 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
66
67 sed -e "s/pkgdatadir/pkglibdir/g" -i $(BUILDROOT)/usr/sbin/grub-install
b0be77df 68
bd2bcd39
SS
69 -mkdir -pv $(BUILDROOT)/boot/grub
70
71 # Install theme file
72 install -m 0744 $(DIR_SOURCE)/05_theme $(BUILDROOT)/etc/grub.d/
73
74 # Install splash background
75 install $(DIR_SOURCE)/splash.png $(BUILDROOT)/boot/grub
76
b0be77df
SS
77 # XXX - We will have to do this after the installation of the package by pakfire
78 # Generate grub compatible font for graphical boot menu
b0be77df
SS
79 # This only converts Latin-1, Latin Extended A+B, Arrows, Box and Block characters
80 $(BUILDROOT)/usr/bin/grub-mkfont --output=$(BUILDROOT)/boot/grub/unifont.pf2 \
81 --range=0x0000-0x0241,0x2190-0x21FF,0x2500-0x259f /usr/share/X11/fonts/misc/unifont.pcf.gz
c36e4789 82endef