Root/kbd/Makefile

1#
2# Copyright (C) 2006-2008 OpenWrt.org
3# Copyright (C) 2012 Xiangfu <xiangfu@openmobilefree.net>
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=kbd
12PKG_RELEASE:=1
13PKG_VERSION:=1.15.3
14PKG_SOURCE_URL:=ftp://ftp.altlinux.org/pub/people/legion/kbd/
15PKG_SOURCE:=kbd-$(PKG_VERSION).tar.gz
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/kbd/Default
20  MAINTAINER:="Xiangfu Liu" <xiangfu@openmobilefree.net>
21  SECTION:=utils
22  CATEGORY:=Utilities
23  URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd
24endef
25
26define Package/kbd
27  $(call Package/kbd/Default)
28  TITLE:=Keyboard and console utilities for Linux
29endef
30
31define Package/kbd-console-fonts
32  $(call Package/kbd/Default)
33  TITLE:=Console fonts for Linux
34endef
35
36define Package/kbd-console-maps
37  $(call Package/kbd/Default)
38  TITLE:=Console maps for Linux
39endef
40
41define Package/kbd/description
42  Keyboard and console utilities for Linux
43endef
44
45define Build/Configure
46    ( cd $(PKG_BUILD_DIR) ; aclocal; autoheader; automake; autoconf )
47    $(call Build/Configure/Default, CFLAGS=-Wno-cast-align )
48endef
49
50define Package/kbd/install
51    $(INSTALL_DIR) $(1)/usr/bin
52    for f in setfont psfxtable setmetamode unicode_stop kbdrate loadkeys kbd_mode showconsolefont loadunimap unicode_start deallocvt openvt getkeycodes showkey setleds cad chvt mapscrn fgconsole setkeycodes dumpkeys; do \
53            $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/bin;\
54    done
55endef
56
57define Package/kbd-console-fonts/install
58    $(INSTALL_DIR) $(1)/usr/share/kbd/consolefonts
59    $(CP) $(PKG_BUILD_DIR)/data/consolefonts/* $(1)/usr/share/kbd/consolefonts/
60endef
61
62define Package/kbd-console-maps/install
63    $(INSTALL_DIR) $(1)/usr/share/kbd/keymaps/
64    $(CP) $(PKG_BUILD_DIR)/data/keymaps/i386/ $(1)/usr/share/kbd/keymaps/
65endef
66
67$(eval $(call BuildPackage,kbd))
68$(eval $(call BuildPackage,kbd-console-fonts))
69$(eval $(call BuildPackage,kbd-console-maps))
70

Archive Download this file



interactive