# Note: depends on flex
# Note: depends on bison
# Note: depends on perl
# Note: depends on Python2
# Note: depends on cmake
wget -c http://ftp.stack.nl/pub/users/dimitri/doxygen-1.8.10.src.tar.gz
tar -xzf doxygen-1.8.10.src.tar.gz
cd doxygen-1.8.10
sed -i -e '/^#error /d;s/YY_FLEX_MINOR_VERSION>=5 && .*/YY_FLEX_MINOR_VERSION>=6/' src/*.l # Remove inaccurate version checks
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
make # Doesn't mind -j#
make install