I found this page whilst trying to get Geeklog installed on my FreeBSD server... having the same problem as above.
I was attempting to install PHP4 from ports, the PHP ports have been updated lately, and split into smaller more manageable parts...
Install /usr/ports/lang/php4 (or /usr/ports/www/mod_php4), and then install the other php parts you need...
PCRE for example is in /usr/ports/lang/php4-extensions.
MySQL in /usr/ports/databases/php4-mysql.
A bit confusing to say the least, but reminds me to always read /usr/ports/CHANGES and /usr/ports/UPDATING after doing a cvsup...
Regards,
Mike O'Hara