bump Linux 3.18 trunk revision to 47027; bump Linux 3.18 kernel version to 3.18.21
[ps3openwrt_patches.git] / kbd-package.patch
blob22c2f0fa36cce225f752bbaad632623f7676084a
1 --- /dev/null 2012-02-02 17:35:50.911257377 +0100
2 +++ package/kbd/Makefile 2012-02-02 17:41:15.956284223 +0100
3 @@ -0,0 +1,68 @@
4 +#
5 +# Copyright (C) 2006-2008 OpenWrt.org
6 +#
7 +# This is free software, licensed under the GNU General Public License v2.
8 +# See /LICENSE for more information.
9 +#
11 +include $(TOPDIR)/rules.mk
13 +PKG_NAME:=kbd
14 +PKG_RELEASE:=2
15 +PKG_VERSION:=1.15.3
16 +PKG_SOURCE_URL:=http://ftp.cc.uoc.gr/mirrors/ftp.kernel.org/pub/linux/utils/kbd/
17 +PKG_SOURCE:=kbd-$(PKG_VERSION).tar.gz
19 +include $(INCLUDE_DIR)/package.mk
21 +define Package/kbd/Default
22 + SECTION:=utils
23 + CATEGORY:=Utilities
24 + URL:=ftp://ftp.kernel.org/pub/linux/utils/kbd
25 +endef
27 +define Package/kbd
28 + $(call Package/kbd/Default)
29 + TITLE:=Keyboard and console utilities for Linux
30 +endef
32 +define Package/kbd-console-fonts
33 + $(call Package/kbd/Default)
34 + TITLE:=Console fonts for Linux
35 +endef
37 +define Package/kbd-console-maps
38 + $(call Package/kbd/Default)
39 + TITLE:=Console maps for Linux
40 +endef
42 +define Package/kbd/description
43 + Keyboard and console utilities for Linux
44 +endef
46 +define Build/Configure
47 + ( cd $(PKG_BUILD_DIR) ; aclocal; autoheader; automake; autoconf )
48 + $(call Build/Configure/Default, CFLAGS=-Wno-cast-align )
49 +endef
51 +define Package/kbd/install
52 + $(INSTALL_DIR) $(1)/usr/bin
53 + 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 \
54 + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$$$$f $(1)/usr/bin;\
55 + done
56 +endef
58 +define Package/kbd-console-fonts/install
59 + $(INSTALL_DIR) $(1)/usr/share/kbd/consolefonts
60 + $(CP) $(PKG_BUILD_DIR)/data/consolefonts/* $(1)/usr/share/kbd/consolefonts/
61 +endef
63 +define Package/kbd-console-maps/install
64 + $(INSTALL_DIR) $(1)/usr/share/kbd/keymaps/
65 + $(CP) $(PKG_BUILD_DIR)/data/keymaps/i386/ $(1)/usr/share/kbd/keymaps/
66 + $(CP) $(PKG_BUILD_DIR)/data/keymaps/include/ $(1)/usr/share/kbd/keymaps/
67 +endef
69 +$(eval $(call BuildPackage,kbd))
70 +$(eval $(call BuildPackage,kbd-console-fonts))
71 +$(eval $(call BuildPackage,kbd-console-maps))