1 ###############################################################################
2 # This file is part of the IPCop Firewall. #
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. #
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. #
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 #
18 # Makefiles are based on LFSMake, which is #
19 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com> #
22 # ??-12-2003 Mark Wormgoor < mark@wormgoor.com> #
23 # - Modified Makefile for IPCop build #
25 # $Id: kbd,v 1.5.2.10 2005/10/03 22:49:44 gespinasse Exp $
27 ###############################################################################
29 ###############################################################################
31 ###############################################################################
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
44 TARGET = $(DIR_INFO)/$(THISAPP)
47 ###############################################################################
49 ###############################################################################
50 objects = $(DL_FILE) $(THISAPP)-more-programs-1.patch
52 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
53 $(THISAPP)-more-programs-1.patch = $(URL_LFS)/kbd/$(THISAPP)-more_programs-1.patch
55 $(DL_FILE)_MD5 = 069d1175b4891343b107a8ac2b4a39f6
56 $(THISAPP)-more-programs-1.patch_MD5 = dc70180a6bc0afa2b741cd38e3cc2e18
60 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
62 download :$(patsubst %,$(DIR_DL)/%,$(objects))
64 md5 : $(subst %,%_MD5,$(objects))
66 ###############################################################################
67 # Downloading, checking, md5sum
68 ###############################################################################
70 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
73 $(patsubst %,$(DIR_DL)/%,$(objects)) :
76 $(subst %,%_MD5,$(objects)) :
79 ###############################################################################
80 # Installation Details
81 ###############################################################################
83 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
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
101 cd $(DIR_APP) && ./configure --disable-nls
102 cd $(DIR_APP) && make
103 cd $(DIR_APP) && make install