2000-06-05 10:36:25 +00:00
|
|
|
# New ports collection makefile for: sylpheed
|
|
|
|
# Date created: 15 June 2000
|
|
|
|
# Whom: shigeri <shigeri@m10.alpha-net.ne.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= sylpheed
|
2002-06-14 21:30:36 +00:00
|
|
|
PORTVERSION= 0.7.8
|
2000-09-30 04:18:11 +00:00
|
|
|
CATEGORIES= mail ipv6
|
2000-07-02 14:46:39 +00:00
|
|
|
MASTER_SITES= http://sylpheed.good-day.net/sylpheed/
|
2000-06-05 10:36:25 +00:00
|
|
|
|
2001-09-01 21:32:48 +00:00
|
|
|
MAINTAINER= lehmann@ans-netz.de
|
2000-06-05 10:36:25 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2001-10-31 19:45:42 +00:00
|
|
|
USE_GMAKE= yes
|
2000-06-05 10:36:25 +00:00
|
|
|
USE_X_PREFIX= yes
|
2002-01-18 10:07:23 +00:00
|
|
|
USE_GTK= yes
|
2000-06-05 10:36:25 +00:00
|
|
|
USE_LIBTOOL= yes
|
2001-10-31 19:45:42 +00:00
|
|
|
|
2002-01-18 10:07:23 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
2002-01-09 00:52:08 +00:00
|
|
|
CONFIGURE_ARGS= --enable-ipv6 --prefix=${PREFIX} --with-included-gettext
|
2000-06-05 10:36:25 +00:00
|
|
|
|
2002-01-09 00:52:08 +00:00
|
|
|
.if defined(WITH_PIXBUF)
|
|
|
|
LIB_DEPENDS+= gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
|
|
|
|
CONFIGURE_ARGS+=--disable-imlib
|
|
|
|
.else
|
|
|
|
USE_IMLIB= yes
|
|
|
|
CONFIGURE_ARGS+=--disable-gdk-pixbuf
|
|
|
|
.endif
|
2001-09-14 14:23:26 +00:00
|
|
|
.if defined(WITH_GPGME)
|
2002-06-09 17:26:43 +00:00
|
|
|
LIB_DEPENDS+= gpgme.8:${PORTSDIR}/security/gpgme
|
2001-09-14 14:23:26 +00:00
|
|
|
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
|
|
|
|
CONFIGURE_ARGS+=--enable-gpgme
|
2002-01-09 00:52:08 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gpgme
|
2001-09-14 14:23:26 +00:00
|
|
|
.endif
|
2002-01-09 00:52:08 +00:00
|
|
|
.if defined(WITH_COMPFACE)
|
|
|
|
LIB_DEPENDS+= compface.1:${PORTSDIR}/mail/faces
|
|
|
|
CONFIGURE_ARGS+=--enable-compface
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-compface
|
2001-09-14 14:23:26 +00:00
|
|
|
.endif
|
2002-01-09 00:52:08 +00:00
|
|
|
.if defined(WITH_JCONV)
|
|
|
|
LIB_DEPENDS+= jconv.0:${PORTSDIR}/japanese/libjconv
|
|
|
|
CONFIGURE_ARGS+=--enable-jconv
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-jconv
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_JPILOT)
|
2002-01-18 10:07:23 +00:00
|
|
|
LIB_DEPENDS+= pisock.4:${PORTSDIR}/palm/pilot-link
|
2002-02-18 17:25:09 +00:00
|
|
|
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
|
2002-01-09 00:52:08 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-jpilot
|
2001-09-14 14:23:26 +00:00
|
|
|
.else
|
2002-01-09 00:52:08 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-jpilot
|
2001-09-14 14:23:26 +00:00
|
|
|
.endif
|
2002-01-21 05:03:38 +00:00
|
|
|
.if defined(WITH_LDAP)
|
|
|
|
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
|
|
|
|
CONFIGURE_ARGS+=--enable-ldap
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ldap
|
|
|
|
.endif
|
2001-09-14 14:23:26 +00:00
|
|
|
.if !defined(WITHOUT_SSL)
|
2002-01-09 00:52:08 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+=--enable-ssl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ssl
|
2001-09-14 14:23:26 +00:00
|
|
|
.endif
|
2002-01-09 00:52:08 +00: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_JCONV=yes Enable Japanese charset conversion"
|
|
|
|
@${ECHO} " library libjconv."
|
|
|
|
@${ECHO} " WITH_JPILOT=yes Enable JPilot support."
|
2002-01-21 05:03:38 +00:00
|
|
|
@${ECHO} " WITH_LDAP=yes Enable LDAP support."
|
2002-01-09 00:52:08 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITHOUT_SSL=yes Disable OpenSSL support."
|
|
|
|
@${ECHO} ""
|
2001-09-14 14:23:26 +00:00
|
|
|
|
2002-01-21 05:03:38 +00:00
|
|
|
post-patch:
|
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
|
|
|
|
s|-lresolv||g' ${WRKSRC}/configure
|
|
|
|
|
2001-11-28 03:19:06 +00:00
|
|
|
pre-build:
|
|
|
|
${LN} -sf ${LOCALBASE}/bin/${LIBTOOL} ${WRKSRC}/libtool
|
2001-09-14 14:23:26 +00:00
|
|
|
|
2000-06-05 10:36:25 +00:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-09 00:52:08 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ChangeLog INSTALL README TODO
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i}.jp ${DOCSDIR}
|
2000-06-05 10:36:25 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|