# This file is *NOT* part of MXE.
# See index.html for further information.
PKG := evince
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := 2f06a2b9dfd8667f4b4c6e90be3c49f6fe026fc8
$(PKG)_SUBDIR := evince-$($(PKG)_VERSION)
$(PKG)_FILE := evince-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/$($(PKG)_FILE)
$(PKG)_DEPS := gcc gtk2 poppler
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://ftp.gnome.org/pub/GNOME/sources/evince/2.32/' | \
grep 'evince-' | \
$(SED) -n 's,.*evince-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)/' && ./configure \
--host='$(TARGET)' \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--without-libgnome \
--without-gconf \
--without-keyring \
--with-platform=win32 \
--with-smclient-backend=win32 \
--disable-help \
--disable-thumbnailer \
--disable-nautilus \
--disable-dbus \
--disable-gtk-doc \
--disable-previewer \
--disable-nls \
--without-gtk-unix-print \
--disable-comics \
CONFIG_SHELL=$(SHELL)
$(MAKE) -C '$(1)/' -j '$(JOBS)' install
endef