[mad-dev] [patch] add pkg-config support