Combine basil and garlic in a food processor and blend to a fine paste.
Add pine nuts; process until smooth.
Add cheese and process again until smooth.
WIth the machine running, pour the olive oil in the food processor and blend until smooth. If the pesto seems too thick, pour in a few tablespoons warm water.
Freeze in ice cube trays or muffin tins and transfer to jars when frozen. May also be frozen in small resealable bags.