Without knowing what software it is that you're trying to build, I
can only make basic suggestions about how to compile something
against the MacPorts libraries. See this message from earlier today:

http://lists.macosforge.org/pipermail/macports-users/2008-January/ 008313.html

Especially see the "Bottom line" at the end.

I have been trying this, but it does not solve  my problem.

export CFLAGS="-I/opt/local/include"
export LDFLAGS="-L/opt/local/lib"
I am trying to compile icedtea, which as far as I know is not in the Macports.
At least, freetype-devel is installed, I only have to find a way to get configure to find it.

Thanks for you help!
Michael