aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mutt-devel
diff options
context:
space:
mode:
authordwcjr <dwcjr@FreeBSD.org>2001-10-30 01:41:59 +0800
committerdwcjr <dwcjr@FreeBSD.org>2001-10-30 01:41:59 +0800
commit5b8a36f47579a7bd71c052028220a22923b5dcf0 (patch)
treef071a801a69fe7ded49cb20ed3788399d155d07b /mail/mutt-devel
parented3bfd1931831064d21c971390e2514e997e5229 (diff)
downloadfreebsd-ports-gnome-5b8a36f47579a7bd71c052028220a22923b5dcf0.tar.gz
freebsd-ports-gnome-5b8a36f47579a7bd71c052028220a22923b5dcf0.tar.zst
freebsd-ports-gnome-5b8a36f47579a7bd71c052028220a22923b5dcf0.zip
Add news posting support
PR: 31585 Submitted by: maintainer
Diffstat (limited to 'mail/mutt-devel')
-rw-r--r--mail/mutt-devel/Makefile9
-rw-r--r--mail/mutt-devel/files/extra-patch-inews11
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"