This document does not cover this precisely, because it is not in its scope. Since they are separate packages the only things they have in common are Imlib and Imlib's dependencies and ordering after that is taken care of is immaterial. While I recommend looking to each package's documentation, they all tend to say the same thing. Unpackage it and move to the directory it creates.
Type make , and wait for it to finish making.
Type make install and wait for it to finish installing. Lastly, to make sure your system rescans the libraries, type ldconfig after each. 4.5 Make went okay, but make install didn't. No such file or directory Delete the offending file, and try again. You might want to look inside the Makefile to see what else is installed, and delete them too.