See http://pkgbuild.com/~lcarlier/mesa-git/...