From Amarok Wiki

Compilation Instructions for Amarok 1.4.x

Extract the downloaded tarball thus:

tar xjf amarok-x.y.z.tar.bz2
Obviously you must replace x.y.z with the version of Amarok you have downloaded, eg:
tar xjf amarok-1.4.10.tar.bz2
  • Change into the directory that was extracted from the tarball, it should have the form amarok-x.y.z, eg:
cd amarok-x.y.z
  • Read the README file that is in this directory, it may contain specific information that you will need when attempting to build and install Amarok.
  • Check you have the mandatory dependencies Amarok requires. If you aren't sure if you have these dependencies installed, the configure script will tell you.
  • Ubuntu or Debian users: to solve other dependencies, use this
sudo apt-get build-dep amarok
  • Fedora users: to solve other dependencies, use this
sudo yum resolvedep amarok 
The following are a couple of possible configuration arguments, to see full list try ./configure --help:
--enable-mysql
--enable-postgresql
--with-libgpod
NOTE: For database support, you will need to have the development (dev) packages for your database distribution installed.
Note: libgpod must be at least version 0.4.2
  • Build and install Amarok with the following commands:
./configure --prefix=`kde-config --prefix`
make
su -c "make install"
If you are compiling a beta, please consider compiling:
./configure --enable-debug=full --prefix=`kde-config --prefix`
as this greatly helps us to fix crash bugs. You can find details about all the supported configure flags here.
  • You're done! Type amarok to start Amarok.