Checkinstall         On a debian or ubuntu / kubuntu system, it's usually preferable to use checkinstall instead of "make install"

%prevogre%
On a debian or ubuntu / kubuntu system, it's usually preferable to use checkinstall instead of "make install".

Using checkinstall will also "make install", but a debian package ( .deb ) containing all ogre-related files is created.
This has multiple advantages. First, it prevents any package from overwriting ogre-related files without explicit permission. It also avoids the mess that a normal make install creates, especially if you decide to rm the source directory before "make uninstall"-ing.

sudo apt-get install checkinstall

./bootstrap
./configure
make
sudo checkinstall


During checkinstall, you'll be asked if you want to change the defaults. You'll probably have to change option 3 (Version) to 1.0.6 since it's not autodetected correctly. The rest should ok.

Checkinstall will automatically install ogre, but after the installation, you'll find a brand new custom deb in the ogrenew folder. yay! ;)