In order to compile AFKMud on FreeBSD 6.0 (Generic, not updated, etc), I had to perform a few small modifications to the codebase. Linked at the bottom of this post is a patch to apply in your src/ dir which should get everything compiling for you.
- It comments out the required line in the Makefile for you.
- It updates sha256.c to #include "sys/endian.h" rather than "endian.h" which results in a failed compile because it can't find the file.
- It changes mud.h so that alternate STRFREE and DISPOSE macros are used when compiled on FreeBSD, as the default ones cause a compile error. (I think I got the alternate ones somewhere on this forum, but I can't find the topic at the moment.)
The patch: http://snackbox.org/~nd/afkmud-freebsd.patch