The BUILD_DEPENDS variable is not set correctly in the webkit-gtk2 port. So if the flex port is not installed previously (possibly to build another port) /usr/bin/flex is used and the build fails. I noticed this because I removed the flex port from my system right before attempting to build webkit-gtk2.
Fix: Apply the patch contained in the attachment.
Patch attached with submission follows:
How-To-Repeat: cd /usr/ports/www/webkit-gtk2
It will say "webkit-gtk2-126.96.36.199 depends on executable: flex - found"
Over to maintainer (via the GNATS Auto Assign Tool)
Take this one, I'm working on some webkit patches right now.
kwm 2009-12-23 20:17:31 UTC
FreeBSD ports repository
Look in LOCALBASE for flex, so we don't pick up the version from base. 
Add networkreponce support from upstream. 
Add a patch from upstream, to use the gzip encoding support in libsoup 2.28.2.
However if a website still displays junk. This means that it usesing deflate
which is not working in libsoup right now (like cvsweb.freebsd.org) 
PR: ports/141859 
Submitted by: Carlos A. M. dos Santos <firstname.lastname@example.org>
Obtained from: Webkit svn trunk.
Revision Changes Path
1.15 +2 -1 ports/www/webkit-gtk2/Makefile
1.1 +35 -0 ports/www/webkit-gtk2/files/patch-add-gzip (new)
1.1 +215 -0 ports/www/webkit-gtk2/files/patch-webkitnetworkresponse (new)
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"