I had to replace: if BUILD_PRIVATE_GLEW with: ifeq ($(BUILD_PRIVATE_GLEW), 1) in /src/Makefile.sources, line 325. This is *after* applying the patch file from this post: http://lists.cairographics.org/archives/cairo/2011-May/021927.html Now I just need to resolve some png dependencies. :)