You can always write a recipe from scratch. However, two choices exist that can help you quickly get a start on a new recipe:
recipetool
:
A tool provided by the Yocto Project that automates
creation of a base recipe based on the source
files.
Existing Recipes: Location and modification of an existing recipe that is similar in function to the recipe you need.