mirror of
git://projects.qi-hardware.com/openwrt-packages.git
synced 2024-12-22 07:56:48 +02:00
[new package] [setfont2] Set 32-bit color fonts. by Neil
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
parent
3df8f389e0
commit
52eafe1ce5
57
setfont2/Makefile
Normal file
57
setfont2/Makefile
Normal file
@ -0,0 +1,57 @@
|
||||
# Copyright (C) 2008 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=setfont2
|
||||
PKG_VERSION:=20100720
|
||||
PKG_REV:=5c45736740e5e63439692615506078427913ea18
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=git://projects.qi-hardware.com/setfont2.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=$(PKG_REV)
|
||||
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/setfont2
|
||||
TITLE:=Set 32-bit color fonts with fbcon
|
||||
SECTION:=utils
|
||||
CATEGORY:=Utilities
|
||||
URL:=http://projects.qi-hardware.com/index.php/p/setfont2/
|
||||
endef
|
||||
|
||||
define Package/setfont2/description
|
||||
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
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
$(call Build/Configure/Default)
|
||||
|
||||
endef
|
||||
define Package/setfont2/install
|
||||
$(INSTALL_DIR) \
|
||||
$(1)/etc/init.d \
|
||||
$(1)/usr/sbin \
|
||||
$(1)/usr/share/setfont2
|
||||
|
||||
$(INSTALL_BIN) \
|
||||
$(PKG_BUILD_DIR)/setfont2 \
|
||||
$(1)/usr/sbin/
|
||||
|
||||
$(INSTALL_DATA) \
|
||||
$(PKG_BUILD_DIR)/fonts/un-fuzzy-6x10-font.pnm \
|
||||
$(PKG_BUILD_DIR)/fonts/un-fuzzy-4x8-font.pnm \
|
||||
$(1)/usr/share/setfont2/
|
||||
|
||||
$(INSTALL_BIN) \
|
||||
./files/$(PKG_NAME).init \
|
||||
$(1)/etc/init.d/$(PKG_NAME)
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,setfont2))
|
11
setfont2/files/setfont2.init
Executable file
11
setfont2/files/setfont2.init
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2008 OpenWrt.org
|
||||
START=40
|
||||
|
||||
FONT="un-fuzzy-6x10-font.pnm"
|
||||
PATH_TO_FONT="/usr/share/setfont2/$FONT"
|
||||
|
||||
start() {
|
||||
setfont2 "$PATH_TO_FONT"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user