From 6d20a1ca81751ca1848c5e9ef5cb624b2518da5e Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Wed, 4 Jun 2014 22:54:44 +0100 Subject: [PATCH] Simplify gyp to support non-standard brew installs #56 --- binding.gyp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/binding.gyp b/binding.gyp index 6cb7a8df..c47603f2 100755 --- a/binding.gyp +++ b/binding.gyp @@ -2,16 +2,14 @@ 'targets': [{ 'target_name': 'sharp', 'sources': ['src/sharp.cc'], + 'variables': { + 'PKG_CONFIG_PATH': '/dev/null 2>&1 && eval $(brew --env) && echo $PKG_CONFIG_LIBDIR || true):/usr/local/lib/pkgconfig:/usr/lib/pkgconfig' + }, 'libraries': [ - '