It will definitely cost more than just buying a complete bike. The total cost depends on how patient you're willing to be on eBay. If you buy everything at once from a lbs, it will cost a fortune.
The good news is that it's an amazing learning experience. See
this link for my list of tips from my first build.
Good luck.