1999-02-03 21:50:05 +01:00
|
|
|
# New ports collection makefile for: balsa
|
|
|
|
# Date created: 02 December 1998
|
|
|
|
# Whom: Glenn Johnson <gljohns@bellsouth.net>
|
1998-12-09 06:20:02 +01:00
|
|
|
#
|
1999-08-25 08:51:17 +02:00
|
|
|
# $FreeBSD$
|
2007-12-12 05:41:34 +01:00
|
|
|
# $MCom: ports-stable/mail/balsa/Makefile,v 1.3 2007/12/02 19:18:50 marcus Exp $
|
1998-12-09 06:20:02 +01:00
|
|
|
#
|
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= balsa
|
2009-01-20 03:39:42 +01:00
|
|
|
PORTVERSION= 2.3.28
|
1999-02-03 21:50:05 +01:00
|
|
|
CATEGORIES= mail gnome
|
2004-08-07 00:49:11 +02:00
|
|
|
MASTER_SITES= http://www.theochem.kth.se/~pawsa/balsa/
|
|
|
|
DISTNAME= balsa-${PORTVERSION}
|
1998-12-09 06:20:02 +01:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2004-08-07 00:49:11 +02:00
|
|
|
COMMENT= A mail reader for the GNOME 2 desktop
|
1998-12-09 06:20:02 +01:00
|
|
|
|
2004-08-29 00:50:44 +02:00
|
|
|
LIB_DEPENDS= aspell.16:${PORTSDIR}/textproc/aspell \
|
2002-03-07 18:33:44 +01:00
|
|
|
pcre.0:${PORTSDIR}/devel/pcre \
|
2004-08-07 00:49:11 +02:00
|
|
|
esmtp.6:${PORTSDIR}/mail/libesmtp \
|
2009-01-01 23:28:40 +01:00
|
|
|
gmime-2.0.4:${PORTSDIR}/mail/gmime2 \
|
|
|
|
gnome-keyring:${PORTSDIR}/security/gnome-keyring
|
1998-12-09 06:20:02 +01:00
|
|
|
|
2004-08-07 00:49:11 +02:00
|
|
|
USE_GMAKE= yes
|
2002-02-13 05:46:10 +01:00
|
|
|
USE_BZIP2= yes
|
2004-11-23 03:23:08 +01:00
|
|
|
INSTALLS_OMF= yes
|
2005-11-05 07:09:38 +01:00
|
|
|
INSTALLS_ICONS= yes
|
2004-08-07 00:49:11 +02:00
|
|
|
USE_PERL5= yes
|
2001-09-19 11:34:21 +02:00
|
|
|
USE_OPENSSL= yes
|
2007-05-04 05:34:24 +02:00
|
|
|
USE_GNOME= gnomeprefix intlhack gnomehack libgnomeui gtkhtml3 \
|
|
|
|
libgnomeprintui
|
2006-05-16 00:23:04 +02:00
|
|
|
USE_GETTEXT= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
USE_AUTOTOOLS= libltdl:15
|
|
|
|
GNU_CONFIGURE= yes
|
2004-08-07 00:49:11 +02:00
|
|
|
USE_ICONV= yes
|
2000-10-05 09:17:31 +02:00
|
|
|
CONFIGURE_ARGS= --enable-threads \
|
2001-09-19 11:34:21 +02:00
|
|
|
--disable-more-warnings \
|
2009-01-01 23:28:40 +01:00
|
|
|
--with-ssl
|
2001-12-20 13:25:42 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
2007-05-04 05:34:24 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}"
|
1998-12-09 06:20:02 +01:00
|
|
|
|
|
|
|
MAN1= balsa.1
|
|
|
|
|
2004-12-19 21:17:41 +01:00
|
|
|
OPTIONS= LDAP "Enable LDAP support" on \
|
2005-12-05 04:38:08 +01:00
|
|
|
GTKSPELL "Spell checking support" on \
|
2007-05-04 05:34:24 +02:00
|
|
|
GTKSV "Enable GtkSourceview support" on \
|
2007-05-20 02:37:05 +02:00
|
|
|
NOTIFY "Enable libnotify support" on \
|
2004-12-19 21:17:41 +01:00
|
|
|
GPG "Enable GnuPG support" off
|
2003-10-11 08:14:55 +02:00
|
|
|
|
2004-08-07 00:49:11 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-12-19 21:16:41 +01:00
|
|
|
.if defined(WITH_GPG)
|
2007-05-27 19:32:53 +02:00
|
|
|
LIB_DEPENDS+= gpgme.17:${PORTSDIR}/security/gpgme
|
2004-12-19 21:16:41 +01:00
|
|
|
CONFIGURE_ARGS+= --with-gpgme=${LOCALBASE}/bin/gpgme-config
|
|
|
|
.endif
|
2004-08-07 00:49:11 +02:00
|
|
|
|
|
|
|
.if !defined(WITHOUT_LDAP)
|
|
|
|
USE_OPENLDAP= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
|
|
|
.endif
|
|
|
|
|
2005-12-05 04:38:08 +01:00
|
|
|
.if !defined(WITHOUT_GTKSPELL)
|
2006-05-28 18:50:27 +02:00
|
|
|
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
|
2005-12-05 04:38:08 +01:00
|
|
|
CONFIGURE_ARGS+=--with-gtkspell
|
|
|
|
.endif
|
|
|
|
|
2007-05-04 05:34:24 +02:00
|
|
|
.if !defined(WITHOUT_GTKSV)
|
2008-03-26 03:38:19 +01:00
|
|
|
USE_GNOME+= gtksourceview2
|
|
|
|
CONFIGURE_ARGS+=--with-gtksourceview=2
|
2007-05-04 05:34:24 +02:00
|
|
|
.endif
|
|
|
|
|
2007-05-20 02:37:05 +02:00
|
|
|
.if !defined(WITHOUT_NOTIFY)
|
|
|
|
LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify
|
|
|
|
CONFIGURE_ARGS+=--with-libnotify=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-libnotify=no
|
|
|
|
.endif
|
|
|
|
|
2006-10-14 10:54:54 +02:00
|
|
|
.if ${PREFIX}==${LOCALBASE}
|
2005-07-25 05:45:48 +02:00
|
|
|
PLIST_SUB+= GTKICON="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GTKICON=""
|
|
|
|
.endif
|
|
|
|
|
2004-11-28 00:14:10 +01:00
|
|
|
post-patch:
|
2004-12-04 05:49:28 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|g' \
|
|
|
|
${WRKSRC}/libbalsa/mailbox_imap.c
|
2005-07-24 08:58:58 +02:00
|
|
|
# PREFIX safeness
|
|
|
|
@${REINPLACE_CMD} -E \
|
2007-05-04 05:34:24 +02:00
|
|
|
-e 's|^(HICOLOR_ICON_DIR)[^/]+/|\1=${PREFIX}/|' \
|
2005-07-24 08:58:58 +02:00
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2007-10-25 01:37:25 +02:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|-D.*_DISABLE_DEPRECATED_SOURCE||g ; s|-D.*_DISABLE_DEPRECATED||g'
|
2005-11-09 00:02:47 +01:00
|
|
|
|
2004-08-07 00:49:11 +02:00
|
|
|
.include <bsd.port.post.mk>
|