summaryrefslogtreecommitdiff
path: root/mail/balsa2/Makefile
blob: 4525f6d6e3c7cef86d45594baefed149dc570b8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $NetBSD: Makefile,v 1.4 2003/07/13 13:52:25 wiz Exp $
#

DISTNAME=		balsa-2.0.10
PKGREVISION=		2
CATEGORIES=		mail gnome
MASTER_SITES=		http://balsa.gnome.org/				\
			ftp://ftp.newton.cx/pub/balsa/
EXTRACT_SUFX=		.tar.bz2

MAINTAINER=		tech-pkg@netbsd.org
HOMEPAGE=		http://balsa.gnome.org/
COMMENT=		GNOME2 EMail client

BUILD_USES_MSGFMT=	yes

USE_PERL5=		build
USE_PKGINSTALL=		yes
USE_BUILDLINK2=		yes
USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	yes
LIBTOOL_OVERRIDE=	${WRKSRC}/libtool
GNU_CONFIGURE=		yes

CONFIGURE_ARGS+=	--enable-gpgme
CONFIGURE_ARGS+=	--disable-more-warnings
CONFIGURE_ARGS+=	--enable-threads
CONFIGURE_ARGS+=	--enable-pcre
CONFIGURE_ARGS+=	--with-ssl=${BUILDLINK_PREFIX.openssl}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}

EGDIR=		${PREFIX}/share/examples/balsa
.for cnf in balsa.soundlist email.soundlist
CONF_FILES+=	${EGDIR}/${cnf} ${PKG_SYSCONFDIR}/sound/events/${cnf}
.endfor

.if defined(USE_OPENLDAP) && ${USE_OPENLDAP} == YES
CONFIGURE_ARGS+=        --enable-ldap
.include "../../databases/openldap/buildlink2.mk"
.endif

.include "../../security/gpgme/buildlink2.mk"
.include "../../devel/pcre/buildlink2.mk"
.include "../../devel/glib2/buildlink2.mk"
.include "../../devel/libtool/buildlink2.mk"
.include "../../devel/libgnomeui/buildlink2.mk"
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../sysutils/gnome-vfs2/buildlink2.mk"
.include "../../print/libgnomeprintui/buildlink2.mk"
.include "../../converters/libiconv/buildlink2.mk"
.include "../../security/openssl/buildlink2.mk"
.include "../../textproc/aspell/buildlink2.mk"
.include "../../textproc/scrollkeeper/omf.mk"
.include "../../www/libgtkhtml/buildlink2.mk"
.include "../../mail/libesmtp/buildlink2.mk"
.include "../../mk/pthread.buildlink2.mk"

.if defined(BUILDLINK_LIBICONV_LDADD) && !empty(BUILDLINK_LIBICONV_LDADD)
CONFIGURE_ENV+=		ac_cv_lib_iconv_iconv_open=yes
.endif

.include "../../mk/bsd.pkg.mk"