Add custom field to taxonomy terms
I think this article will be usefull for You because taxonomy is one of entity types:
Working programmatically with fields in Drupal 7

So You should set "entity_types" as taxonomy.