@ -34,7 +34,7 @@ define Package/node-hid
CATEGORY:= Languages
CATEGORY:= Languages
TITLE:= Node.js package to access HID devices
TITLE:= Node.js package to access HID devices
URL:= https://github.com/node-hid/node-hid
URL:= https://github.com/node-hid/node-hid
DEPENDS:= +node +node-npm +libusb-1.0 +hidapi +libstdcpp
DEPENDS:= +node +node-npm +libusb-1.0 +hidapi +libstdcpp +libudev-fbsd
e n d e f
e n d e f
d e f i n e P a c k a g e / n o d e - h i d / d e s c r i p t i o n
d e f i n e P a c k a g e / n o d e - h i d / d e s c r i p t i o n
@ -47,13 +47,15 @@ EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include/libusb-1.0
d e f i n e B u i l d / C o m p i l e
d e f i n e B u i l d / C o m p i l e
git init $( PKG_BUILD_DIR)
git init $( PKG_BUILD_DIR)
cd $( PKG_BUILD_DIR) ; \
$( MAKE_VARS) \
$( MAKE_VARS) \
$( MAKE_FLAGS) \
$( MAKE_FLAGS) \
npm_config_arch = $( CONFIG_ARCH) \
npm_config_arch = $( CONFIG_ARCH) \
npm_config_nodedir = $( BUILD_DIR) /node-$( PKG_NODE_VERSION) / \
npm_config_nodedir = $( BUILD_DIR) /node-$( PKG_NODE_VERSION) / \
npm_config_cache = $( BUILD_DIR) /node-$( PKG_NODE_VERSION) /npm-cache \
npm_config_cache = $( BUILD_DIR) /node-$( PKG_NODE_VERSION) /npm-cache \
PREFIX = " $( PKG_INSTALL_DIR) /usr/ " \
PREFIX = " $( PKG_INSTALL_DIR) /usr/ " \
npm install --build-from-source --target_arch= $( CPU) -g $( PKG_BUILD_DIR)
npm install --build-from-source --target_arch= $( CPU) -g \
` npm pack $( PKG_BUILD_DIR) | tail -n 1`
e n d e f
e n d e f
d e f i n e P a c k a g e / n o d e - h i d / i n s t a l l
d e f i n e P a c k a g e / n o d e - h i d / i n s t a l l