2010-08-02 10:48:07 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2012-03-14 12:11:15 +02:00
|
|
|
# Copyright (C) 2012 Xiangfu <xiangfu@openmobilefree.net>
|
2010-08-02 10:48:07 +03:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=kbd
|
2012-03-14 12:11:15 +02:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_VERSION:=1.15.3
|
2012-03-25 14:00:12 +03:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.altlinux.org/pub/people/legion/kbd/
|
2010-08-02 10:48:07 +03:00
|
|
|
PKG_SOURCE:=kbd-$(PKG_VERSION).tar.gz
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-08-17 13:11:16 +03:00
|
|
|
define Package/kbd/Default
|
2012-03-14 12:11:15 +02:00
|
|
|
MAINTAINER:="Xiangfu Liu" <xiangfu@openmobilefree.net>
|
2010-08-02 10:48:07 +03:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd
|
|
|
|
endef
|
|
|
|
|
2010-08-17 13:11:16 +03:00
|
|
|
define Package/kbd
|
|
|
|
$(call Package/kbd/Default)
|
|
|
|
TITLE:=Keyboard and console utilities for Linux
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kbd-console-fonts
|
|
|
|
$(call Package/kbd/Default)
|
|
|
|
TITLE:=Console fonts for Linux
|
|
|
|
endef
|
|
|
|
|
2010-09-12 11:59:34 +03:00
|
|
|
define Package/kbd-console-maps
|
|
|
|
$(call Package/kbd/Default)
|
|
|
|
TITLE:=Console maps for Linux
|
|
|
|
endef
|
|
|
|
|
2010-08-02 10:48:07 +03:00
|
|
|
define Package/kbd/description
|
|
|
|
Keyboard and console utilities for Linux
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
( cd $(PKG_BUILD_DIR) ; aclocal; autoheader; automake; autoconf )
|
|
|
|
$(call Build/Configure/Default, CFLAGS=-Wno-cast-align )
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kbd/install
|
2010-08-12 11:24:54 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
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 \
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/bin;\
|
2010-08-02 10:48:07 +03:00
|
|
|
done
|
|
|
|
endef
|
|
|
|
|
2010-08-17 13:11:16 +03:00
|
|
|
define Package/kbd-console-fonts/install
|
2010-09-12 11:59:34 +03:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/kbd/consolefonts
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/data/consolefonts/* $(1)/usr/share/kbd/consolefonts/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/kbd-console-maps/install
|
2011-03-04 05:23:11 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/kbd/keymaps/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/data/keymaps/i386/ $(1)/usr/share/kbd/keymaps/
|
2010-08-17 13:11:16 +03:00
|
|
|
endef
|
|
|
|
|
2010-08-02 10:48:07 +03:00
|
|
|
$(eval $(call BuildPackage,kbd))
|
2010-08-17 13:11:16 +03:00
|
|
|
$(eval $(call BuildPackage,kbd-console-fonts))
|
2010-09-12 11:59:34 +03:00
|
|
|
$(eval $(call BuildPackage,kbd-console-maps))
|