Well, if you understand FreeBSD Ports system, and want to testing out your autotools skills, find why packaging libpthread-stubs FreeBSD port is giving errors on 7.0-CURRENT system, whereas successful in 6.0-STABLE system.
Build logs are available for 7.0-CURRENT, and 6.0-STABLE. Source for libpthread-stubs is available from http://xcb.freedesktop.org/dist/libpthread-stubs-0.1.tar.bz2.
Happy Hacking :-D