2000-06-05 06:36:25 -04:00
|
|
|
# New ports collection makefile for: sylpheed
|
|
|
|
# Date created: 15 June 2000
|
|
|
|
# Whom: shigeri <shigeri@m10.alpha-net.ne.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sylpheed
|
2007-12-30 13:55:27 -05:00
|
|
|
PORTVERSION= 2.4.8
|
2000-09-30 00:18:11 -04:00
|
|
|
CATEGORIES= mail ipv6
|
2006-09-23 10:26:18 -04:00
|
|
|
MASTER_SITES= http://sylpheed.sraoss.jp/sylpheed/v${PORTVERSION:C/\.[^\.]*$//}/
|
2000-06-05 06:36:25 -04:00
|
|
|
|
2003-07-25 12:31:49 -04:00
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
2003-02-21 07:51:06 -05:00
|
|
|
COMMENT= A lightweight, featureful, and fast GTK+ based e-mail client
|
2000-06-05 06:36:25 -04:00
|
|
|
|
2005-04-02 09:20:40 -05:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
|
|
|
|
|
2000-06-05 06:36:25 -04:00
|
|
|
USE_BZIP2= yes
|
2004-02-03 23:36:30 -05:00
|
|
|
USE_GETTEXT= yes
|
2001-10-31 14:45:42 -05:00
|
|
|
USE_GMAKE= yes
|
2004-03-31 04:52:13 -05:00
|
|
|
USE_ICONV= yes
|
2006-11-20 13:08:54 -05:00
|
|
|
USE_XLIB= yes
|
2005-02-09 10:55:32 -05:00
|
|
|
USE_GNOME= gtk20
|
2006-02-23 05:40:44 -05:00
|
|
|
GNU_CONFIGURE= yes
|
2001-10-31 14:45:42 -05:00
|
|
|
|
2005-11-07 15:54:32 -05:00
|
|
|
# Sylpheed needs pthread if GnomeVFS is installed (GtkFileChooser uses it)
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
|
|
|
CPPFLAGS="-I${PREFIX}/include -I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}"
|
2003-10-28 02:35:56 -05:00
|
|
|
CONFIGURE_ARGS= --enable-ipv6 \
|
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--with-libintl-prefix=${LOCALBASE} \
|
2003-01-02 14:39:00 -05:00
|
|
|
--program-transform-name=''
|
2000-06-05 06:36:25 -04:00
|
|
|
|
2005-02-09 10:55:32 -05:00
|
|
|
CONFLICTS= sylpheed-1.[0-8]* sylpheed-gtk2-[0-9]*
|
|
|
|
|
2005-02-28 15:15:44 -05:00
|
|
|
OPTIONS= GPGME "Enable GnuPG support using GPGME." off \
|
|
|
|
COMPFACE "Enable X-Face support." off \
|
|
|
|
JPILOT "Enable JPilot support." off \
|
|
|
|
LDAP "Enable LDAP support." off \
|
2006-02-13 16:02:50 -05:00
|
|
|
SSL "Enable OpenSSL support." on \
|
2006-11-20 13:08:54 -05:00
|
|
|
GTKSPELL "Enable Spell checking support" on \
|
|
|
|
ONIGURUMA "Enable Oniguruma support" off
|
2002-11-03 10:12:05 -05:00
|
|
|
|
2003-10-02 15:02:03 -04:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-05 07:11:28 -05:00
|
|
|
.if !defined(WITHOUT_SSL)
|
2005-02-28 15:15:44 -05:00
|
|
|
# we can't use USE_OPENSSL=yes after including bsd.port.pre.mk
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
|
|
|
|
CONFIGURE_ARGS+=--enable-ssl
|
2006-02-13 16:02:50 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ssl
|
2005-02-28 15:15:44 -05:00
|
|
|
.endif
|
|
|
|
|
2001-09-14 10:23:26 -04:00
|
|
|
.if defined(WITH_GPGME)
|
2006-09-13 17:24:20 -04:00
|
|
|
LIB_DEPENDS+= gpgme.17:${PORTSDIR}/security/gpgme
|
2001-09-14 10:23:26 -04:00
|
|
|
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
|
|
|
|
CONFIGURE_ARGS+=--enable-gpgme
|
2002-01-08 19:52:08 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gpgme
|
2001-09-14 10:23:26 -04:00
|
|
|
.endif
|
2006-02-13 16:02:50 -05:00
|
|
|
|
2002-01-08 19:52:08 -05:00
|
|
|
.if defined(WITH_COMPFACE)
|
|
|
|
LIB_DEPENDS+= compface.1:${PORTSDIR}/mail/faces
|
|
|
|
CONFIGURE_ARGS+=--enable-compface
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-compface
|
2001-09-14 10:23:26 -04:00
|
|
|
.endif
|
2006-02-13 16:02:50 -05:00
|
|
|
|
2002-01-08 19:52:08 -05:00
|
|
|
.if defined(WITH_JPILOT)
|
2006-09-24 23:03:06 -04:00
|
|
|
LIB_DEPENDS+= pisock.9:${PORTSDIR}/palm/pilot-link
|
2002-02-18 12:25:09 -05:00
|
|
|
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
|
2002-01-08 19:52:08 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-jpilot
|
2001-09-14 10:23:26 -04:00
|
|
|
.else
|
2003-11-21 17:47:14 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-jpilot
|
2001-09-14 10:23:26 -04:00
|
|
|
.endif
|
2006-02-13 16:02:50 -05:00
|
|
|
|
2002-01-21 00:03:38 -05:00
|
|
|
.if defined(WITH_LDAP)
|
2003-11-21 17:47:14 -05:00
|
|
|
USE_OPENLDAP= yes
|
2002-01-21 00:03:38 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-ldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ldap
|
|
|
|
.endif
|
2006-02-13 16:02:50 -05:00
|
|
|
|
|
|
|
.if defined(WITH_GTKSPELL)
|
2006-05-28 11:54:10 -04:00
|
|
|
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
|
2006-02-13 16:02:50 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-gtkspell
|
2002-01-08 19:52:08 -05:00
|
|
|
.else
|
2006-02-13 16:02:50 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-gtkspell
|
|
|
|
.endif
|
|
|
|
|
2006-11-20 13:08:54 -05:00
|
|
|
.if defined(WITH_ONIGURUMA)
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libonig.a:${PORTSDIR}/devel/oniguruma
|
|
|
|
CONFIGURE_ARGS+=--enable-oniguruma
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-oniguruma
|
|
|
|
.endif
|
|
|
|
|
2002-11-23 16:33:32 -05:00
|
|
|
MAKEFILES= Makefile.in ac/Makefile.in faq/Makefile.in faq/de/Makefile.in \
|
|
|
|
faq/en/Makefile.in faq/es/Makefile.in faq/fr/Makefile.in \
|
|
|
|
faq/it/Makefile.in manual/Makefile.in manual/en/Makefile.in \
|
2006-02-13 16:02:50 -05:00
|
|
|
manual/ja/Makefile.in src/Makefile.in libsylph/Makefile.in \
|
|
|
|
src/icons/Makefile.in
|
2002-01-08 19:52:08 -05:00
|
|
|
|
2002-01-21 00:03:38 -05:00
|
|
|
post-patch:
|
2003-05-16 10:12:44 -04:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
|
2005-02-06 11:51:19 -05:00
|
|
|
s|-lresolv||g; s|-lpisock\"|-liconv &|g; ' ${WRKSRC}/configure
|
2005-04-02 09:20:40 -05:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}&|g' \
|
2006-02-13 16:02:50 -05:00
|
|
|
${WRKSRC}/libsylph/procmime.c
|
2002-01-21 00:03:38 -05:00
|
|
|
|
2007-10-09 10:55:39 -04:00
|
|
|
# to prevent breaking cc of ldif.c because of a base64.h in PREFIX/include
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(DEFS.*\.\.\)$$|\1 -I../libsylph|' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
|
2002-11-23 16:33:32 -05:00
|
|
|
.if defined(NOPORTDOCS)
|
2006-02-13 16:02:50 -05:00
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS = ac libsylph src po manual faq$$|SUBDIRS = ac libsylph src po|g' \
|
2002-11-23 16:33:32 -05:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.else
|
|
|
|
.for i in ${MAKEFILES}
|
|
|
|
@${REINPLACE_CMD} -e 's|^faqdir = @faqdir@$$|faqdir = ${DOCSDIR}/faq|g; \
|
|
|
|
s|^manualdir = @manualdir@$$|manualdir = ${DOCSDIR}/manual|g' \
|
|
|
|
${WRKSRC}/${i}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2000-06-05 06:36:25 -04:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-08 19:52:08 -05:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ChangeLog INSTALL README TODO
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2005-02-09 10:55:32 -05:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i}.ja ${DOCSDIR}
|
2000-06-05 06:36:25 -04:00
|
|
|
.endfor
|
|
|
|
.endif
|
2006-04-09 17:41:13 -04:00
|
|
|
@${MKDIR} ${PREFIX}/share/pixmaps
|
|
|
|
@${MKDIR} ${PREFIX}/share/applications
|
2006-04-08 04:20:26 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sylpheed.png ${PREFIX}/share/pixmaps/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sylpheed.desktop ${PREFIX}/share/applications/
|
2000-06-05 06:36:25 -04:00
|
|
|
|
2002-11-03 10:12:05 -05:00
|
|
|
.include <bsd.port.post.mk>
|