Hi Laurent!
A long time ago I think we talked about not shipping libraries like glew zlib or libpng in sfml where you argued you want these for the users to ease building. While I'd argue that at least zlib, libpng, libjpeg and maybe the glew stuff is easily available for Linuxers I accept your choice.
However the current status requires a rather large patch for me that needs updating for new SFML releases and others might also prefer using libraries from their system (e.g. because some bug is fixed there?) I'd propose the following:
- In the SFML code use the paths that would be used on a normal Unix/Linux system like #include <GL/glew.h>
- Place the needed libraries somewhere in the top-level directory, arranging the includes and stuff in the same way they're found on Unixes and referenced from Code
- Use -I so the build works with these shipped copies
This would mean all that is needed to not use the shipped copies is a rm -rf used-libraries/*
Optionally the Makefiles could get a option to disable (selectively?) some of the copies as needed.
Hopefully this won't cause much disruption in SFML so if you think a implementation like that will have a chance getting into SFML I'd start creating the patches.
Regards
Christoph