PvAPI support on Windows with MinGW (PR #1038 applied to the branch 2.4)
Add sort_by_key for oclMat.
Most codes are ported from AMD's Bolt library.
Four methods are implemented:

SORT_BITONIC,   // only support power-of-2 buffer size
SORT_SELECTION, // cannot sort duplicate keys
SORT_MERGE,
SORT_RADIX      // only support signed int/float keys
Rename PVAPI_DECLARATIONS to PVAPI_DEFINITIONS
Add IPP mean and sum functions
Fix build errors
bugfix #3121: corrected calculation of blue channel index
Some changes in sum and mean functions
Some modifications to sortByKey API.
Add documentation.
Fix doc build error.
Update OpenCVDetectPython.cmake

On my MacOS the output of the sphinx-build binary is the following:

Error: Insufficient arguments.

Sphinx v1.2b1
Usage: /usr/local/bin/sphinx-build [options] sourcedir outdir [filenames...]

...

I have installed sphinx, but without this change HAVE_SPHINX==0 for me, so I can't build docs.
Difference in method definition and declaration fixed (Bug #3189).
Merge pull request #1222 from philippefoubert:branch_2.4_pvapi
Merge pull request #1220 from asmorkalov:msmf_sizet_fix
fixing compilation with `-Werror=format-security` enabled
fixing java test after fix in OpenCV library
Merge pull request #1226 from apavlenko:fix_java_test_ellipse2poly
Merge pull request #1196 from rdm12:bugfix_3121_cvtcolor
Merge pull request #1225 from apavlenko:fix_format_security
Removed useless .*
Merge pull request #1216 from alekcac:sphinx