2003-09-27 15:06:22 +02:00
|
|
|
# New ports collection makefile for: sylpheed-gtk2
|
|
|
|
# Date created: 25 September 2003
|
|
|
|
# Whom: Jean-Yves Lefort <jylefort@brutele.be>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sylpheed-gtk2
|
2005-01-09 19:36:26 +01:00
|
|
|
PORTVERSION= 1.0.0.20041224
|
2003-09-27 15:06:22 +02:00
|
|
|
CATEGORIES= mail ipv6
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2004-01-22 21:15:51 +01:00
|
|
|
DISTNAME= sylpheed-${PORTVERSION:R}-gtk2-${PORTVERSION:E}
|
2003-09-27 15:06:22 +02:00
|
|
|
|
|
|
|
MAINTAINER= jylefort@brutele.be
|
2004-01-22 21:15:51 +01:00
|
|
|
COMMENT= The GTK+ 2.0 port of a lightweight, featureful and fast e-mail client
|
|
|
|
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2003-09-27 15:06:22 +02:00
|
|
|
USE_GMAKE= yes
|
2004-03-30 21:20:22 +02:00
|
|
|
USE_ICONV= yes
|
2003-09-27 15:06:22 +02:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GNOME= gtk20
|
2004-06-14 13:36:11 +02:00
|
|
|
USE_LIBTOOL_VER= 15
|
2003-09-27 15:06:22 +02:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2004-01-22 21:15:51 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
|
2004-07-03 09:24:44 +02:00
|
|
|
OPTIONS= SSL "SSL support" off \
|
|
|
|
GPGME "GnuPG support (using GPGME)" off \
|
2004-01-23 18:52:07 +01:00
|
|
|
COMPFACE "X-Face support (using compface)" off \
|
|
|
|
JPILOT "JPilot support" off \
|
|
|
|
LDAP "LDAP support" off
|
2004-01-22 21:15:51 +01:00
|
|
|
|
2005-01-09 19:36:26 +01:00
|
|
|
CONFLICTS= sylpheed-[0-9]*
|
2003-09-27 15:06:22 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-07-03 09:24:44 +02:00
|
|
|
.if defined(WITH_SSL)
|
|
|
|
# we can't use USE_OPENSSL=yes after including bsd.port.pre.mk
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
|
|
|
CONFIGURE_ARGS+= --enable-ssl
|
|
|
|
.endif
|
|
|
|
|
2003-09-27 15:06:22 +02:00
|
|
|
.if defined(WITH_GPGME)
|
2004-12-21 09:59:42 +01:00
|
|
|
LIB_DEPENDS+= gpgme03.9:${PORTSDIR}/security/gpgme03
|
2003-09-27 15:06:22 +02:00
|
|
|
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
|
|
|
|
CONFIGURE_ARGS+= --enable-gpgme
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_COMPFACE)
|
|
|
|
LIB_DEPENDS+= compface.1:${PORTSDIR}/mail/faces
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-compface
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_JPILOT)
|
|
|
|
LIB_DEPENDS+= pisock.8:${PORTSDIR}/palm/pilot-link
|
|
|
|
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
|
|
|
|
CONFIGURE_ARGS+= --enable-jpilot
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LDAP)
|
2004-03-20 23:22:51 +01:00
|
|
|
USE_OPENLDAP= yes
|
2003-09-27 15:06:22 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2004-07-03 09:24:44 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
|
|
|
|
s|-lresolv||g; s|-lpisock\"|-liconv &|g; \
|
|
|
|
s|^manualdir=.*|manualdir="${DOCSDIR}/manual"|g; \
|
2004-12-21 09:59:42 +01:00
|
|
|
s|^faqdir=.*|faqdir="${DOCSDIR}/faq"|g ;\
|
|
|
|
s|gpgme-config|gpgme03-config|g' \
|
2004-07-03 09:24:44 +02:00
|
|
|
${WRKSRC}/${CONFIGURE_SCRIPT}
|
2003-09-27 15:06:22 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
2004-06-14 13:36:11 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS = ac po src manual faq$$|SUBDIRS = ac po src|g' \
|
2003-09-27 15:06:22 +02:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|