OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # |
2 | # Copyright (C) 2006-2008 OpenWrt.org |
3 | # |
4 | # This is free software, licensed under the GNU General Public License v2. |
5 | # See /LICENSE for more information. |
6 | # |
7 | |
8 | include $(TOPDIR)/rules.mk |
9 | |
10 | PKG_NAME:=kbd |
11 | PKG_RELEASE:=1 |
12 | PKG_VERSION:=1.15.1 |
13 | PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd |
14 | PKG_SOURCE:=kbd-$(PKG_VERSION).tar.gz |
15 | |
16 | include $(INCLUDE_DIR)/package.mk |
17 | |
18 | define Package/kbd/Default |
19 | SECTION:=utils |
20 | CATEGORY:=Utilities |
21 | URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd |
22 | endef |
23 | |
24 | define Package/kbd |
25 | $(call Package/kbd/Default) |
26 | TITLE:=Keyboard and console utilities for Linux |
27 | endef |
28 | |
29 | define Package/kbd-console-fonts |
30 | $(call Package/kbd/Default) |
31 | TITLE:=Console fonts for Linux |
32 | endef |
33 | |
34 | define Package/kbd-console-maps |
35 | $(call Package/kbd/Default) |
36 | TITLE:=Console maps for Linux |
37 | endef |
38 | |
39 | define Package/kbd/description |
40 | Keyboard and console utilities for Linux |
41 | endef |
42 | |
43 | define Build/Configure |
44 | ( cd $(PKG_BUILD_DIR) ; aclocal; autoheader; automake; autoconf ) |
45 | $(call Build/Configure/Default, CFLAGS=-Wno-cast-align ) |
46 | endef |
47 | |
48 | define Package/kbd/install |
49 | $(INSTALL_DIR) $(1)/usr/bin |
50 | 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 \ |
51 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/bin;\ |
52 | done |
53 | endef |
54 | |
55 | define Package/kbd-console-fonts/install |
56 | $(INSTALL_DIR) $(1)/usr/share/kbd/consolefonts |
57 | $(CP) $(PKG_BUILD_DIR)/data/consolefonts/* $(1)/usr/share/kbd/consolefonts/ |
58 | endef |
59 | |
60 | define Package/kbd-console-maps/install |
61 | $(INSTALL_DIR) $(1)/usr/share/kbd/keymaps/i386/qwerty |
62 | $(INSTALL_DIR) $(1)/usr/share/kbd/keymaps/i386/include |
63 | $(CP) $(PKG_BUILD_DIR)/data/keymaps/i386/qwerty/* $(1)/usr/share/kbd/keymaps/i386/qwerty/ |
64 | $(CP) $(PKG_BUILD_DIR)/data/keymaps/i386/include/* $(1)/usr/share/kbd/keymaps/i386/include/ |
65 | endef |
66 | |
67 | $(eval $(call BuildPackage,kbd)) |
68 | $(eval $(call BuildPackage,kbd-console-fonts)) |
69 | $(eval $(call BuildPackage,kbd-console-maps)) |
70 |