freebsd-ports/mail/mail-notification/Makefile
Joe Marcus Clarke dc77ff5ed1 Update to 1.0.
PR:		74351
Submitted by:	maintainer
2004-11-25 02:18:47 +00:00

94 lines
2.2 KiB
Makefile

# New ports collection makefile for: mail-notification
# Date created: 18 Sep 2003
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
#
# $FreeBSD$
#
PORTNAME= mail-notification
PORTVERSION= 1.0
CATEGORIES= mail ipv6
MASTER_SITES= ${MASTER_SITE_SAVANNAH}
MASTER_SITE_SUBDIR= mailnotify
MAINTAINER= jylefort@brutele.be
COMMENT= A mail notification for freedesktop.org-compliant system trays
USE_X_PREFIX= yes
USE_GNOME= gnomeprefix gnomehack eel2
GNU_CONFIGURE= yes
USE_GMAKE= yes
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
USE_GCC= 3.4
OPTIONS= MBOX "mbox support" on \
MH "MH support" on \
MAILDIR "Maildir support" on \
POP3 "POP3 support" on \
IMAP "IMAP support" on \
SSL "SSL support" on \
SASL "SASL authentication support" on \
SYLPHEED "Sylpheed support" on \
GMAIL "Gmail support" on \
MIME "MIME support" on
.include <bsd.port.pre.mk>
.if defined(WITHOUT_MBOX)
CONFIGURE_ARGS+= --disable-mbox
.endif
.if defined(WITHOUT_MH)
CONFIGURE_ARGS+= --disable-mh
.endif
.if defined(WITHOUT_MAILDIR)
CONFIGURE_ARGS+= --disable-maildir
.endif
.if defined(WITHOUT_POP3)
CONFIGURE_ARGS+= --disable-pop3
.endif
.if defined(WITHOUT_IMAP)
CONFIGURE_ARGS+= --disable-imap
.endif
.if defined(WITHOUT_POP3) && defined(WITHOUT_IMAP)
# only POP3 and IMAP use SSL and SASL
WITHOUT_SSL= yes
WITHOUT_SASL= yes
.endif
.if defined(WITHOUT_MBOX) \
&& defined(WITHOUT_MH) \
&& defined(WITHOUT_MAILDIR) \
&& defined(WITHOUT_POP3) \
&& defined(WITHOUT_IMAP) \
&& defined(WITHOUT_SYLPHEED)
# MIME support not needed
WITHOUT_MIME= yes
.endif
.if defined(WITHOUT_SYLPHEED)
CONFIGURE_ARGS+= --disable-sylpheed
.endif
.if defined(WITHOUT_GMAIL)
CONFIGURE_ARGS+= --disable-gmail
.else
LIB_DEPENDS+= soup-2.2:${PORTSDIR}/devel/libsoup
.endif
.if defined(WITHOUT_MIME)
CONFIGURE_ARGS+= --disable-mime
.else
LIB_DEPENDS+= gmime-2.0:${PORTSDIR}/mail/gmime2
.endif
.if defined(WITHOUT_SSL)
CONFIGURE_ARGS+= --disable-ssl
.else
# we can't use USE_OPENSSL=yes after including bsd.port.pre.mk
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
.endif
.if defined(WITHOUT_SASL)
CONFIGURE_ARGS+= --disable-sasl
.else
LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2
.endif
.include <bsd.port.post.mk>