The best info you will get on how to install a program from it's source is too look in the README and INSTALL files. Most, if not all, have those two files that contain instructions on how to compile the program
For example, if I have the file program-src.tar.gz :
I would do tar zxvf program-src.tar.gz, this will extract the files. Then, I would read the README and INSTALL files. In most cases, you will end up doing the following:
./configure && make && make install
As I said before, this is in most cases and it can varie. Your best bet is to read the two files.