OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Commit Details
Date: | 2010-07-22 09:02:54 (13 years 8 months ago) |
---|---|
Author: | Xiangfu Liu |
Commit: | 52eafe1ce5529132d71e07ce7e3273b11a17e566 |
Message: | [new package] [setfont2] Set 32-bit color fonts. by Neil Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc> |
Files: |
setfont2/Makefile (1 diff) setfont2/files/setfont2.init (1 diff) |
Change Details
setfont2/Makefile | ||
---|---|---|
1 | # Copyright (C) 2008 OpenWrt.org | |
2 | # | |
3 | # This is free software, licensed under the GNU General Public License v2. | |
4 | # | |
5 | ||
6 | include $(TOPDIR)/rules.mk | |
7 | ||
8 | PKG_NAME:=setfont2 | |
9 | PKG_VERSION:=20100720 | |
10 | PKG_REV:=5c45736740e5e63439692615506078427913ea18 | |
11 | PKG_RELEASE:=1 | |
12 | ||
13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |
14 | PKG_SOURCE_URL:=git://projects.qi-hardware.com/setfont2.git | |
15 | PKG_SOURCE_PROTO:=git | |
16 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |
17 | PKG_SOURCE_VERSION:=$(PKG_REV) | |
18 | ||
19 | ||
20 | include $(INCLUDE_DIR)/package.mk | |
21 | ||
22 | define Package/setfont2 | |
23 | TITLE:=Set 32-bit color fonts with fbcon | |
24 | SECTION:=utils | |
25 | CATEGORY:=Utilities | |
26 | URL:=http://projects.qi-hardware.com/index.php/p/setfont2/ | |
27 | endef | |
28 | ||
29 | define Package/setfont2/description | |
30 | Setfont2 is a utility to set 32-bit fonts on the framebuffer console ( fbcon). Fonts with 32-bit glyphs can make use of SubLCD effects to make them easier to read than black and white fonts at the same point size | |
31 | endef | |
32 | ||
33 | define Build/Configure | |
34 | $(call Build/Configure/Default) | |
35 | ||
36 | endef | |
37 | define Package/setfont2/install | |
38 | $(INSTALL_DIR) \ | |
39 | $(1)/etc/init.d \ | |
40 | $(1)/usr/sbin \ | |
41 | $(1)/usr/share/setfont2 | |
42 | ||
43 | $(INSTALL_BIN) \ | |
44 | $(PKG_BUILD_DIR)/setfont2 \ | |
45 | $(1)/usr/sbin/ | |
46 | ||
47 | $(INSTALL_DATA) \ | |
48 | $(PKG_BUILD_DIR)/fonts/un-fuzzy-6x10-font.pnm \ | |
49 | $(PKG_BUILD_DIR)/fonts/un-fuzzy-4x8-font.pnm \ | |
50 | $(1)/usr/share/setfont2/ | |
51 | ||
52 | $(INSTALL_BIN) \ | |
53 | ./files/$(PKG_NAME).init \ | |
54 | $(1)/etc/init.d/$(PKG_NAME) | |
55 | endef | |
56 | ||
57 | $(eval $(call BuildPackage,setfont2)) |
setfont2/files/setfont2.init | ||
---|---|---|
1 | #!/bin/sh /etc/rc.common | |
2 | # Copyright (C) 2008 OpenWrt.org | |
3 | START=40 | |
4 | ||
5 | FONT="un-fuzzy-6x10-font.pnm" | |
6 | PATH_TO_FONT="/usr/share/setfont2/$FONT" | |
7 | ||
8 | start() { | |
9 | setfont2 "$PATH_TO_FONT" | |
10 | } | |
11 |