Ireland captain Porterfield makes century