GARNAME = mail-notification
GARVERSION = 5.4
CATEGORIES = geektoys
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2

MASTER_SITES = http://savannah.nongnu.org/download/mailnotify/

LIBDEPS = geektoys/gmime desktop/evolution

DESCRIPTION = mail-notification
define BLURB
Mail Notification monitors your mailboxes for new mail.  When new mail
arrives, Mail Notification alerts you by displaying an icon in the system
tray.  Moreover, a mail summary can be displayed in the icon tooltip and/or
in a separate popup window. 
endef

CONFIGURE_SCRIPTS = custom
BUILD_SCRIPTS = custom
INSTALL_SCRIPTS = custom

include ../category.mk


# Workaround to not depend on an unreleased gob2 version.
# https://bugs.launchpad.net/mail-notification/+bug/210915
post-patch:
	touch $(WORKSRC)/build/src/*
	@$(MAKECOOKIE)

configure-custom:
	cd $(WORKSRC) && \
	  ./jb configure cc="$(CC)" cflags="$(CFLAGS)" ldflags="$(LDFLAGS)"
	@$(MAKECOOKIE)

build-custom:
	cd $(WORKSRC) && ./jb build
	@$(MAKECOOKIE)

install-custom:
	cd $(WORKSRC) && ./jb install
	@$(MAKECOOKIE)

