summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-05-18 16:51:25 +0200
committerJohn Crispin <john@phrozen.org>2016-05-18 16:51:25 +0200
commitba451bd8aab15d2be0ca0d53ff064e4ef5ce4318 (patch)
treea48ff42d04ceb03d73d503f93f888ca92a178183
parent84489f87e59e0adf81765fb1ba07ecbcfc73f90a (diff)
parentaa9202facb11a5f02f8ca29458f8a0a5241ad0d8 (diff)
Merge pull request #2707 from nxhack/node-hid-fix-compile-error
node-hid: fix compile error, condition of not-installing 'libusb-dev' package at cross-compile host.
-rw-r--r--lang/node-hid/Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/lang/node-hid/Makefile b/lang/node-hid/Makefile
index c1dc55d47..e6ab48ba3 100644
--- a/lang/node-hid/Makefile
+++ b/lang/node-hid/Makefile
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=hid
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=0.5.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/node-hid/node-hid.git
@@ -43,8 +43,7 @@ endef
CPU:=$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))
-EXTRA_LDFLAGS+="-lhidapi-libusb"
-EXTRA_CFLAGS+="-I$(STAGING_DIR)/usr/include/hidapi/"
+EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include/libusb-1.0
define Build/Compile
$(MAKE_VARS) \