From How do I find the build dependencies of a package?, there are some commands for finding build package dependencies:
- full list of dependencies: apt-rdepends --build-depends openoffice.org
- dependencies not installed: apt-rdepends --build-depends --print-state openoffice.org | grep NotInstalled
- dependencies for top most package: apt-rdepends --build-depends --follow=DEPENDS
- show control file for source: apt-cache showsrc
| grep ^Build-Depends - show control file for source: apt-cache showsrc