Browse Source

Merge pull request #7608 from cotequeiroz/node-xXx_fix-symlinks

fixup: Node-{arduino-firmata,cylon,hid,serialport}: fix symlinks
lilik-openwrt-22.03
Hannu Nyman 6 years ago
committed by GitHub
parent
commit
1c5a5d59f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions
  1. +2
    -1
      lang/node-arduino-firmata/Makefile
  2. +2
    -1
      lang/node-cylon/Makefile
  3. +4
    -2
      lang/node-hid/Makefile
  4. +3
    -1
      lang/node-serialport/Makefile

+ 2
- 1
lang/node-arduino-firmata/Makefile View File

@ -49,12 +49,13 @@ endef
EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
define Build/Compile
cd $(PKG_BUILD_DIR) ; \
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \
npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \
PREFIX="$(PKG_INSTALL_DIR)/usr/" \
npm install -g $(PKG_BUILD_DIR)
npm install -g `npm pack $(PKG_BUILD_DIR) | tail -n 1`
endef
define Package/node-arduino-firmata/install


+ 2
- 1
lang/node-cylon/Makefile View File

@ -65,12 +65,13 @@ endef
EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
define Build/Compile
cd $(PKG_BUILD_DIR) ; \
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \
npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \
PREFIX="$(PKG_INSTALL_DIR)/usr/" \
npm install -g $(PKG_BUILD_DIR)
npm install -g `npm pack $(PKG_BUILD_DIR) | tail -n 1`
endef
define Package/node-cylon/install


+ 4
- 2
lang/node-hid/Makefile View File

@ -34,7 +34,7 @@ define Package/node-hid
CATEGORY:=Languages
TITLE:=Node.js package to access HID devices
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
endef
define Package/node-hid/description
@ -47,13 +47,15 @@ EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include/libusb-1.0
define Build/Compile
git init $(PKG_BUILD_DIR)
cd $(PKG_BUILD_DIR) ; \
$(MAKE_VARS) \
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \
npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \
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`
endef
define Package/node-hid/install


+ 3
- 1
lang/node-serialport/Makefile View File

@ -48,12 +48,14 @@ CPU:=$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))
EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
define Build/Compile
cd $(PKG_BUILD_DIR) ; \
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \
npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \
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`
endef
define Package/node-serialport/install


Loading…
Cancel
Save