ports/99285: mail/mutt-devel port WITH_NCURSES_PORT doesn't use ncurses port
Udo Schweigert
Udo.Schweigert at siemens.com
Thu Jun 22 06:00:43 UTC 2006
The following reply was made to PR ports/99285; it has been noted by GNATS.
From: Udo Schweigert <Udo.Schweigert at siemens.com>
To: bug-followup at FreeBSD.ORG
Cc: Edwin Groothuis <edwin at FreeBSD.ORG>
Subject: Re: ports/99285: mail/mutt-devel port WITH_NCURSES_PORT doesn't use ncurses port
Date: Thu, 22 Jun 2006 07:55:45 +0200
On Thu, Jun 22, 2006 at 01:53:04 +0000, Edwin Groothuis wrote:
> Maintainer of mail/mutt-devel,
>
> Please note that PR ports/99285 has just been submitted.
Here is my patch (includes some docu about the new knob):
diff -ru /usr/ports/mail/mutt-devel/Makefile ./Makefile
--- /usr/ports/mail/mutt-devel/Makefile Tue Mar 21 11:06:35 2006
+++ ./Makefile Thu Jun 22 07:47:24 2006
@@ -25,6 +25,9 @@
# environment to get slang function properly.
# The default version for slang is 1.x. Define WITH_MUTT_SLANG2 if you want
# to use the slang version 2.x
+# The default version for ncurses is that which comes with the operating
+# system. If you want to use the ncurses supplied by the ports-system define
+# WITH_MUTT_NCURSES_PORT.
#
# If you want to install the mutt documentation in html and ps format define:
# WITH_MUTT_HTML
@@ -279,7 +282,12 @@
.if defined(NOPORTDOCS)
XML_USED= no
.endif
-.if defined(MUTT_USES_NCURSES) && ${OSVERSION} < 400000
+.if defined(MUTT_USES_NCURSES)
+.if ${OSVERSION} < 400000 || defined(WITH_MUTT_NCURSES_PORT)
+MUTT_USES_NCURSES_PORT= yes
+.endif
+.endif
+.if defined(MUTT_USES_NCURSES_PORT)
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include
.elif defined(MUTT_USES_SLANG1)
@@ -348,7 +356,7 @@
.if defined(WITH_MUTT_LOCALES_FIX)
CONFIGURE_ARGS+= --enable-locales-fix
.endif
-.if defined(MUTT_USES_NCURSES) && ${OSVERSION} < 400000
+.if defined(MUTT_USES_NCURSES_PORT)
CONFIGURE_ARGS+= --with-curses=${LOCALBASE}
.elif defined(MUTT_USES_SLANG)
CONFIGURE_ARGS+= --with-slang=${LOCALBASE}
This fixes the PR which then can be closed.
Best regards
--
Udo Schweigert, Siemens AG | Voice : +49 89 636 42170
CT IC CERT, Siemens CERT | Fax : +49 89 636 41166
D-81730 Muenchen / Germany | email : udo.schweigert at siemens.com
More information about the freebsd-ports-bugs
mailing list