summaryrefslogtreecommitdiff
path: root/fbida
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2011-01-02 23:27:23 +0100
commit9352995934adec8059077af241c35ccd1573bd80 (patch)
tree60286e266b3b31b90b952ac37e12a1ebbcdd2eb6 /fbida
parentef3b84d78197acbd45d73a9b1ae44b47b5904290 (diff)
parent880bca260c4ce91554a49b2475232cf5c0ffd447 (diff)
downloadqipackages-fork-9352995934adec8059077af241c35ccd1573bd80.tar.gz
Merge branch 'master' of git://projects.qi-hardware.com/openwrt-packagesHEADmaster
Conflicts: links/Makefile
Diffstat (limited to 'fbida')
-rw-r--r--fbida/Makefile57
-rw-r--r--fbida/patches/001-sys_siglist.patch10
-rw-r--r--fbida/patches/002-fontsize.patch21
-rw-r--r--fbida/patches/003-fbgs.patch36
4 files changed, 124 insertions, 0 deletions
diff --git a/fbida/Makefile b/fbida/Makefile
new file mode 100644
index 0000000..c88a093
--- /dev/null
+++ b/fbida/Makefile
@@ -0,0 +1,57 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=fbida
+PKG_VERSION:=2.07
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://dl.bytesex.org/releases/fbida/
+PKG_MD5SUM:=3e05910fb7c1d9b2bd3e272d96db069c
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/fbida
+ SUBMENU:=fbida
+ SECTION:=utils
+ CATEGORY:=Utilities
+ URL:=http://linux.bytesex.org/fbida/
+ DEPENDS:=+libpng +libtiff +libexif +libiconv +dejavu-fonts-ttf
+endef
+
+define Package/fbida/description
+ The fbida project contains a few applications for viewing and editing images
+endef
+
+define Package/fbi
+ $(call Package/fbida)
+ TITLE:=This is a image viewer for the linux framebuffer console.
+endef
+
+define Package/fbgs
+ $(call Package/fbida)
+ TITLE:=A wrapper script for viewing ps/pdf files on the framebuffer console using fbi.
+ DEPENDS:=+fbi +ghostscript
+endef
+
+TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/lib/libiconv/include
+TARGET_LDFLAGS+=-L$(STAGING_DIR)/usr/lib/libiconv/lib -liconv -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
+
+
+define Package/fbi/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/{fbi,exiftran} $(1)/usr/bin/
+endef
+
+define Package/fbgs/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/fbgs $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,fbi))
+$(eval $(call BuildPackage,fbgs))
diff --git a/fbida/patches/001-sys_siglist.patch b/fbida/patches/001-sys_siglist.patch
new file mode 100644
index 0000000..7c0c337
--- /dev/null
+++ b/fbida/patches/001-sys_siglist.patch
@@ -0,0 +1,10 @@
+--- fbida-2.07.orig/fbtools.c 2008-10-11 12:49:38.676243745 +0200
++++ fbida-2.07/fbtools.c 2008-10-11 12:50:08.286262765 +0200
+@@ -519,6 +519,6 @@
+
+ /* cleanup */
+ fb_cleanup();
+- fprintf(stderr,"Oops: %s\n",sys_siglist[termsig]);
++ fprintf(stderr,"Oops: %s\n",strsignal(termsig));
+ exit(42);
+ }
diff --git a/fbida/patches/002-fontsize.patch b/fbida/patches/002-fontsize.patch
new file mode 100644
index 0000000..1e5f404
--- /dev/null
+++ b/fbida/patches/002-fontsize.patch
@@ -0,0 +1,21 @@
+diff -ur fbida-2.07_orig/fbi.c fbida-2.07/fbi.c
+--- fbida-2.07_orig/fbi.c 2008-06-09 18:53:33.000000000 +0400
++++ fbida-2.07/fbi.c 2010-10-18 22:22:33.166338378 +0400
+@@ -548,7 +548,7 @@
+ L" L - rotate counter-clockwise",
+ };
+
+- shadow_draw_text_box(face, 24, 16, transparency,
++ shadow_draw_text_box(face, 0, 0, transparency,
+ help, ARRAY_SIZE(help));
+ shadow_render();
+ }
+@@ -1465,7 +1465,7 @@
+
+ font_init();
+ if (NULL == fontname)
+- fontname = "monospace:size=16";
++ fontname = "monospace:size=10";
+ face = font_open(fontname);
+ if (NULL == face) {
+ fprintf(stderr,"can't open font: %s\n",fontname);
diff --git a/fbida/patches/003-fbgs.patch b/fbida/patches/003-fbgs.patch
new file mode 100644
index 0000000..b06e084
--- /dev/null
+++ b/fbida/patches/003-fbgs.patch
@@ -0,0 +1,36 @@
+--- fbida-2.07.orig/fbgs 2010-10-18 20:26:32.264246468 +0400
++++ fbida-2.07/fbgs 2010-10-18 20:56:04.670332976 +0400
+@@ -1,7 +1,7 @@
+-#!/bin/bash
++#!/bin/sh
+
+ # tmp dir
+-DIR="$(mktemp -dtp ${TMPDIR-/var/tmp} fbgs-XXXXXX)"
++DIR="$(mktemp -dtp ${TMPDIR-/tmp} fbgs-XXXXXX)"
+ test -d "$DIR" || exit 1
+ trap "rm -rf $DIR" EXIT
+
+@@ -33,7 +33,22 @@
+ -p) password="$2"
+ shift; shift
+ ;;
+- -h) echo fixme: help text
++ -h) echo "
++fbgs - poor man's PostScript/pdf viewer for the linux framebuffer con-
++sole
++
++fbgs [ options ] file
++
++fbgs is a simple wrapper script which takes a PostScript or pdf file as
++input, renders the pages using ghostscript into a temporary directory
++and finally calls fbi to display them.
++
++fbps understands all fbi options (they are passed through). Addition-
++ally you can specify -l, -xl or -xxl to get the pages rendered with
++100, 120 or 150 dpi (default is 75). You can use option -p <password>
++if your PDF file requires password. With -c you can ask fbgs to render
++the pages in color.
++"
+ exit 1
+ ;;
+ -c) device="png16m"