Texture mapping an NGon?

I’m not sure how to go about figuring out how to map texture coordinates for a 2D NGon (N sided polygon) How can this be done? The effect I’m trying to achieve is for the texture to fit on the polygon …