Before you try to compile it, you have to know that packages exist for FreeBSD. (ports/mail/libetpan). This is currently 0.29 for -stable, 0.30 for -current.