]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/kbd
HinzugefĆ¼gt:
[ipfire-2.x.git] / lfs / kbd
1 ###############################################################################
2 # This file is part of the IPCop Firewall. #
3 # #
4 # IPCop is free software; you can redistribute it and/or modify #
5 # it under the terms of the GNU General Public License as published by #
6 # the Free Software Foundation; either version 2 of the License, or #
7 # (at your option) any later version. #
8 # #
9 # IPCop is distributed in the hope that it will be useful, #
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
12 # GNU General Public License for more details. #
13 # #
14 # You should have received a copy of the GNU General Public License #
15 # along with IPCop; if not, write to the Free Software #
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA #
17 # #
18 # Makefiles are based on LFSMake, which is #
19 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
20 # #
21 # Modifications by: #
22 # ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
23 # - Modified Makefile for IPCop build #
24 # #
25 # $Id: kbd,v 1.5.2.10 2005/10/03 22:49:44 gespinasse Exp $
26 # #
27 ###############################################################################
28
29 ###############################################################################
30 # Definitions
31 ###############################################################################
32
33 include Config
34
35 VER = 1.12
36
37 THISAPP = kbd-$(VER)
38 DL_FILE = $(THISAPP).tar.bz2
39 DL_FROM = $(URL_KERNEL)/linux/utils/kbd
40 DIR_APP = $(DIR_SRC)/$(THISAPP)
41 ifeq "$(LFS_PASS)" "install"
42 TARGET = $(DIR_INFO)/$(THISAPP)-install
43 else
44 TARGET = $(DIR_INFO)/$(THISAPP)
45 endif
46
47 ###############################################################################
48 # Top-level Rules
49 ###############################################################################
50 objects = $(DL_FILE) $(THISAPP)-more-programs-1.patch
51
52 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
53 $(THISAPP)-more-programs-1.patch = $(URL_LFS)/kbd/$(THISAPP)-more_programs-1.patch
54
55 $(DL_FILE)_MD5 = 069d1175b4891343b107a8ac2b4a39f6
56 $(THISAPP)-more-programs-1.patch_MD5 = dc70180a6bc0afa2b741cd38e3cc2e18
57
58 install : $(TARGET)
59
60 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
61
62 download :$(patsubst %,$(DIR_DL)/%,$(objects))
63
64 md5 : $(subst %,%_MD5,$(objects))
65
66 ###############################################################################
67 # Downloading, checking, md5sum
68 ###############################################################################
69
70 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
71 @$(CHECK)
72
73 $(patsubst %,$(DIR_DL)/%,$(objects)) :
74 @$(LOAD)
75
76 $(subst %,%_MD5,$(objects)) :
77 @$(MD5)
78
79 ###############################################################################
80 # Installation Details
81 ###############################################################################
82
83 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
84 @$(PREBUILD)
85 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
86 cd $(DIR_APP) && patch -Np1 < $(DIR_DL)/$(THISAPP)-more-programs-1.patch
87 # copy patched Vietnamese font
88 cd $(DIR_APP) && cp -f $(DIR_SRC)/src/patches/viscii10-8x16-new.psfu data/consolefonts/viscii10-8x16.psfu
89 ifeq "$(LFS_PASS)" "install"
90 cd $(DIR_APP) && CFLAGS="-Os -fomit-frame-pointer" CC=/usr/bin/gcc ./configure --disable-nls
91 cd $(DIR_APP)/src && make CFLAGS="-Os -fomit-frame-pointer" DATA_DIR=/lib/kbd BINDIR=/bin setfont kbd_mode dumpkeys loadkeys loadunimap showconsolefont
92 cd $(DIR_APP)/src && install -m 0755 setfont loadunimap kbd_mode dumpkeys loadkeys showconsolefont unicode_start unicode_stop /install/initrd/bin
93 mkdir -p /install/initrd/lib/kbd/consolefonts
94 cd $(DIR_APP) && install -m 0644 data/consolefonts/lat0-16.psfu /install/initrd/lib/kbd/consolefonts
95 cd $(DIR_APP) && install -m 0644 data/consolefonts/lat1-16.psfu /install/initrd/lib/kbd/consolefonts
96 cd $(DIR_APP) && install -m 0644 data/consolefonts/lat2-16.psfu /install/initrd/lib/kbd/consolefonts
97 cd $(DIR_APP) && install -m 0644 data/consolefonts/lat5-16.psfu /install/initrd/lib/kbd/consolefonts
98 cd $(DIR_APP) && install -m 0644 data/consolefonts/iso07u-16.psfu /install/initrd/lib/kbd/consolefonts
99 cd $(DIR_APP) && install -m 0644 data/consolefonts/viscii10-8x16.psfu /install/initrd/lib/kbd/consolefonts
100 else
101 cd $(DIR_APP) && ./configure --disable-nls
102 cd $(DIR_APP) && make
103 cd $(DIR_APP) && make install
104 endif
105 @rm -rf $(DIR_APP)
106 @$(POSTBUILD)