summaryrefslogtreecommitdiff
path: root/kbd
diff options
context:
space:
mode:
authorDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
committerDavid Kühling <dvdkhlng@gmx.de>2011-01-02 15:19:00 +0100
commit9aaeb4623d3ff5746e665bc17914eefd292b7dcd (patch)
tree370db60ffdc2ef840b7d1124d5a392f93bba3c9d /kbd
downloadqipackages-fork-9aaeb4623d3ff5746e665bc17914eefd292b7dcd.tar.gz
New OpenWrt package for GNU Octave. Experimental/probably still broken.grafted
Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days.
Diffstat (limited to 'kbd')
-rw-r--r--kbd/Makefile69
1 files changed, 69 insertions, 0 deletions
diff --git a/kbd/Makefile b/kbd/Makefile
new file mode 100644
index 0000000..734a275
--- /dev/null
+++ b/kbd/Makefile
@@ -0,0 +1,69 @@
+#
+# 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-console-maps
+ $(call Package/kbd/Default)
+ TITLE:=Console maps 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/kbd/consolefonts
+ $(CP) $(PKG_BUILD_DIR)/data/consolefonts/* $(1)/usr/share/kbd/consolefonts/
+endef
+
+define Package/kbd-console-maps/install
+ $(INSTALL_DIR) $(1)/usr/share/kbd/keymaps/i386/qwerty
+ $(INSTALL_DIR) $(1)/usr/share/kbd/keymaps/i386/include
+ $(CP) $(PKG_BUILD_DIR)/data/keymaps/i386/qwerty/* $(1)/usr/share/kbd/keymaps/i386/qwerty/
+ $(CP) $(PKG_BUILD_DIR)/data/keymaps/i386/include/* $(1)/usr/share/kbd/keymaps/i386/include/
+endef
+
+$(eval $(call BuildPackage,kbd))
+$(eval $(call BuildPackage,kbd-console-fonts))
+$(eval $(call BuildPackage,kbd-console-maps))