Get your taxes done using TurboTax

Foreign long term capital gains are derived from the broker's supplemental information.  The capital gains are any amount form the 1099-DIV box 2a  that are foreign.