2002-01-04 06:30:18 +01:00
|
|
|
# New ports collection makefile for: sylpheed-claws
|
|
|
|
# Date created: 3 January 2002
|
|
|
|
# Whom: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2002-01-17 07:46:04 +01:00
|
|
|
PORTNAME= sylpheed-claws
|
2003-12-28 15:29:54 +01:00
|
|
|
PORTVERSION= 0.9.8
|
2002-01-04 06:30:18 +01:00
|
|
|
CATEGORIES= mail news ipv6
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= sylpheed-claws
|
|
|
|
DISTNAME= sylpheed-${PORTVERSION}claws
|
2002-03-12 23:13:23 +01:00
|
|
|
DISTFILES= ${EXTRACT_ONLY} \
|
|
|
|
${THEMEFILE}
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2002-01-04 06:30:18 +01:00
|
|
|
|
2003-10-05 15:39:48 +02:00
|
|
|
MAINTAINER= netchild@FreeBSD.org
|
2003-07-28 21:09:39 +02:00
|
|
|
COMMENT= A lightweight and very featureful GTK+ based e-mail and news client
|
2002-01-04 06:30:18 +01:00
|
|
|
|
2003-08-25 07:41:38 +02:00
|
|
|
LIB_DEPENDS= intl.5:${PORTSDIR}/devel/gettext
|
2002-06-17 01:41:04 +02:00
|
|
|
|
2003-12-28 15:29:54 +01:00
|
|
|
THEMEVERSION= 20031130
|
2003-07-28 17:22:44 +02:00
|
|
|
THEMEFILE= sylpheed-iconset-${THEMEVERSION}.tar.gz
|
2002-03-12 23:13:23 +01:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2002-01-04 06:30:18 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_LIBTOOL= yes
|
2003-04-21 01:14:46 +02:00
|
|
|
USE_GNOME= gtk12
|
2002-06-19 10:18:10 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-01-04 06:30:18 +01:00
|
|
|
|
2002-07-23 22:34:47 +02:00
|
|
|
MAN1= sylpheed-claws.1
|
|
|
|
|
2003-10-05 15:39:48 +02:00
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS= --enable-openssl --with-openssl-includes=${OPENSSLINC} \
|
|
|
|
--with-openssl-libs=${OPENSSLLIB}
|
|
|
|
.endif
|
|
|
|
|
2003-12-28 15:29:54 +01:00
|
|
|
CPIO?= /usr/bin/cpio
|
|
|
|
|
2003-10-05 15:39:48 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --program-suffix="-claws" --enable-ipv6
|
2002-01-04 06:30:18 +01:00
|
|
|
|
2003-01-30 17:42:41 +01:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
|
2002-02-17 04:02:26 +01:00
|
|
|
LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
|
2002-01-09 03:15:36 +01:00
|
|
|
|
2002-01-17 07:46:04 +01:00
|
|
|
.if defined(WITH_PIXBUF) || defined(WITH_ALL)
|
2003-04-21 01:14:46 +02:00
|
|
|
USE_GNOME+= gdkpixbuf
|
2002-01-04 06:30:18 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-imlib
|
|
|
|
.else
|
2003-04-21 01:14:46 +02:00
|
|
|
USE_GNOME+= imlib
|
2002-01-04 06:30:18 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-gdk-pixbuf
|
|
|
|
.endif
|
2002-01-17 07:46:04 +01:00
|
|
|
.if defined(WITH_GPGME) || defined(WITH_ALL)
|
2002-09-20 07:33:24 +02:00
|
|
|
LIB_DEPENDS+= gpgme.9:${PORTSDIR}/security/gpgme
|
2002-01-04 06:30:18 +01:00
|
|
|
RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg
|
|
|
|
CONFIGURE_ARGS+= --enable-gpgme
|
|
|
|
.endif
|
2002-01-17 07:46:04 +01:00
|
|
|
.if defined(WITH_COMPFACE) || defined(WITH_ALL)
|
2002-01-04 06:30:18 +01:00
|
|
|
LIB_DEPENDS+= compface.1:${PORTSDIR}/mail/faces
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-compface
|
|
|
|
.endif
|
2002-01-17 07:46:04 +01:00
|
|
|
.if defined(WITH_JCONV) || defined(WITH_ALL)
|
|
|
|
LIB_DEPENDS+= jconv.0:${PORTSDIR}/japanese/libjconv
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-jconv
|
|
|
|
.endif
|
2002-11-11 18:47:32 +01:00
|
|
|
.if defined(WITH_ASPELL) || defined(WITH_ALL)
|
2002-09-03 18:09:43 +02:00
|
|
|
LIB_DEPENDS+= pspell.15:${PORTSDIR}/textproc/aspell
|
2002-11-11 18:47:32 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-aspell
|
2002-01-04 06:30:18 +01:00
|
|
|
.endif
|
2002-02-17 04:02:26 +01:00
|
|
|
.if defined(WITH_JPILOT) || defined(WITH_ALL)
|
2002-09-17 18:35:39 +02:00
|
|
|
LIB_DEPENDS+= pisock.8:${PORTSDIR}/palm/pilot-link
|
2002-02-19 22:14:52 +01:00
|
|
|
RUN_DEPENDS+= jpilot:${PORTSDIR}/palm/jpilot
|
2002-02-17 04:02:26 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-jpilot
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_LDAP) || defined(WITH_ALL)
|
2003-08-15 02:49:31 +02:00
|
|
|
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
|
2002-02-17 04:02:26 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ldap
|
|
|
|
CONFIGURE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS:S/"//g}
|
|
|
|
.endif
|
2003-01-30 17:42:41 +01:00
|
|
|
.if defined(WITH_SA_PLUG) || defined(WITH_ALL)
|
|
|
|
RUN_DEPENDS+= spamd:${PORTSDIR}/mail/p5-Mail-SpamAssassin
|
|
|
|
CONFIGURE_ARGS+= --enable-spamassassin-plugin
|
2003-02-15 22:59:34 +01:00
|
|
|
PLIST_SUB+= SA_PLUG=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SA_PLUG="@comment "
|
2003-01-30 17:42:41 +01:00
|
|
|
.endif
|
2002-06-04 05:21:09 +02:00
|
|
|
.if defined(WITHOUT_THEMES)
|
|
|
|
PLIST_SUB+= THEMES="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= THEMES=""
|
|
|
|
.endif
|
2003-07-28 17:22:44 +02:00
|
|
|
.if defined(WITHOUT_IMAGE)
|
|
|
|
PLIST_SUB+= IMAGE="@comment "
|
|
|
|
CONFIGURE_ARGS+= --disable-image-viewer-plugin
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= IMAGE=""
|
|
|
|
.endif
|
2002-01-04 06:30:18 +01:00
|
|
|
|
|
|
|
pre-everything::
|
2002-01-17 07:46:04 +01:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may define the following build options:"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITH_ALL Enable all options below"
|
2002-02-17 04:02:26 +01:00
|
|
|
@${ECHO} ""
|
2002-01-17 07:46:04 +01:00
|
|
|
@${ECHO} " WITH_PIXBUF Enable GDK Pixbuf support"
|
|
|
|
@${ECHO} " WITH_GPGME Enable GnuPG support using GPGME"
|
|
|
|
@${ECHO} " WITH_COMPFACE Enable compface (X-Face) support"
|
|
|
|
@${ECHO} " WITH_JCONV Enable enhanced charset conversion"
|
2002-11-11 18:47:32 +01:00
|
|
|
@${ECHO} " WITH_ASPELL Enable spell-checking support"
|
2002-02-17 04:02:26 +01:00
|
|
|
@${ECHO} " WITH_JPILOT Enable JPilot support"
|
|
|
|
@${ECHO} " WITH_LDAP Enable LDAP access support"
|
2003-01-30 17:42:41 +01:00
|
|
|
@${ECHO} " WITH_SA_PLUG Build Spamassassin plugin"
|
2002-01-17 07:46:04 +01:00
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITHOUT_SSL Disable OpenSSL support"
|
2003-07-28 17:22:44 +02:00
|
|
|
@${ECHO} " WITHOUT_IMAGE Disable internal image viewer"
|
2002-06-04 05:21:09 +02:00
|
|
|
@${ECHO} " WITHOUT_THEMES Don't install additional themes"
|
2002-01-17 07:46:04 +01:00
|
|
|
@${ECHO} ""
|
|
|
|
|
2002-03-12 23:13:23 +01:00
|
|
|
post-extract:
|
2002-06-04 05:21:09 +02:00
|
|
|
.if !defined(WITHOUT_THEMES)
|
2002-03-12 23:13:23 +01:00
|
|
|
@${MKDIR} ${WRKSRC}/themes
|
2002-10-29 00:09:18 +01:00
|
|
|
@cd ${WRKDIR} && ${GZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${THEMEFILE} ${EXTRACT_AFTER_ARGS}
|
2002-06-04 05:21:09 +02:00
|
|
|
.endif
|
2002-03-12 23:13:23 +01:00
|
|
|
|
2002-01-17 07:46:04 +01:00
|
|
|
post-patch:
|
2002-06-17 01:41:04 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \
|
2002-01-17 07:46:04 +01:00
|
|
|
${WRKSRC}/tools/README.sylprint ${WRKSRC}/tools/sylprint.pl
|
2002-07-23 22:34:47 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|po intl src|po src|" ${WRKSRC}/Makefile.in
|
2003-01-03 08:58:03 +01:00
|
|
|
@for f in ${WRKSRC}/tools/*; do \
|
|
|
|
${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL}|" $$f; done
|
2003-10-05 15:39:48 +02:00
|
|
|
#@${LN} -s ${WRKSRC}/po/sylpheed.pot ${WRKSRC}/po/${PORTNAME}.pot
|
2002-01-17 07:46:04 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
2002-06-17 01:41:04 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|src manual faq tools|src tools|' ${WRKSRC}/Makefile.in
|
2002-01-04 06:30:18 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2002-07-23 22:34:47 +02:00
|
|
|
.for i in NEWS README README.jp README.claws RELEASE_NOTES.claws TODO TODO.jp tools/README.sylprint
|
2002-06-17 01:41:04 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
2002-01-04 06:30:18 +01:00
|
|
|
.endfor
|
2002-06-17 01:41:04 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/tools/README ${DOCSDIR}/README.tools
|
2002-01-04 06:30:18 +01:00
|
|
|
.endif
|
2002-01-17 07:46:04 +01:00
|
|
|
@${MKDIR} ${DATADIR}
|
2002-10-29 00:09:18 +01:00
|
|
|
@cd ${WRKSRC}/tools && \
|
|
|
|
${INSTALL_SCRIPT} OOo2sylpheed.pl calypso_convert.pl \
|
2003-12-28 15:29:54 +01:00
|
|
|
convert_mbox.pl eud2gc.py filter_conv.pl freshmeat_search.pl \
|
|
|
|
gif2xface.pl google_msgid.pl google_search.pl \
|
2003-01-03 08:58:03 +01:00
|
|
|
gpg-sign-syl kmail2sylpheed.pl kmail2sylpheed_v2.pl \
|
2003-12-28 15:29:54 +01:00
|
|
|
launch_firebird maildir2sylpheed.pl multiwebsearch.conf \
|
|
|
|
multiwebsearch.pl newscache_clean.pl outlook2sylpheed.pl \
|
|
|
|
tb2sylpheed update-po uudec vcard2xml.py ${DATADIR}
|
2002-06-04 05:21:09 +02:00
|
|
|
.if !defined(WITHOUT_THEMES)
|
2002-10-29 00:09:18 +01:00
|
|
|
@${MKDIR} ${DATADIR}/themes
|
2003-12-28 15:29:54 +01:00
|
|
|
@cd ${WRKDIR}/${THEMEFILE:C/.tar.gz//} && ${FIND} . -print | \
|
|
|
|
${GREP} -v xvpics | \
|
|
|
|
${CPIO} -pdu -R ${BINOWN}:${BINGRP} --quiet ${DATADIR}/themes/
|
2002-06-04 05:21:09 +02:00
|
|
|
.endif
|
2002-01-17 07:46:04 +01:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/tools/sylpheed-switcher ${PREFIX}/bin
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/tools/sylprint.pl ${PREFIX}/bin
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/tools/sylprint.rc ${PREFIX}/etc/sylprint.rc.example
|
2002-01-09 03:15:36 +01:00
|
|
|
@${MKDIR} ${PREFIX}/share/pixmaps
|
2002-01-04 06:30:18 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/sylpheed.png ${PREFIX}/share/pixmaps/sylpheed-claws.png
|
|
|
|
|
2003-10-05 15:39:48 +02:00
|
|
|
.include <bsd.port.post.mk>
|