Any Pigmen can transform into a Werepig when there's a full moon, or they are fed a combination of four monster meats. Werepigs are hostile creatures, and a transformation will typically last four hours. Multiple Werepigs can spawn at a time, and they are very dangerous. I suggest you keep your distance until the duration of the night.