diff options
Diffstat (limited to 'mail/mutt-devel')
-rw-r--r-- | mail/mutt-devel/Makefile | 9 | ||||
-rw-r--r-- | mail/mutt-devel/files/extra-patch-inews | 11 |
2 files changed, 19 insertions, 1 deletions
diff --git a/mail/mutt-devel/Makefile b/mail/mutt-devel/Makefile index 81dd2d9af00a..c6c4b0681acd 100644 --- a/mail/mutt-devel/Makefile +++ b/mail/mutt-devel/Makefile @@ -74,6 +74,13 @@ USE_OPENSSL= yes .if defined(WITH_MUTT_HTML) BUILD_DEPENDS+= sgmlfmt:${PORTSDIR}/textproc/sgmlformat .endif +.if defined(WITH_MUTT_NNTP) +.if ! exists(${LOCALBASE}/bin/inews) +BUILD_DEPENDS+= nn-inews:${PORTSDIR}/news/nn +pre-configure:: + ${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-inews +.endif +.endif .if defined(WITH_MUTT_LOCALES_FIX) CONFIGURE_ARGS+= --enable-locales-fix @@ -122,7 +129,7 @@ post-patch:: @${PERL} -pi.fbsd -e 's,/usr/bin/gpg,${LOCALBASE}/bin/gpg,g' \ ${WRKSRC}/contrib/gpg.rc -pre-configure: +pre-configure:: (cd ${WRKSRC}; aclocal -I m4) .if !defined(NOPORTDOCS) diff --git a/mail/mutt-devel/files/extra-patch-inews b/mail/mutt-devel/files/extra-patch-inews new file mode 100644 index 000000000000..512388f813f5 --- /dev/null +++ b/mail/mutt-devel/files/extra-patch-inews @@ -0,0 +1,11 @@ +--- configure.in.orig2 Mon Oct 29 10:12:28 2001 ++++ configure.in Mon Oct 29 10:16:16 2001 +@@ -456,7 +456,7 @@ + AC_ARG_ENABLE(nntp, [ --enable-nntp Enable NNTP support], + [ if test x$enableval = xyes ; then + AC_DEFINE(USE_NNTP) +- AC_PATH_PROG(INEWS, inews, no, $PATH:/usr/sbin:/usr/lib) ++ AC_PATH_PROG(INEWS, nn-inews, no, $PATH:/usr/sbin:/usr/lib) + AC_DEFINE_UNQUOTED(INEWS, "$ac_cv_path_INEWS -hS") + MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o" + need_socket="yes" |