Permalink
Browse files

Changed the node-gyp build to use pkg-config

This fixes the build on OSX when installing the dependencies through macports, which puts things in /opt/local
  • Loading branch information...
1 parent 6527af5 commit 7897bff74034d444823f2f1b17eaf4da017708ab @jhurliman jhurliman committed Sep 5, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 binding.gyp
View
7 binding.gyp
@@ -43,8 +43,11 @@
]
}, { # 'OS!="win"'
'libraries': [
- '-lpixman-1',
- '-lcairo'
+ '<!@(pkg-config pixman-1 --libs)',
+ '<!@(pkg-config cairo --libs)'
+ ],
+ 'include_dirs': [
+ '<!@(pkg-config cairo --cflags-only-I | sed s/-I//g)'
]
}],
['with_pango=="true"', {

0 comments on commit 7897bff

Please sign in to comment.