devil: fix build against jasper >= 2.0.17
devil: fix build against jasper >= 2.0.17

The jasper has changed its internal callback API (twice!) making
it very ugly to support multiple versions.  This meant that our
"devil" package stopped being bottleable once jasper was updated.

This patch is a gross hack, but it is waht other projects like gdal
are using to workaround the problem for now.

I opened it as a PR against the DevIL github, but it's been quiet
since 2017 so no idea if/when it will get merged upstream.

Closes #66616.

Signed-off-by: chenrui <5fd29470147430022ff146db88de16ee91dea376@gmail.com>
Signed-off-by: BrewTestBot <8a898ee6867e4f2028e63d2a6319b2224641c06c@users.noreply.github.com>

Homebrew/homebrew-core,Linuxbrew/homebrew-core,uyjulian/homebrew-core,mbcoguno/homebrew-core,cblecker/homebrew-core,mfikes/homebrew-core,nandub/homebrew-core,dsXLII/homebrew-core,spaam/homebrew-core,dsXLII/homebrew-core,chrisfinazzo/homebrew-core,uyjulian/homebrew-core,stgraber/homebrew-core,zyedidia/homebrew-core,Moisan/homebrew-core,mbcoguno/homebrew-core,JCount/homebrew-core,nandub/homebrew-core,zyedidia/homebrew-core,adam-moss/homebrew-core,Moisan/homebrew-core,Homebrew/homebrew-core,nbari/homebrew-core,adam-moss/homebrew-core,sjackman/homebrew-core,chrisfinazzo/homebrew-core,nbari/homebrew-core,stgraber/homebrew-core,makigumo/homebrew-core,filcab/homebrew-core,lemzwerg/homebrew-core,Linuxbrew/homebrew-core,mbcoguno/homebrew-core,lemzwerg/homebrew-core,spaam/homebrew-core,JCount/homebrew-core,sjackman/homebrew-core,makigumo/homebrew-core,mfikes/homebrew-core,filcab/homebrew-core,cblecker/homebrew-core