Combine all the ingredients in a large preserving pan. Heat until the sugar is dissolved, then bring to a boil, reduce the heat and simmer, stirring frequently, until the mixture is thick and pulpy, about 1 ½ hours.
Let the mixture cool, pour into sterilized jars, and seal.