Changed the node-gyp build to use pkg-config
We should probably drop the old versions soon...
for node >= v0.9.4 compat
Call cairo_surface_finish in ~Canvas when pdf
Fixes an issue where when a pdf surface isn't buffered and then is garbage collected, the toBuffer can be called and attempt to realloc the destroyed closure.
create* is annoying
This fixes the build on OSX when installing the dependencies through macports, which puts things in /opt/local
Adding support for grayscale JPEG images.
Versions up to 4.1.6 of GIFLIB defined a GIF_LIB_VERSION macro that was string-valued. Versions after 4.1.6 define integer-valued GIFLIB_MAJOR, GIFLIB_MINOR, and GIFLIB_RELEASE macros for the three components of the version. Check for GIF_LIB_VERSION, otherwise use the new macros.
The OS X version of grep doesn't support -P (--perl-regexp). It was breaking the building. Solved by slightly changing the RegExp and using -E (--extended-regexp).
First fall back to trying to use JPEG_LIB_VERSION. Then if that's not available, then set them both to 0. Fixes #202.
There were compilation errors if the version of the library was less than 1.2.0. This was happening because the macros JPEG_LIB_VERSION_MAJOR and JPEG_LIB_VERSION_MINOR were not being defined, since the compile-time macro LIBJPEG_TURBO_VERSION was introduced in version 1.2.0. The problem was fixed by giving those two macros a definition if it was missing.
In RH based systems, libraries are distributed in two separate packages for each version. One contains the precompiled code, while the second one contains the related development files such as headers, etc. (marked as "-devel"). The previous auto-detection was marking the libraries as installed even if their "-devel" part was missing, generating compilation errors. This should mark libraries as installed only if their "-devel" part is installed.
Fix pango not setting style/weight properly for 'normal'