1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-12-22 16:31:09 +02:00

new port: zgv: a simple/leightweight image viewer + browser that uses svgalib

Note: image browsing is currently broken (floating point exception).
However, you can list images to view on the command line, than viewing works.
This commit is contained in:
David Kühling 2011-01-23 13:10:41 +01:00
parent 479a593121
commit 7fb69c0732
2 changed files with 108 additions and 0 deletions

97
zgv/Makefile Normal file
View File

@ -0,0 +1,97 @@
#
# Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de>
#
# License GPLv2 or later. NO WARRANTY.
#
# OpenWRT package for the Zgv
# On the nanonote you might need export SVGALIB_DEFAULT_MODE=54
# for applications to work correctly.
include $(TOPDIR)/rules.mk
PKG_NAME:=zgv
PKG_VERSION:=5.9
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.svgalib.org/rus/zgv/
PKG_MD5SUM:=d65a434ddeb612f0c488177f873afad2
#PKG_INSTALL:=1
#PKG_FIXUP:=libtool
PKG_BUILD_DEPENDS:= zgv/host
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/zgv/Default
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Picture Viewer featuring Thumbnails
URL:=http://www.svgalib.org/rus/zgv/
endef
define Package/zgv/Default/description
gv is a picture viewer with a thumbnail-based file selector, for the Linux
and FreeBSD console (it uses svgalib). It\'s pretty featureful, and is
probably the best svgalib-based viewer.
endef
define Package/zgv
$(call Package/zgv/Default)
TITLE +=
DEPENDS:=+svgalib +zlib +libjpeg +libpng +libtiff
endef
define Package/zgv/description
$(call Package/zgv/Default/description)
endef
#
# ZGV build some tools that it needs during compilation. Compile those as a
# 'hos' compile step. Be careful to not add a dependency on a host-version of
# svgalib
#
define Host/Configure
endef
define Host/Compile
$(MAKE) -C $(HOST_BUILD_DIR)/src bdf2h
endef
define Host/Install
$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
$(INSTALL_BIN) $(HOST_BUILD_DIR)/src/bdf2h \
$(STAGING_DIR_HOST)/bin/zgv-bdf2h
endef
TARGET_CFLAGS +=
#TARGET_LDFLAGS += -Wl,-rpath -Wl,$(STAGING_DIR)/usr/lib
# Nothing todo. Makefile.cfg adapted via patch
define Build/Configure
endef
#MAKE_FLAGS += -j2
define Build/Compile
$(call Build/Compile/Default)
endef
define Package/zgv/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/zgv $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DATA) files/zgv.conf $(1)/etc/
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,zgv))
# The following comments configure the Emacs editor. Just ignore them.
# Local Variables:
# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/zgv/compile -j2 V=99"
# End:

11
zgv/files/zgv.conf Normal file
View File

@ -0,0 +1,11 @@
# the 24-bit mode is advertised to work by fbdev/svgalib but actually does
# not work correctly. disable it here:
mode-bad 320 240 24
# default video modes (not actually necessary as auto-detected?)
viewer-start-mode 320 240 32
fs-start-mode 320 240 32
# this isn't strictly necessary either?
force-viewer-8bit off