Install rlwrap on a Mac, OS X 10.7.3

There are several projects out there package open source software for OS X. The fink project is one of them, but I'm not sure how active it is anymore.

Alternatives to fink include MacPorts and Homebrew. With MacPorts installed on my system, I can:

$ sudo port install rlwrap
Password:
--->  Computing dependencies for rlwrap
--->  Fetching archive for rlwrap
--->  Attempting to fetch rlwrap-0.37_1.darwin_11.x86_64.tbz2 from http://packages.macports.org/rlwrap
--->  Fetching rlwrap
--->  Attempting to fetch rlwrap-0.37.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/rlwrap
--->  Verifying checksum(s) for rlwrap
--->  Extracting rlwrap
--->  Configuring rlwrap
--->  Building rlwrap
--->  Staging rlwrap into destroot
--->  Installing rlwrap @0.37_1
--->  Activating rlwrap @0.37_1
--->  Cleaning rlwrap

And then:

$ rlwrap  --version
rlwrap 0.37