copy the context directory into the amarok src folder (add the labels folders into the context/applets and context/engines folders).
overwrite the CMakeLists.txt files or edit them accordingly.

see building_amarok2_in_home.txt for information on building amarok.
