ginac: depends on pkg-config

Fixes #19143.