0005-node-update-to-v0.12.14.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Mon, 9 May 2016 15:57:18 +0200
  3. Subject: node: update to v0.12.14
  4. While we're at it, also enable parallel builds.
  5. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
  6. diff --git a/lang/node/Makefile b/lang/node/Makefile
  7. index 243c8a5b69ae6bd12b84493de3b26992167f2c17..ed35e1729bb01bcbb89e43f975940e675d774cde 100644
  8. --- a/lang/node/Makefile
  9. +++ b/lang/node/Makefile
  10. @@ -8,17 +8,21 @@
  11. include $(TOPDIR)/rules.mk
  12. PKG_NAME:=node
  13. -PKG_VERSION:=v0.12.7
  14. +PKG_VERSION:=v0.12.14
  15. PKG_RELEASE:=1
  16. -PKG_SOURCE:=node-$(PKG_VERSION).tar.gz
  17. +PKG_SOURCE:=node-$(PKG_VERSION).tar.xz
  18. PKG_SOURCE_URL:=http://nodejs.org/dist/${PKG_VERSION}
  19. +PKG_MD5SUM:=27f1a2cf00af32cbfe9401ca4b1a805f
  20. HOST_BUILD_DEPENDS:=python/host
  21. PKG_BUILD_DEPENDS:=python/host
  22. PKG_INSTALL:=1
  23. PKG_USE_MIPS16:=0
  24. +HOST_BUILD_PARALLEL:=1
  25. +PKG_BUILD_PARALLEL:=1
  26. +
  27. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  28. PKG_LICENSE:=
  29. @@ -56,6 +60,12 @@ HOST_CONFIGURE_ARGS:= \
  30. HOST_CONFIGURE_CMD:=python ./configure
  31. +HOST_MAKE_FLAGS += CXXFLAGS='-std=c++11'
  32. +
  33. +define Host/Install
  34. + $(MAKE) -C $(HOST_BUILD_DIR) $(HOST_MAKE_FLAGS) install
  35. +endef
  36. +
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/