# Note: depends on libffi
# Note: depends on cmake
# Note: depends on startup-notification
# Note: depends on boost
# Note: depends on libXext
# Note: depends on libXdamage
# Note: depends on libXcomposite
# Note: depends on libXrandr
# Note: depends on libXinerama
# Note: depends on libICE
# Note: depends on libSM
# Note: depends on glibmm
# Note: depends on intltool
# Note: depends on mesa
wget -c http://releases.compiz.org/0.9.5.92.1/compiz-0.9.5.92.1.tar.bz2
tar -xjf compiz-0.9.5.92.1.tar.bz2
cd compiz-0.9.5.92.1
sed -i -e '1i#include <dirent.h>' include/compiz.h # compiz.h defines a macro called scandir, so make sure dirent.h gets to declare its scandir function first to avoid errors
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_CXX_FLAGS="-std=c++11" ..
make # does not work with -j#
make install