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
|
2005-02-06 16:51:19 +00:00
|
|
|
PORTVERSION= 1.0.1
|
|
|
|
PORTREVISION= 0
|
2000-09-30 04:18:11 +00:00
|
|
|
CATEGORIES= mail ipv6
|
2004-07-13 15:14:22 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S/$/:mime/} \
|
|
|
|
http://sylpheed.good-day.net/sylpheed/:source \
|
|
|
|
${MASTER_SITE_SOURCEFORGE:S/$/:source/}
|
|
|
|
MASTER_SITE_SUBDIR= sylpheed-claws/:source oliver/:mime
|
2004-12-15 18:08:59 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/.r.1/rc/}
|
2004-07-13 15:14:22 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source mime.types:mime
|
2004-10-31 23:47:54 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2004-07-13 15:14:22 +00:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2000-06-05 10:36:25 +00:00
|
|
|
|
2003-07-25 16:31:49 +00:00
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
2003-02-21 12:51:06 +00:00
|
|
|
COMMENT= A lightweight, featureful, and fast GTK+ based e-mail client
|
2000-06-05 10:36:25 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
2001-10-31 19:45:42 +00:00
|
|
|
USE_GMAKE= yes
|
2004-03-31 09:52:13 +00:00
|
|
|
USE_ICONV= yes
|
2000-06-05 10:36:25 +00:00
|
|
|
USE_X_PREFIX= yes
|
2003-04-20 23:14:46 +00:00
|
|
|
USE_GNOME= gtk12
|
2005-02-06 16:51:19 +00:00
|
|
|
USE_LIBTOOL_VER=15
|
2002-07-14 17:23:27 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-10-31 19:45:42 +00:00
|
|
|
|
2003-03-23 10:27:32 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${PREFIX}/include -I${LOCALBASE}/include -I${X11BASE}/include" \
|
|
|
|
LIBS="-L${PREFIX}/lib -L${LOCALBASE}/lib -L${X11BASE}/lib"
|
2003-10-28 07:35:56 +00:00
|
|
|
CONFIGURE_ARGS= --enable-ipv6 \
|
|
|
|
--prefix=${PREFIX} \
|
|
|
|
--with-libintl-prefix=${LOCALBASE} \
|
2003-01-02 19:39:00 +00:00
|
|
|
--program-transform-name=''
|
2000-06-05 10:36:25 +00:00
|
|
|
|
2003-10-02 19:02:03 +00:00
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
.endif
|
2002-11-03 15:12:05 +00:00
|
|
|
|
2002-01-09 00:52:08 +00:00
|
|
|
.if defined(WITH_PIXBUF)
|
2003-04-20 23:14:46 +00:00
|
|
|
USE_GNOME+= gdkpixbuf
|
2002-01-09 00:52:08 +00:00
|
|
|
.else
|
2003-04-20 23:14:46 +00:00
|
|
|
USE_GNOME+= imlib
|
2003-10-02 19:02:03 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_PIXBUF)
|
|
|
|
CONFIGURE_ARGS+=--disable-imlib
|
|
|
|
.else
|
2002-01-09 00:52:08 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-gdk-pixbuf
|
|
|
|
.endif
|
2001-09-14 14:23:26 +00:00
|
|
|
.if defined(WITH_GPGME)
|
2005-02-06 16:51:19 +00:00
|
|
|
LIB_DEPENDS+= gpgme.14:${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_JPILOT)
|
2002-09-17 16:35:39 +00:00
|
|
|
LIB_DEPENDS+= pisock.8:${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
|
2003-11-21 22:47:14 +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)
|
2003-11-21 22:47:14 +00:00
|
|
|
USE_OPENLDAP= yes
|
2002-01-21 05:03:38 +00:00
|
|
|
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
|
|
|
CONFIGURE_ARGS+=--enable-ssl
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-ssl
|
2001-09-14 14:23:26 +00:00
|
|
|
.endif
|
2003-10-28 07:35:56 +00:00
|
|
|
|
2002-11-23 21:33:32 +00: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 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_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:
|
2003-05-16 14:12:44 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
|
2005-02-06 16:51:19 +00:00
|
|
|
s|-lresolv||g; s|-lpisock\"|-liconv &|g; ' ${WRKSRC}/configure
|
2004-07-13 15:14:22 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|mime\.types|sylpheed-mime\.types|g' \
|
|
|
|
${WRKSRC}/src/procmime.c
|
2002-01-21 05:03:38 +00:00
|
|
|
|
2002-11-23 21:33:32 +00: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-28 03:19:06 +00:00
|
|
|
pre-build:
|
2003-06-26 22:58:32 +00:00
|
|
|
${LN} -sf ${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
|
2004-07-13 15:14:22 +00:00
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/mime.types ${PREFIX}/etc/sylpheed-mime.types
|
2000-06-05 10:36:25 +00:00
|
|
|
.endif
|
|
|
|
|
2002-11-03 15:12:05 +00:00
|
|
|
.include <bsd.port.post.mk>
|