Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Nov 2017 20:14:57 +0800
From:      by <by@meetlost.com>
To:        Zhihao Yuan <lichray@gmail.com>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: Build nvi 2.1.3 on Mac, missing build instructions
Message-ID:  <B96AB7F8-6373-4C42-A4F8-72BB43E9E258@meetlost.com>
In-Reply-To: <4AA49183-7007-4AA6-92E2-C97361A01C21@meetlost.com>
References:  <22F67493-EA01-4190-BAA1-598B30F8517E@meetlost.com> <CAGsORuASq46zRKi123iiNwY8%2BUvi0h2AKpqW7pYzpHJvUxQbkg@mail.gmail.com> <BF1F59A8-D41A-4CB9-A45D-3AA9A6EDE7C1@meetlost.com> <a1db0e55436ef63eb22bb841504371a3@nuxi.ca> <DFF521E1-35D6-47EE-AB72-6594D82922F8@meetlost.com> <CAGsORuCs7v4T9jwNJx5snvFHVy%2BLJy64Ah=AsjAxcjvMMGur0g@mail.gmail.com> <4AA49183-7007-4AA6-92E2-C97361A01C21@meetlost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I have tried build nvi from FreeBSD sources directly on my Mac. And I =
got the nvi binary finally :-)

Basic steps are below:

1. Install required dependency libs(bsdmake and ncurses)

	$ brew install bsdmake
	$ brew install ncurses

2. Checkout the sources from FreeBSD svn repo

	$ svn co https://svn.freebsd.org/base/releng/10.3/usr.bin/vi =
<https://svn.freebsd.org/base/releng/10.3/usr.bin/vi>;
	$ cd vi/
	$ svn co https://svn.freebsd.org/base/releng/10.3/contrib/nvi =
<https://svn.freebsd.org/base/releng/10.3/contrib/nvi>;
	$ cp /usr/include/db.h ./
	$ mkdir contrib
	$ mv nvi contrib/

3. Make some changes, there is a diff file available via below link

	http://by.meetlost.com/diffs/port_nvi_to_macOS.diff.txt =
<http://by.meetlost.com/diffs/port_nvi_to_macOS.diff.txt>;


by=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B96AB7F8-6373-4C42-A4F8-72BB43E9E258>