In Jamnagar, Reliance refinery is converting sea water to potable water by Flash Evaporation. It needs energy.
Reverse Osmosis is another technique, which uses membrane technology. Needs lots of pumping energy. Most of Middle east and offshore oil platform as well as ships use them to produce potable water. Ofcourse nothing to beat natural rain water where nature does the job.