freebsd-ports/mail/balsa/Makefile

96 lines
2.4 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: balsa
# Date created: 02 December 1998
# Whom: Glenn Johnson <gljohns@bellsouth.net>
#
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 $
#
2000-04-13 22:01:08 +02:00
PORTNAME= balsa
2009-01-20 03:39:42 +01:00
PORTVERSION= 2.3.28
CATEGORIES= mail gnome
MASTER_SITES= http://www.theochem.kth.se/~pawsa/balsa/
DISTNAME= balsa-${PORTVERSION}
MAINTAINER= gnome@FreeBSD.org
COMMENT= A mail reader for the GNOME 2 desktop
2004-08-29 00:50:44 +02:00
LIB_DEPENDS= aspell.16:${PORTSDIR}/textproc/aspell \
pcre.0:${PORTSDIR}/devel/pcre \
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
USE_GMAKE= yes
USE_BZIP2= yes
INSTALLS_OMF= yes
INSTALLS_ICONS= yes
USE_PERL5= yes
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
USE_AUTOTOOLS= libltdl:15
GNU_CONFIGURE= yes
USE_ICONV= yes
2000-10-05 09:17:31 +02:00
CONFIGURE_ARGS= --enable-threads \
--disable-more-warnings \
2009-01-01 23:28:40 +01:00
--with-ssl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
2007-05-04 05:34:24 +02:00
LIBS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}"
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 \
NOTIFY "Enable libnotify support" on \
2004-12-19 21:17:41 +01:00
GPG "Enable GnuPG support" off
.include <bsd.port.pre.mk>
.if defined(WITH_GPG)
2007-05-27 19:32:53 +02:00
LIB_DEPENDS+= gpgme.17:${PORTSDIR}/security/gpgme
CONFIGURE_ARGS+= --with-gpgme=${LOCALBASE}/bin/gpgme-config
.endif
.if !defined(WITHOUT_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+= --with-ldap
.endif
2005-12-05 04:38:08 +01:00
.if !defined(WITHOUT_GTKSPELL)
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)
USE_GNOME+= gtksourceview2
CONFIGURE_ARGS+=--with-gtksourceview=2
2007-05-04 05:34:24 +02:00
.endif
.if !defined(WITHOUT_NOTIFY)
LIB_DEPENDS+= notify.1:${PORTSDIR}/devel/libnotify
CONFIGURE_ARGS+=--with-libnotify=yes
.else
CONFIGURE_ARGS+=--with-libnotify=no
.endif
.if ${PREFIX}==${LOCALBASE}
PLIST_SUB+= GTKICON="@comment "
.else
PLIST_SUB+= GTKICON=""
.endif
post-patch:
@${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}
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
's|-D.*_DISABLE_DEPRECATED_SOURCE||g ; s|-D.*_DISABLE_DEPRECATED||g'
.include <bsd.port.post.mk>