The official documentation has moved to http://docs.couchdb.org — The transition is not 100% complete, but http://docs.couchdb.org should be seen as having the latest info. In some cases, the wiki still has some more or older info on certain topics inside CouchDB.
Tested on NetBSD 5.0
pkg_add icu erlang spidermonkey gmake
Download the source tarball from http://couchdb.apache.org/downloads.html untar and cd in to the directory. Then configure and compile:
./configure --with-js-lib=/usr/pkg/lib --with-js-include=/usr/pkg/include --with-erlang=/usr/pkg/lib/erlang/usr/include gmake gmake install
Take care of permissions:
su useradd couchdb group add couchdb touch /usr/local/var/run/couchdb.pid chown couchdb:couchdb /usr/local/var/run/couchdb.pid chown couchdb:couchdb /usr/local/var/log/couchdb/couch.log chown couchdb:couchdb /usr/local/var/lib/couchdb