what shell are you using?
(look at the output of \"echo $SHELL\")
If it says \"/bin/sh\" or \"/bin/ksh\" you could use \"FLAVOR=\'mysql\' make install.
I assume you are typing your commands on a root shell which is normally the csh (output of \"echo $SHELL\" is \"/bin/csh\").
There you have to use the \"setenv\" command to set enviroment variables. Try
\"setenv FLAVOR mysql\", cd to the directory of the php port, make and make install.
This should work.
If this does not work and you are using an OpenBSD system (i am not sure how this is one Free/NetBSD) look at the tail of /etc/rc.conf
There should be a line \"shlib_dirs=/usr/local/lib/mysql\". Maybe this is similar on FreeBSD.
Another suggestions is looking at the output of the sample startup script (it may be located in \"/usr/local/lib/mysql\" and is named \"startup.sh\".
If you are getting an error concerning libpthread.so you should change the line that says something similar to \"/sbin/ldconfig -m /usr/local/lib/mysql\" to \"sbin/ldconfig -m /usr/local/lib/pth /usr/local/lib/mysql\"
That was a problem that occured to me when installing the 2.9OpenBSD port of mysql.
hth