2007-04-18 23:37:41 +02:00
|
|
|
# New ports collection makefile for: ja-mutt
|
2000-10-01 23:08:28 +02:00
|
|
|
# Date created: 4 Sep 2000
|
1999-09-05 22:04:07 +02:00
|
|
|
# Whom: IWASHITA Yoji <shuna@pop16.odn.ne.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
2011-01-04 06:39:52 +01:00
|
|
|
# WITH_MUTT_CYRUS_SASL2: if defined, 'Cyrus sasl' support.
|
2002-06-24 01:12:59 +02:00
|
|
|
#
|
1999-09-05 22:04:07 +02:00
|
|
|
|
2011-01-04 06:39:52 +01:00
|
|
|
PORTNAME= mutt
|
2000-10-22 15:33:05 +02:00
|
|
|
PORTVERSION= ${VERSION}.j${JP_VERSION}
|
2011-03-14 09:40:06 +01:00
|
|
|
PORTREVISION= 1
|
1999-09-05 22:04:07 +02:00
|
|
|
CATEGORIES= japanese mail
|
2011-01-04 06:39:52 +01:00
|
|
|
MASTER_SITES= ftp://ftp.mutt.org/mutt/devel/:body \
|
|
|
|
ftp://ftp.fu-berlin.de/pub/unix/mail/mutt/devel/:body \
|
|
|
|
ftp://ftp.demon.co.uk/pub/mirrors/mutt/devel/:body \
|
|
|
|
ftp://ftp.parodius.com/pub/mutt/devel/:body \
|
|
|
|
http://www.emaillab.org/mutt/${MANUALVERSION}/:ja_man1 \
|
|
|
|
http://mutt-j.sourceforge.jp/:ja_man2 \
|
|
|
|
http://www.emaillab.org/mutt/1.5/doc/:ja_doc
|
|
|
|
PKGNAMESUFFIX= -devel
|
2007-04-18 23:01:55 +02:00
|
|
|
DISTNAME= mutt-${VERSION}
|
2011-01-04 06:39:52 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:body \
|
|
|
|
manual_ja-${MANUALVERSION}i-1${EXTRACT_SUFX}:ja_man1 \
|
|
|
|
manual.ja-${MANJADATE}${EXTRACT_SUFX}:ja_man2 \
|
2007-04-18 23:01:55 +02:00
|
|
|
README.JA-PATCH.ja.html:ja_doc \
|
|
|
|
README.JA-PATCH.ja:ja_doc \
|
|
|
|
INSTALL.JA-PATCH.ja.html:ja_doc \
|
|
|
|
INSTALL.JA-PATCH.ja:ja_doc \
|
|
|
|
manual-ja-patch.ja.html:ja_doc \
|
|
|
|
manual-ja-patch.ja.txt:ja_doc \
|
|
|
|
usage-japanese.ja.html:ja_doc \
|
|
|
|
usage-japanese.ja.txt:ja_doc
|
|
|
|
DIST_SUBDIR= mutt
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
|
2004-09-03 22:11:04 +02:00
|
|
|
manual_ja-${MANUALVERSION}i-1${EXTRACT_SUFX} \
|
|
|
|
manual.ja-${MANJADATE}${EXTRACT_SUFX}
|
2007-04-18 23:01:55 +02:00
|
|
|
|
|
|
|
PATCH_SITES= http://www.emaillab.org/mutt/${VERSION}/:ja_patch
|
2011-01-04 06:39:52 +01:00
|
|
|
PATCHFILES= patch-${VERSION}.tt.wcwidth.${JP_VERSION}.gz:ja_patch \
|
|
|
|
patch-${VERSION}.tt.create_rfc2047_params.${JP_VERSION}.gz:ja_patch \
|
|
|
|
patch-${VERSION}.tt+yy.delete_prefix.${JP_VERSION}.gz:ja_patch \
|
|
|
|
patch-${VERSION}.tt.sanitize_ja_char.${JP_VERSION}.gz:ja_patch
|
2007-04-18 23:01:55 +02:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1999-09-05 22:04:07 +02:00
|
|
|
|
2004-03-01 03:22:43 +01:00
|
|
|
MAINTAINER= st@be.to
|
2003-02-21 13:35:09 +01:00
|
|
|
COMMENT= Text-based mail client (Japanised development version)
|
1999-09-05 22:04:07 +02:00
|
|
|
|
2004-03-30 21:20:22 +02:00
|
|
|
LIB_DEPENDS= slang.2:${PORTSDIR}/japanese/libslang
|
2007-04-18 23:01:55 +02:00
|
|
|
RUN_DEPENDS= urlview:${PORTSDIR}/textproc/urlview \
|
|
|
|
${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
|
2004-03-30 21:20:22 +02:00
|
|
|
|
2011-01-04 06:39:52 +01:00
|
|
|
CONFLICTS= mutt-[0-9]* ja-mutt-1.[0-4]*
|
1999-09-05 22:04:07 +02:00
|
|
|
|
2011-01-04 06:39:52 +01:00
|
|
|
VERSION= 1.5.21
|
2002-04-02 05:32:09 +02:00
|
|
|
JP_VERSION= 1
|
2002-06-24 01:12:59 +02:00
|
|
|
MANUALVERSION= 1.4
|
2007-04-18 23:01:55 +02:00
|
|
|
MANJADATE= 20050813
|
2002-06-24 01:12:59 +02:00
|
|
|
|
|
|
|
FETCH_BEFORE_ARGS= -A # ha4.seikyou.ne.jp is running broken httpd
|
2000-04-11 16:15:53 +02:00
|
|
|
|
2000-10-01 23:08:28 +02:00
|
|
|
NO_LATEST_LINK= yes
|
1999-09-05 22:04:07 +02:00
|
|
|
USE_GMAKE= yes
|
2004-03-30 21:20:22 +02:00
|
|
|
USE_ICONV= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= automake autoconf
|
2002-06-24 01:12:59 +02:00
|
|
|
USE_OPENSSL= yes
|
2004-05-17 08:42:26 +02:00
|
|
|
WRKSRC= ${WRKDIR}/mutt-${VERSION}
|
2003-09-03 07:56:04 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-09-03 22:11:04 +02:00
|
|
|
CONFIGURE_ENV= CC="${CC} -D_DONT_USE_CTYPE_INLINE_ ${DB_CFLAGS} -I${LOCALBASE}/include -I${LOCALBASE}/include/slang" \
|
2004-03-06 00:55:25 +01:00
|
|
|
LDFLAGS="${LDFLAGS}"
|
2000-08-28 20:21:02 +02:00
|
|
|
CONFIGURE_ARGS= --with-slang --enable-locales-fix \
|
2002-06-24 01:12:59 +02:00
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
2000-10-01 23:08:28 +02:00
|
|
|
--without-wc-funcs \
|
1999-09-05 22:04:07 +02:00
|
|
|
--enable-flock --disable-fcntl \
|
2002-06-24 01:12:59 +02:00
|
|
|
--with-ssl \
|
2011-01-04 06:39:52 +01:00
|
|
|
--sysconfdir=${PREFIX}/etc \
|
2002-06-24 01:12:59 +02:00
|
|
|
--with-docdir=${DOCSDIR} \
|
2001-09-12 10:52:32 +02:00
|
|
|
--enable-pop --enable-imap \
|
2011-01-04 06:39:52 +01:00
|
|
|
--enable-smtp
|
2004-09-03 22:11:04 +02:00
|
|
|
.if defined(MUTT_CONFIGURE_ARGS)
|
|
|
|
CONFIGURE_ARGS+= ${MUTT_CONFIGURE_ARGS}
|
|
|
|
.endif
|
2011-01-04 06:39:52 +01:00
|
|
|
|
|
|
|
OPTIONS= MUTT_CYRUS_SASL2 "Enable SASL2 authentication" off \
|
|
|
|
MUTT_IMAP_HEADER_CACHE "Enable imap header cache" off \
|
|
|
|
MUTT_IDN "Enable idn support" off \
|
|
|
|
MUTT_MAILDIR_HEADER_CACHE "Enable maildir header cache" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_MUTT_CYRUS_SASL2)
|
|
|
|
LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_MUTT_MAILDIR_HEADER_CACHE)
|
|
|
|
WITH_MUTT_IMAP_HEADER_CACHE= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_MUTT_IMAP_HEADER_CACHE)
|
|
|
|
USE_BDB= 42+
|
|
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/lib/libidn.so) && !defined(WITHOUT_MUTT_IDN)
|
|
|
|
WITH_MUTT_IDN= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_MUTT_IDN)
|
|
|
|
LIB_DEPENDS+= idn:${PORTSDIR}/dns/libidn
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MUTT_CYRUS_SASL2)
|
|
|
|
CONFIGURE_ARGS+= --with-sasl=${LOCALBASE}
|
|
|
|
.endif
|
2004-05-17 08:42:26 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
2011-01-04 06:39:52 +01:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
2004-05-17 08:42:26 +02:00
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS=""
|
2000-08-28 20:21:02 +02:00
|
|
|
.endif
|
2004-09-03 22:11:04 +02:00
|
|
|
.if defined(WITH_MUTT_IDN)
|
2011-01-04 06:39:52 +01:00
|
|
|
CONFIGURE_ARGS+= --with-idn
|
2004-09-03 22:11:04 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-idn
|
|
|
|
.endif
|
2011-01-04 06:39:52 +01:00
|
|
|
.if defined(WITH_MUTT_IMAP_HEADER_CACHE)
|
|
|
|
CONFIGURE_ARGS+= --enable-hcache --without-gdbm --with-bdb
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-hcache
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_MUTT_MAILDIR_HEADER_CACHE)
|
|
|
|
CONFIGURE_ARGS+= --without-qdbm
|
|
|
|
.endif
|
2002-01-16 20:57:25 +01:00
|
|
|
|
2001-12-09 00:56:38 +01:00
|
|
|
NOMANCOMPRESS= yes
|
2011-01-04 06:39:52 +01:00
|
|
|
MAN1= flea.1 mutt.1 muttbug.1 mutt_dotlock.1 smime_keys.1
|
2007-04-18 23:01:55 +02:00
|
|
|
MAN5= muttrc.5 mbox.5 mmdf.5
|
1999-09-05 22:04:07 +02:00
|
|
|
|
|
|
|
pre-configure:
|
2002-06-24 01:12:59 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
2011-01-04 06:39:52 +01:00
|
|
|
${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-nodoc-contrib
|
2002-06-24 01:12:59 +02:00
|
|
|
.endif
|
2004-09-03 22:11:04 +02:00
|
|
|
(cd ${WRKSRC}; ${ACLOCAL} -I m4; ${AUTOHEADER})
|
2001-12-02 19:36:54 +01:00
|
|
|
|
2002-01-16 20:57:25 +01:00
|
|
|
post-configure:
|
2002-11-28 19:10:52 +01:00
|
|
|
@${REINPLACE_CMD} -E "\
|
|
|
|
s|^(s%\@ACLOCAL\@%).+(%g)|\1${ACLOCAL}\2|; \
|
|
|
|
s|^(s%\@AUTOCONF\@%).+(%g)|\1${AUTOCONF}\2|; \
|
|
|
|
s|^(s%\@AUTOMAKE\@%).+(%g)|\1${AUTOMAKE}\2|; \
|
|
|
|
s|^(s%\@AUTOHEADER\@%).+(%g)|\1${AUTOHEADER}\2|" \
|
2002-01-16 20:57:25 +01:00
|
|
|
${BUILD_WRKSRC}/config.status
|
1999-09-05 22:04:07 +02:00
|
|
|
|
2002-06-24 01:12:59 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
1999-09-05 22:04:07 +02:00
|
|
|
post-install:
|
2007-04-18 23:01:55 +02:00
|
|
|
${INSTALL_DATA} ${_DISTDIR}/INSTALL.JA-PATCH.ja ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/README.JA-PATCH.ja ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/manual-ja-patch.ja.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/usage-japanese.ja.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/INSTALL.JA-PATCH.ja.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/README.JA-PATCH.ja.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/manual-ja-patch.ja.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${_DISTDIR}/usage-japanese.ja.html ${DOCSDIR}
|
2002-05-22 20:56:00 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/manual_ja.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/manual_ja.tex ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/manual_ja.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/manual_ja.sgml ${DOCSDIR}
|
2004-09-03 22:11:04 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/manual.ja.txt ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/manual.ja.html ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/manual.ja.sgml ${DOCSDIR}
|
2002-06-24 01:12:59 +02:00
|
|
|
.endif
|
1999-09-05 22:04:07 +02:00
|
|
|
|
2011-01-04 06:39:52 +01:00
|
|
|
.include <bsd.port.post.mk>
|