LIRC
Linux Infrared Remote Control
LIRC is a package that supports receiving and sending IR signals of IR remote controls, adding functionality and flexibility to the basic support in the Linux kernel. Support for LIRC is ubiquitous in Linux HTPC applications; it's also packaged in all major Linux distributions.
Despite it's name, LIRC also works on OSX.