1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 23:03:20 +02:00
openwrt-packages/kbd/Makefile
Xiangfu Liu be138dd43d add console fonts package
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
2010-08-17 18:11:16 +08:00

57 lines
1.5 KiB
Makefile

#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=kbd
PKG_RELEASE:=1
PKG_VERSION:=1.15.1
PKG_SOURCE_URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd
PKG_SOURCE:=kbd-$(PKG_VERSION).tar.gz
include $(INCLUDE_DIR)/package.mk
define Package/kbd/Default
SECTION:=utils
CATEGORY:=Utilities
URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd
endef
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
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
$(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;\
done
endef
define Package/kbd-console-fonts/install
$(INSTALL_DIR) $(1)/usr/share/consolefonts
$(CP) $(PKG_BUILD_DIR)/data/consolefonts/* $(1)/usr/share/consolefonts/
endef
$(eval $(call BuildPackage,kbd))
$(eval $(call BuildPackage,kbd-console-fonts))