2000-06-05 12:36:25 +02:00
|
|
|
# New ports collection makefile for: sylpheed
|
|
|
|
# Date created: 15 June 2000
|
|
|
|
# Whom: shigeri <shigeri@m10.alpha-net.ne.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sylpheed
|
2008-06-19 06:43:30 +02:00
|
|
|
PORTVERSION= 2.5.0
|
2000-09-30 06:18:11 +02:00
|
|
|
CATEGORIES= mail ipv6
|
2006-09-23 16:26:18 +02:00
|
|
|
MASTER_SITES= http://sylpheed.sraoss.jp/sylpheed/v${PORTVERSION:C/\.[^\.]*$//}/
|
2000-06-05 12:36:25 +02:00
|
|
|
|
2003-07-25 18:31:49 +02:00
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= A lightweight, featureful, and fast GTK+ based e-mail client
|
2000-06-05 12:36:25 +02:00
|
|
|
|
2005-04-02 16:20:40 +02:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
|
|
|
|
|
2000-06-05 12:36:25 +02:00
|
|
|
USE_BZIP2= yes
|
2004-02-04 05:36:30 +01:00
|
|
|
USE_GETTEXT= yes
|
2001-10-31 20:45:42 +01:00
|
|
|
USE_GMAKE= yes
|
2004-03-31 11:52:13 +02:00
|
|
|
USE_ICONV= yes
|
2005-02-09 16:55:32 +01:00
|
|
|
USE_GNOME= gtk20
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2001-10-31 20:45:42 +01:00
|
|
|
|
2005-11-07 21:54:32 +01:00
|
|
|
# Sylpheed needs pthread if GnomeVFS is installed (GtkFileChooser uses it)
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2003-10-28 08:35:56 +01:00
|
|
|
CONFIGURE_ARGS= --enable-ipv6 \
|
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--with-libintl-prefix=${LOCALBASE} \
|
2003-01-02 20:39:00 +01:00
|
|
|
--program-transform-name=''
|
2000-06-05 12:36:25 +02:00
|
|
|
|
2005-02-09 16:55:32 +01:00
|
|
|
CONFLICTS= sylpheed-1.[0-8]* sylpheed-gtk2-[0-9]*
|
|
|
|
|
2005-02-28 21:15:44 +01: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 22:02:50 +01:00
|
|
|
SSL "Enable OpenSSL support." on \
|
2006-11-20 19:08:54 +01:00
|
|
|
GTKSPELL "Enable Spell checking support" on \
|
|
|
|
ONIGURUMA "Enable Oniguruma support" off
|
2002-11-03 16:12:05 +01:00
|
|
|
|
2003-10-02 21:02:03 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-03-05 13:11:28 +01:00
|
|
|
.if !defined(WITHOUT_SSL)
|
2005-02-28 21:15:44 +01: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 22:02:50 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ssl
|
2005-02-28 21:15:44 +01:00
|
|
|
.endif
|
|
|
|
|
2001-09-14 16:23:26 +02:00
|
|
|
.if defined(WITH_GPGME)
|
2006-09-13 23:24:20 +02:00
|
|
|
LIB_DEPENDS+= gpgme.17:${PORTSDIR}/security/gpgme
|
2001-09-14 16:23:26 +02:00
|
|
|
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
|
|
|
|
CONFIGURE_ARGS+=--enable-gpgme
|
2002-01-09 01:52:08 +01:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gpgme
|
2001-09-14 16:23:26 +02:00
|
|
|
.endif
|
2006-02-13 22:02:50 +01:00
|
|
|
|
2002-01-09 01:52:08 +01:00
|
|
|
.if defined(WITH_COMPFACE)
|
|
|
|
LIB_DEPENDS+= compface.1:${PORTSDIR}/mail/faces
|
|
|
|
CONFIGURE_ARGS+=--enable-compface
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-compface
|
2001-09-14 16:23:26 +02:00
|
|
|
.endif
|
2006-02-13 22:02:50 +01:00
|
|
|
|
2002-01-09 01:52:08 +01:00
|
|
|
.if defined(WITH_JPILOT)
|
2006-09-25 05:03:06 +02:00
|
|
|
LIB_DEPENDS+= pisock.9:${PORTSDIR}/palm/pilot-link
|
2002-02-18 18:25:09 +01:00
|
|
|
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
|
2002-01-09 01:52:08 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-jpilot
|
2001-09-14 16:23:26 +02:00
|
|
|
.else
|
2003-11-21 23:47:14 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-jpilot
|
2001-09-14 16:23:26 +02:00
|
|
|
.endif
|
2006-02-13 22:02:50 +01:00
|
|
|
|
2002-01-21 06:03:38 +01:00
|
|
|
.if defined(WITH_LDAP)
|
2003-11-21 23:47:14 +01:00
|
|
|
USE_OPENLDAP= yes
|
2002-01-21 06:03:38 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-ldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ldap
|
|
|
|
.endif
|
2006-02-13 22:02:50 +01:00
|
|
|
|
|
|
|
.if defined(WITH_GTKSPELL)
|
2006-05-28 17:54:10 +02:00
|
|
|
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
|
2006-02-13 22:02:50 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-gtkspell
|
2002-01-09 01:52:08 +01:00
|
|
|
.else
|
2006-02-13 22:02:50 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-gtkspell
|
|
|
|
.endif
|
|
|
|
|
2006-11-20 19:08:54 +01: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 22:33:32 +01: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 22:02:50 +01:00
|
|
|
manual/ja/Makefile.in src/Makefile.in libsylph/Makefile.in \
|
|
|
|
src/icons/Makefile.in
|
2002-01-09 01:52:08 +01:00
|
|
|
|
2002-01-21 06:03:38 +01:00
|
|
|
post-patch:
|
2003-05-16 16:12:44 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
|
2008-06-07 09:54:12 +02:00
|
|
|
s|-lresolv||g; s|-lpisock\"|-liconv &|g; \
|
|
|
|
s|libs gtkspell-2\.0`|& -laspell|g;' \
|
|
|
|
${WRKSRC}/configure
|
2005-04-02 16:20:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}&|g' \
|
2006-02-13 22:02:50 +01:00
|
|
|
${WRKSRC}/libsylph/procmime.c
|
2002-01-21 06:03:38 +01:00
|
|
|
|
2008-06-07 09:54:12 +02:00
|
|
|
# to prevent breaking cc of ldif.c because of a base64.h in PREFIX/include
|
2007-10-09 16:55:39 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^\(DEFS.*\.\.\)$$|\1 -I../libsylph|' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
|
2002-11-23 22:33:32 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
2006-02-13 22:02:50 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS = ac libsylph src po manual faq$$|SUBDIRS = ac libsylph src po|g' \
|
2002-11-23 22:33:32 +01: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 12:36:25 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-09 01:52:08 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ChangeLog INSTALL README TODO
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2005-02-09 16:55:32 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i}.ja ${DOCSDIR}
|
2000-06-05 12:36:25 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
2006-04-09 23:41:13 +02:00
|
|
|
@${MKDIR} ${PREFIX}/share/pixmaps
|
|
|
|
@${MKDIR} ${PREFIX}/share/applications
|
2006-04-08 10:20:26 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sylpheed.png ${PREFIX}/share/pixmaps/
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sylpheed.desktop ${PREFIX}/share/applications/
|
2000-06-05 12:36:25 +02:00
|
|
|
|
2002-11-03 16:12:05 +01:00
|
|
|
.include <bsd.port.post.mk>
|