From 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sat, 18 Sep 2010 20:47:21 +0200 Subject: Major overhaul and cleanup. Support for .ubi image file installations. Only compile&install a minimum host Gforth for bootstrapping the target Gforth, removing strange emacs-dependencies that cropped up earlier. Image file can now be built on the nanonote using 'gforth-update-image' command. Also, Gforth is now run through a wrapper that calls 'gforth-update-image' automatically, if necessary. Also first attempts at supporting libcc C-interface libraries pre-compiled on the host. Tested to compile on amd64 and i386. --- fbterm/Makefile | 49 +++++++++++++++++++++++++++++ fbterm/patches/001-invalid-conservion.patch | 12 +++++++ 2 files changed, 61 insertions(+) create mode 100644 fbterm/Makefile create mode 100644 fbterm/patches/001-invalid-conservion.patch (limited to 'fbterm') diff --git a/fbterm/Makefile b/fbterm/Makefile new file mode 100644 index 0000000..e6f8f3e --- /dev/null +++ b/fbterm/Makefile @@ -0,0 +1,49 @@ +# +# kyak@freenode/#qi-hardware +# +# This is free software, licensed under the GNU General Public License v2. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=fbterm +PKG_VERSION:=1.6 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://fbterm.googlecode.com/files/ +PKG_MD5SUM:=531ea0984836b58fd123e6a97a4228c6 + +include $(INCLUDE_DIR)/package.mk + +define Package/fbterm + SECTION:=utils + CATEGORY:=Utilities + TITLE:=FbTerm, a fast FrameBuffer based TERMinal emulator for linux + URL:=http://code.google.com/p/fbterm/ + SUBMENU:=Terminal + DEPENDS:=+libiconv +fontconfig +unifont +endef + +define Package/fbterm/description + FbTerm is a fast terminal emulator for linux with frame buffer device +endef + +TARGET_CFLAGS+= \ + -I$(STAGING_DIR)/usr/lib/libiconv/include + +TARGET_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv + +define Package/fbterm/install + $(INSTALL_DIR) \ + $(1)/usr/bin + + $(INSTALL_BIN) \ + $(PKG_BUILD_DIR)/src/fbterm \ + $(1)/usr/bin/fbterm + +endef + +$(eval $(call BuildPackage,fbterm)) diff --git a/fbterm/patches/001-invalid-conservion.patch b/fbterm/patches/001-invalid-conservion.patch new file mode 100644 index 0000000..e906455 --- /dev/null +++ b/fbterm/patches/001-invalid-conservion.patch @@ -0,0 +1,12 @@ +--- fbterm-1.6/src/lib/io.cpp_orig 2010-06-19 19:00:18.037920330 +0400 ++++ fbterm-1.6/src/lib/io.cpp 2010-06-19 19:01:02.622595041 +0400 +@@ -188,7 +188,8 @@ + s8 outbuf[outlen]; + + size_t nconv, left, total = len; +- s8 *outptr, *inptr = buf; ++ s8 *outptr = buf; ++ const char *inptr = buf; + + while (total) { + outptr = outbuf; -- cgit v1.2.3