Retirement tax questions

I have the same situation. I donated some stock I’ve held for a long time to my church. Had I sold them I would have paid taxes on sizable  capital gains .  I also noted they asked for my original purchase price, which is irrelevant , but I entered if and they didn’t use it to compute capital gains.