Monday, March 23, 2009

Tip: Use SUB_LIST to discover a port's VAR paths on FreeBSD

I was looking for man pages, READMEs and assorted information on the nvidia-driver port and couldn't recall where I'd seen the port's installed documentation.

Enter SUB_LIST for the rescue:
  • % cd /usr/ports/x11/nvidia-driver
  • % make -V SUB_LIST
PREFIX=/usr/local LOCALBASE=/usr/local X11BASE=/usr/local DATADIR=/usr/local/share/nvidia-driver DOCSDIR=/usr/local/share/doc/NVIDIA_GLX-1.0 EXAMPLESDIR=/usr/local/share/examples/nvidia-driver WWWDIR=/usr/local/www/nvidia-driver ETCDIR=/usr/local/etc/nvidia-driver
SUB_LIST kindly outputs a list of VAR=VALUE pairs, showing useful information such as PREFIX and DOCSDIR.

Pretty nice eh? ;)

Point to http://www.freebsd.org/doc/en/books/porters-handbook/using-sub-files.html for further information on ports and SUB_LIST.

No comments: