Tax calculation for foreign stocks and currency exchange

I had transferred USD from US to India in a brokerage account in 2010. I currently have a stock portfolio in India. I want to sell the stock and repatriate the money back to US.

My question is how do I account for the capital loss/gain on the stocks AND the capital loss on the foreign exchange?