well,if you wanna search a program you want to install,you can enter the /usr/ports,then type like this:
make search name=file
to search the application you wanna.
or if you can type like this:
make search key=keyword
to search the file which filename include the keyword.
For more information about ports you should just read the FreeBSD Hankbook:w :w