Is it enough to install Xcode?
So I've inspected macports sources and it turns out that this warning is displayed, when directory /usr/include or executable /usr/bin/make is missing. While I have working /usr/bin/make, directory /usr/include was indeed missing. Installing command-line tools using xcode-select --install fixed it.