sdl: Add optional support for X11 video driver
sdl: Add optional support for X11 video driver

The Quartz driver in the SDL 1.2 library doesn't work with wrappers
(like go, haskell, ...) which hijack the main() function (as opposed to
using SDL_main). One solution is to use the (deprecated) X11 SDL video
driver backend, in combination with the open source XQuartz server.
Homebrew's current formula builds SDL without the X11 backend by
default. This change adds an optional installation option that
re-enables the X11 backend.

Closes Homebrew/homebrew#22108.

Signed-off-by: Adam Vandenberg <34c2b6407fd5a10249a15d699d40f9ed1782e98c@gmail.com>

fvioz/homebrew-core,jabenninghoff/homebrew-core,adamliter/homebrew-core,ylluminarious/homebrew-core,bigbes/homebrew-core,rwhogg/homebrew-core,ilovezfs/homebrew-core,edporras/homebrew-core,zyedidia/homebrew-core,jvehent/homebrew-core,chrisfinazzo/homebrew-core,JCount/homebrew-core,fvioz/homebrew-core,jvillard/homebrew-core,andyjeffries/homebrew-core,JCount/homebrew-core,LinuxbrewTestBot/homebrew-core,LinuxbrewTestBot/homebrew-core,bcg62/homebrew-core,git-lfs/homebrew-core,Linuxbrew/homebrew-core,sjackman/homebrew-core,j-bennet/homebrew-core,rwhogg/homebrew-core,lemzwerg/homebrew-core,Homebrew/homebrew-core,maxim-belkin/homebrew-core,zmwangx/homebrew-core,DomT4/homebrew-core,grhawk/homebrew-core,kuahyeow/homebrew-core,jdubois/homebrew-core,robohack/homebrew-core,wolffaxn/homebrew-core,j-bennet/homebrew-core,uyjulian/homebrew-core,tkoenig/homebrew-core,grhawk/homebrew-core,mbcoguno/homebrew-core,aren55555/homebrew-core,filcab/homebrew-core,sjackman/homebrew-core,passerbyid/homebrew-core,forevergenin/homebrew-core,mahori/homebrew-core,phusion/homebrew-core,chrisfinazzo/homebrew-core,gserra-olx/homebrew-core,jvillard/homebrew-core,moderndeveloperllc/homebrew-core,battlemidget/homebrew-core,nandub/homebrew-core,bcg62/homebrew-core,adamliter/homebrew-core,spaam/homebrew-core,robohack/homebrew-core,Moisan/homebrew-core,straxhaber/homebrew-core,ShivaHuang/homebrew-core,maxim-belkin/homebrew-core,Moisan/homebrew-core,nandub/homebrew-core,gserra-olx/homebrew-core,mvbattista/homebrew-core,adam-moss/homebrew-core,BrewTestBot/homebrew-core,stgraber/homebrew-core,forevergenin/homebrew-core,lembacon/homebrew-core,kunickiaj/homebrew-core,mbcoguno/homebrew-core,moderndeveloperllc/homebrew-core,bfontaine/homebrew-core,aabdnn/homebrew-core,mahori/homebrew-core,mfikes/homebrew-core,lembacon/homebrew-core,kuahyeow/homebrew-core,mbcoguno/homebrew-core,bigbes/homebrew-core,Homebrew/homebrew-core,mfikes/homebrew-core,uyjulian/homebrew-core,mvitz/homebrew-core,git-lfs/homebrew-core,stgraber/homebrew-core,reelsense/homebrew-core,zmwangx/homebrew-core,aabdnn/homebrew-core,wolffaxn/homebrew-core,adam-moss/homebrew-core,sdorra/homebrew-core,dsXLII/homebrew-core,kunickiaj/homebrew-core,spaam/homebrew-core,jvillard/homebrew-core,mvitz/homebrew-core,BrewTestBot/homebrew-core,aren55555/homebrew-core,sdorra/homebrew-core,lasote/homebrew-core,phusion/homebrew-core,filcab/homebrew-core,mvitz/homebrew-core,FinalDes/homebrew-core,bcg62/homebrew-core,cblecker/homebrew-core,straxhaber/homebrew-core,lembacon/homebrew-core,mvbattista/homebrew-core,bfontaine/homebrew-core,smessmer/homebrew-core,cblecker/homebrew-core,nbari/homebrew-core,dsXLII/homebrew-core,ShivaHuang/homebrew-core,jvehent/homebrew-core,smessmer/homebrew-core,ilovezfs/homebrew-core,jdubois/homebrew-core,andyjeffries/homebrew-core,battlemidget/homebrew-core,jabenninghoff/homebrew-core,jdubois/homebrew-core,Linuxbrew/homebrew-core,lasote/homebrew-core,tkoenig/homebrew-core,makigumo/homebrew-core,zyedidia/homebrew-core,wolffaxn/homebrew-core,reelsense/homebrew-core,ylluminarious/homebrew-core,passerbyid/homebrew-core,lemzwerg/homebrew-core,FinalDes/homebrew-core,DomT4/homebrew-core,makigumo/homebrew-core,edporras/homebrew-core,nbari/homebrew-core