...
wget https://github.com/Itseez/opencv/archive/3.0.0.zip
unzip 3.0.0.zip
mkdir /sw/opencv/opencv-3.0.0/build
cd /sw/opencv/opencv-3.0.0/build
cmake -D CMAKE_BUILD_TYPE=3.0.0 -D CMAKE_INSTALL_PREFIX=/sw/opencv/opencv-3.0.0 ..
make -j2
mkdir /sw/opencv/opencv-3.0.0/build/doc
make -j2
make install
Reference
1. http://docs.opencv.org/3.0-last-rst/doc/tutorials/introduction/linux_install/linux_install.html
2. http://opencv.org/quickstart.html
...