OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
| 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 | |
| 11 | include $(TOPDIR)/rules.mk |
| 12 | |
| 13 | PKG_NAME:=zgv |
| 14 | PKG_VERSION:=5.9 |
| 15 | PKG_RELEASE:=2 |
| 16 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 17 | PKG_SOURCE_URL:=http://www.svgalib.org/rus/zgv/ |
| 18 | PKG_MD5SUM:=d65a434ddeb612f0c488177f873afad2 |
| 19 | #PKG_INSTALL:=1 |
| 20 | #PKG_FIXUP:=libtool |
| 21 | |
| 22 | PKG_BUILD_DEPENDS:= zgv/host |
| 23 | |
| 24 | include $(INCLUDE_DIR)/host-build.mk |
| 25 | include $(INCLUDE_DIR)/package.mk |
| 26 | |
| 27 | define Package/zgv/Default |
| 28 | SECTION:=utils |
| 29 | CATEGORY:=Utilities |
| 30 | TITLE:=Picture Viewer featuring Thumbnails |
| 31 | URL:=http://www.svgalib.org/rus/zgv/ |
| 32 | endef |
| 33 | |
| 34 | define Package/zgv/Default/description |
| 35 | gv is a picture viewer with a thumbnail-based file selector, for the Linux |
| 36 | and FreeBSD console (it uses svgalib). It\'s pretty featureful, and is |
| 37 | probably the best svgalib-based viewer. |
| 38 | endef |
| 39 | |
| 40 | define Package/zgv |
| 41 | $(call Package/zgv/Default) |
| 42 | TITLE += |
| 43 | DEPENDS:=+svgalib +zlib +libjpeg +libpng +libtiff |
| 44 | endef |
| 45 | |
| 46 | define Package/zgv/description |
| 47 | $(call Package/zgv/Default/description) |
| 48 | endef |
| 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 | # |
| 55 | define Host/Configure |
| 56 | endef |
| 57 | |
| 58 | define Host/Compile |
| 59 | $(MAKE) -C $(HOST_BUILD_DIR)/src bdf2h |
| 60 | endef |
| 61 | |
| 62 | define Host/Install |
| 63 | $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin |
| 64 | $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/bdf2h \ |
| 65 | $(STAGING_DIR_HOST)/bin/zgv-bdf2h |
| 66 | endef |
| 67 | |
| 68 | TARGET_CFLAGS += |
| 69 | |
| 70 | #TARGET_LDFLAGS += -Wl,-rpath -Wl,$(STAGING_DIR)/usr/lib |
| 71 | |
| 72 | # Nothing todo. Makefile.cfg adapted via patch |
| 73 | define Build/Configure |
| 74 | endef |
| 75 | |
| 76 | #MAKE_FLAGS += -j2 |
| 77 | |
| 78 | |
| 79 | define Build/Compile |
| 80 | $(call Build/Compile/Default, -j4) |
| 81 | endef |
| 82 | |
| 83 | define 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/ |
| 88 | endef |
| 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 |
