Building libdxf from scratch, either from a tarball or from the git repository, requires (at least):
And for generating documentation:
and any other dependency these packages may require.
YMMV with lesser version numbers, these are the minimum versions I use to develop libdxf with.