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
|
2003-07-25 12:31:49 -04:00
|
|
|
PORTVERSION= 0.9.4
|
2002-09-20 04:09:56 -04:00
|
|
|
PORTREVISION= 0
|
2000-09-30 00:18:11 -04:00
|
|
|
CATEGORIES= mail ipv6
|
2003-07-25 12:31:49 -04:00
|
|
|
MASTER_SITES= http://sylpheed.good-day.net/sylpheed/ \
|
|
|
|
${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= sylpheed-claws
|
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
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2001-10-31 14:45:42 -05:00
|
|
|
USE_GMAKE= yes
|
2000-06-05 06:36:25 -04:00
|
|
|
USE_X_PREFIX= yes
|
2003-04-20 19:14:46 -04:00
|
|
|
USE_GNOME= gtk12
|
2000-06-05 06:36:25 -04:00
|
|
|
USE_LIBTOOL= yes
|
2002-07-14 13:23:27 -04:00
|
|
|
USE_REINPLACE= yes
|
2001-10-31 14:45:42 -05:00
|
|
|
|
2003-03-23 05:27:32 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include -I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib -L${X11BASE}/lib"
|
2003-01-02 14:39:00 -05:00
|
|
|
CONFIGURE_ARGS= --enable-ipv6 --prefix=${PREFIX} --with-included-gettext \
|
|
|
|
--program-transform-name=''
|
2000-06-05 06:36:25 -04:00
|
|
|
|
2002-11-03 10:12:05 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-01-08 19:52:08 -05:00
|
|
|
.if defined(WITH_PIXBUF)
|
2003-04-20 19:14:46 -04:00
|
|
|
USE_GNOME+= gdkpixbuf
|
2002-01-08 19:52:08 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-imlib
|
|
|
|
.else
|
2003-04-20 19:14:46 -04:00
|
|
|
USE_GNOME+= imlib
|
2002-01-08 19:52:08 -05:00
|
|
|
CONFIGURE_ARGS+=--disable-gdk-pixbuf
|
|
|
|
.endif
|
2001-09-14 10:23:26 -04:00
|
|
|
.if defined(WITH_GPGME)
|
2002-09-20 01:33:24 -04:00
|
|
|
LIB_DEPENDS+= gpgme.9:${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
|
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
|
2002-01-08 19:52:08 -05:00
|
|
|
.if defined(WITH_JPILOT)
|
2002-09-17 12:35:39 -04:00
|
|
|
LIB_DEPENDS+= pisock.8:${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
|
2002-01-08 19:52:08 -05:00
|
|
|
CONFIGURE_ARGS+= --disable-jpilot
|
2001-09-14 10:23:26 -04:00
|
|
|
.endif
|
2002-01-21 00:03:38 -05:00
|
|
|
.if defined(WITH_LDAP)
|
2003-08-14 20:49:31 -04:00
|
|
|
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
|
2002-01-21 00:03:38 -05:00
|
|
|
CONFIGURE_ARGS+=--enable-ldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ldap
|
|
|
|
.endif
|
2001-09-14 10:23:26 -04:00
|
|
|
.if !defined(WITHOUT_SSL)
|
2002-01-08 19:52:08 -05:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-ssl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ssl
|
2001-09-14 10:23:26 -04:00
|
|
|
.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 \
|
|
|
|
manual/ja/Makefile.in src/Makefile.in
|
2002-01-08 19:52:08 -05:00
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build options:"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITH_PIXBUF=yes Enable GDK Pixbuf support"
|
|
|
|
@${ECHO} " WITH_GPGME=yes Enable GnuPG support using GPGME."
|
|
|
|
@${ECHO} " WITH_COMPFACE=yes Enable X-Face support."
|
|
|
|
@${ECHO} " WITH_JPILOT=yes Enable JPilot support."
|
2002-01-21 00:03:38 -05:00
|
|
|
@${ECHO} " WITH_LDAP=yes Enable LDAP support."
|
2002-01-08 19:52:08 -05:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITHOUT_SSL=yes Disable OpenSSL support."
|
|
|
|
@${ECHO} ""
|
2001-09-14 10:23:26 -04: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; \
|
2003-03-23 05:27:32 -05:00
|
|
|
s|-lresolv||g; s|-lpisock\"|-liconv &|g' ${WRKSRC}/configure
|
2002-01-21 00:03:38 -05:00
|
|
|
|
2002-11-23 16:33:32 -05:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS = ac po intl src manual faq$$|SUBDIRS = ac po intl src|g' \
|
|
|
|
${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
|
|
|
|
|
2001-11-27 22:19:06 -05:00
|
|
|
pre-build:
|
2003-06-26 18:58:32 -04:00
|
|
|
${LN} -sf ${LIBTOOL} ${WRKSRC}/libtool
|
2001-09-14 10:23:26 -04:00
|
|
|
|
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}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i}.jp ${DOCSDIR}
|
2000-06-05 06:36:25 -04:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2002-11-03 10:12:05 -05:00
|
|
|
.include <bsd.port.post.mk>
|