Well, you could download the pre-built binary version from the cgminer thread instead:
http://bitcointalk.org/index.php?topic=28402.0If you still want to try building from git, you'll need the curses dependency as well:
sudo apt-get install libncurses5-dev
Then just follow the build instructions in the README. It's good to know how to do this, as cgminer is under active development, and you can get early access to new features from git. But the pre-built binary is obviously easier.
Good luck
