Root/kbd/Makefile

Source at commit be138dd43d85dc81e4cec860366e9d97d45c25ed created 1 year 9 months ago.
By Xiangfu Liu, add console fonts package
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=kbd
11PKG_RELEASE:=1
12PKG_VERSION:=1.15.1
13PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd
14PKG_SOURCE:=kbd-$(PKG_VERSION).tar.gz
15
16include $(INCLUDE_DIR)/package.mk
17
18define Package/kbd/Default
19  SECTION:=utils
20  CATEGORY:=Utilities
21  URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd
22endef
23
24define Package/kbd
25  $(call Package/kbd/Default)
26  TITLE:=Keyboard and console utilities for Linux
27endef
28
29define Package/kbd-console-fonts
30  $(call Package/kbd/Default)
31  TITLE:=Console fonts for Linux
32endef
33
34define Package/kbd/description
35  Keyboard and console utilities for Linux
36endef
37
38define Build/Configure
39    ( cd $(PKG_BUILD_DIR) ; aclocal; autoheader; automake; autoconf )
40    $(call Build/Configure/Default, CFLAGS=-Wno-cast-align )
41endef
42
43define Package/kbd/install
44    $(INSTALL_DIR) $(1)/usr/bin
45    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 \
46            $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/bin;\
47    done
48endef
49
50define Package/kbd-console-fonts/install
51    $(INSTALL_DIR) $(1)/usr/share/consolefonts
52    $(CP) $(PKG_BUILD_DIR)/data/consolefonts/* $(1)/usr/share/consolefonts/
53endef
54
55$(eval $(call BuildPackage,kbd))
56$(eval $(call BuildPackage,kbd-console-fonts))
57

Archive Download this file



interactive