libfreefare

"The libfreefare project aims to provide a convenient API for MIFARE card manipulations"
It's based on libnfc, which is already in homebrew.