Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh

# Have pkg-config look for pc files additionally in /opt/X11
# Common error for homebrew installed cairo on OSX
[[ `uname` == "Darwin" ]] && export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/opt/X11/lib/pkgconfig"
node-gyp rebuild
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"homepage": "https://github.com/learnboost/node-canvas",
"repository": "git://github.com/learnboost/node-canvas",
"scripts": {
"test": "make test"
"test": "make test",
"install": "./build.sh"
},
"dependencies": {
"nan": "~1.5.1"
Expand Down