I can provide you my own if you want.
http://borg.uu3.net/ftp/pub/archive/MinGW/3.4.5/
You need to unpack basic components into C:\MinGW\ directory:
binutils-2.19.1-mingw32-bin.tar.gz
gcc-core-3.4.5-20060117-3.tar.gz
gcc-g++-3.4.5-20060117-3.tar.gz
make-3.81-20090914-mingw32-bin.tar.gz
Then you need to add C:\MinGW\bin into the PATH env variable.
You can also add some libs I have there:
jpeg-8c-lib.tgz
liblzo-2.03-mingw32-lib.zip
libpng-1.2.8-lib.tgz
libz-1.2.3-1-mingw32-dev.tar.gz
openssl-0.9.8l-mingw32-lib.zip
w32api-3.13-mingw32-dev.tar.gz
Remember that this is very outdated stuff
And OpenGL? Forget it I think. I recenetly tried to compile some oldish game using OpenGL.. Ugh it was hard to get thro, I installed Visual C 2005 EE.
I finally managed to compile the game but it didnt worked.
Im still not sure what are you aiming for? SDL2 and OpenGL are graphic libraries.
Mostly usefull for gaming. If you want to write simple game, I think its better to use
some ready to use game engine?
If you want some very basic 2D graph library, I can provide you GRX.
It will compile and work fine on Win2000 onwards and you can compile it with my MinGW.