Dice the mango relatively small and put in a small saucepan with the other ingredients. Stir, bring to a boil and allow to simmer around 20-30 minutes until it thickens (you can test a small amount on a cold plate and check if it sets).
Can and store - use proper canning practices, sterilizing the jar, if you plan to keep for any length of time. If using immediately, you can use a clean but non-sterile jar/closed container and store in the fridge for around a week.
Notes
As noted above, try to avoid mango that has stringy flesh, or you may need to strain the mixture before storing. Use ripe but ideally not overripe fruit.