For some reason, the patch discussed in #41498 as shown here was not comletely used on OS X Mountain Lion. Especially the compiler.blacklist-append *clang* was missing1). It was included by
compiler.blacklist-append *clang*
port edit lirc
After this2),
sudo port build lirc
started by installing llvm first.
OSX lirc macports