$ xcode-select --install
$ sudo port install openmotif
$ sudo port install grace
$ xmgrace
$ cd Desktop
$ wget ftp://ftp.fu-berlin.de/unix/graphics/grace/src/grace5/grace-5.1.23.tar.gz
$ tar xzvf grace-5.1.23.tar.gz
$ cd grace-5.1.23
$ ./configure --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib --with-motif-library=-lXm --with-extra-incpath=/usr/OpenMotif/include:/usr/local/fftw-3.3.4/include --with-extra-ldpath=/usr/OpenMotif/lib:/usr/local/fftw-3.3.4/lib
$ make
$ sudo make install
$ echo 'export PATH=$PATH:/usr/local/grace/bin' >> ~/.bashrc
$ source ~/.bashrc
$ xmgrace
$ xmgrace
$ DISPLAY=:0.0 xmgrace
$ DISPLAY=:0.0 xmgrace