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
|
2005-11-08 22:40:58 +01:00
|
|
|
PORTVERSION= 1.0.6
|
2010-05-31 04:01:56 +02:00
|
|
|
PORTREVISION= 9
|
2000-09-30 06:18:11 +02:00
|
|
|
CATEGORIES= mail ipv6
|
2008-03-01 14:37:04 +01:00
|
|
|
MASTER_SITES= http://sylpheed.sraoss.jp/sylpheed/v1.0/
|
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
|
2003-04-21 01:14:46 +02:00
|
|
|
USE_GNOME= gtk12
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-07-29 18:06:48 +02:00
|
|
|
NO_LATEST_LINK= yes
|
2001-10-31 20:45:42 +01:00
|
|
|
|
- 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
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
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
|
|
|
|
2003-10-02 21:02:03 +02:00
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.endif
|
2002-11-03 16:12:05 +01:00
|
|
|
|
2002-01-09 01:52:08 +01:00
|
|
|
.if defined(WITH_PIXBUF)
|
2003-04-21 01:14:46 +02:00
|
|
|
USE_GNOME+= gdkpixbuf
|
2002-01-09 01:52:08 +01:00
|
|
|
.else
|
2003-04-21 01:14:46 +02:00
|
|
|
USE_GNOME+= imlib
|
2003-10-02 21:02:03 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_PIXBUF)
|
|
|
|
CONFIGURE_ARGS+=--disable-imlib
|
|
|
|
.else
|
2002-01-09 01:52:08 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-gdk-pixbuf
|
|
|
|
.endif
|
2001-09-14 16:23:26 +02:00
|
|
|
.if defined(WITH_GPGME)
|
2009-07-15 18:47:45 +02:00
|
|
|
LIB_DEPENDS+= gpgme.18:${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
|
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
|
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
|
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
|
2001-09-14 16:23:26 +02:00
|
|
|
.if !defined(WITHOUT_SSL)
|
2002-01-09 01:52:08 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-ssl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ssl
|
2001-09-14 16:23:26 +02:00
|
|
|
.endif
|
2003-10-28 08:35:56 +01:00
|
|
|
|
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 \
|
|
|
|
manual/ja/Makefile.in src/Makefile.in
|
2002-01-09 01:52:08 +01: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 06:03:38 +01:00
|
|
|
@${ECHO} " WITH_LDAP=yes Enable LDAP support."
|
2002-01-09 01:52:08 +01:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITHOUT_SSL=yes Disable OpenSSL support."
|
|
|
|
@${ECHO} ""
|
2001-09-14 16:23:26 +02: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; \
|
2005-02-06 17:51:19 +01:00
|
|
|
s|-lresolv||g; s|-lpisock\"|-liconv &|g; ' ${WRKSRC}/configure
|
2005-04-02 16:20:40 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/etc|${LOCALBASE}&|g' \
|
2004-07-13 17:14:22 +02:00
|
|
|
${WRKSRC}/src/procmime.c
|
2002-01-21 06:03:38 +01:00
|
|
|
|
2002-11-23 22:33:32 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
2008-06-12 16:41:25 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS = ac m4 po intl src manual faq$$|SUBDIRS = ac m4 po intl src|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}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i}.jp ${DOCSDIR}
|
2000-06-05 12:36:25 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2002-11-03 16:12:05 +01:00
|
|
|
.include <bsd.port.post.mk>
|