Help needed: How to make a library from a .ino-file?

Oh, ok, that looks ok to me, and I can compile it just fine too with my own bare bones sketch, that includes HardwareSerial. I had to comment out Serial1-3 in this system. It did compile for Mega with those lines uncommented. The error does sound like some kind of dependency mix up though.