Root/zgv/Makefile

1#
2# Copyright (C) 2011 David Kuehling <dvdkhlng TA gmx TOD de>
3#
4# License GPLv2 or later. NO WARRANTY.
5#
6# OpenWRT package for the Zgv
7
8# On the nanonote you might need export SVGALIB_DEFAULT_MODE=54
9# for applications to work correctly.
10
11include $(TOPDIR)/rules.mk
12
13PKG_NAME:=zgv
14PKG_VERSION:=5.9
15PKG_RELEASE:=2
16PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17PKG_SOURCE_URL:=http://www.svgalib.org/rus/zgv/
18PKG_MD5SUM:=d65a434ddeb612f0c488177f873afad2
19#PKG_INSTALL:=1
20#PKG_FIXUP:=libtool
21
22PKG_BUILD_DEPENDS:= zgv/host
23
24include $(INCLUDE_DIR)/host-build.mk
25include $(INCLUDE_DIR)/package.mk
26
27define Package/zgv/Default
28  SECTION:=utils
29  CATEGORY:=Utilities
30  TITLE:=Picture Viewer featuring Thumbnails
31  URL:=http://www.svgalib.org/rus/zgv/
32endef
33
34define Package/zgv/Default/description
35gv is a picture viewer with a thumbnail-based file selector, for the Linux
36and FreeBSD console (it uses svgalib). It\'s pretty featureful, and is
37probably the best svgalib-based viewer.
38endef
39
40define Package/zgv
41$(call Package/zgv/Default)
42  TITLE +=
43  DEPENDS:=+svgalib +zlib +libjpeg +libpng +libtiff
44endef
45
46define Package/zgv/description
47$(call Package/zgv/Default/description)
48endef
49
50#
51# ZGV build some tools that it needs during compilation. Compile those as a
52# 'hos' compile step. Be careful to not add a dependency on a host-version of
53# svgalib
54#
55define Host/Configure
56endef
57
58define Host/Compile
59    $(MAKE) -C $(HOST_BUILD_DIR)/src bdf2h
60endef
61
62define Host/Install
63    $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
64    $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/bdf2h \
65        $(STAGING_DIR_HOST)/bin/zgv-bdf2h
66endef
67
68TARGET_CFLAGS +=
69
70#TARGET_LDFLAGS += -Wl,-rpath -Wl,$(STAGING_DIR)/usr/lib
71
72# Nothing todo. Makefile.cfg adapted via patch
73define Build/Configure
74endef
75
76#MAKE_FLAGS += -j2
77
78
79define Build/Compile
80    $(call Build/Compile/Default, -j4)
81endef
82
83define Package/zgv/install
84    $(INSTALL_DIR) $(1)/usr/bin
85    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/zgv $(1)/usr/bin/
86    $(INSTALL_DIR) $(1)/etc
87    $(INSTALL_DATA) files/zgv.conf $(1)/etc/
88endef
89
90
91$(eval $(call HostBuild))
92$(eval $(call BuildPackage,zgv))
93
94# The following comments configure the Emacs editor. Just ignore them.
95# Local Variables:
96# compile-command: "cd ~/src/nanonote/zgv-5.9 && ~/bin/quilt-export target && make -C ~/h/src/qi/openwrt-xburst package/zgv/compile -j2 V=99"
97# End:
98

Archive Download this file



interactive