Use the first option ("Present Perfect in the Future", or "Future Perfect"; terminology varies)...

> 1: *If you give me a cigarette it **will be** the first time I **have smoked** since I quit*  
 ...as opposed to "standard" Present Perfect referring to the actual Past...  
 2: *I just had a cigarette. It **was** the first one I **have smoked** since I quit*