Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Copyright (C) 2007-2011 OpenWrt.org
- #
- # This is free software, licensed under the GNU General Public License v2.
- # See /LICENSE for more information.
- #
- include $(TOPDIR)/rules.mk
- PKG_NAME:=nodejs
- PKG_VERSION:=0.12.7
- PKG_RELEASE:=0
- PKG_SOURCE:=node-v$(PKG_VERSION).tar.gz
- PKG_SOURCE_URL:=https://nodejs.org/dist/v$(PKG_VERSION)/
- PKG_MD5SUM:=5523ec4347d7fe6b0f6dda1d1c7799d5
- PKG_BUILD_DEPENDS:=nodejs/host
- HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/node-v$(PKG_VERSION)
- PKG_BUILD_DIR:=$(BUILD_DIR)/node-v$(PKG_VERSION)
- PKG_INSTALL:=1
- include $(INCLUDE_DIR)/host-build.mk
- include $(INCLUDE_DIR)/package.mk
- define Package/nodejs
- SUBMENU:=Node.js
- SECTION:=net
- CATEGORY:=Network
- TITLE:=Node.js Evented I/O for V8 JavaScript
- URL:=http://nodejs.org
- MAINTAINER:=Xin Ouyang <xinpascal@gmail.com>
- DEPENDS:=@armeb||@arm||@i386 +libstdcpp +libpthread +librt +libopenssl
- endef
- define Package/nodejs/description
- Node.js is a platform built on Chrome's JavaScript runtime for easily
- building fast, scalable network applications. Node.js uses an event-driven,
- non-blocking I/O model that makes it lightweight and efficient, perfect
- for data-intensive real-time applications that run across distributed
- devices.
- endef
- define Package/nodejs-npm
- SUBMENU:=Node.js
- SECTION:=net
- CATEGORY:=Network
- TITLE:=Node Package Manager
- URL:=https://npmjs.org
- MAINTAINER:=Xin Ouyang <xinpascal@gmail.com>
- DEPENDS:=@armeb||@arm||@i386 +libstdcpp +libpthread +librt +libopenssl
- endef
- define Package/nodejs-npm/description
- npm is the package manager for the Node JavaScript platform. It puts
- modules in place so that node can find them, and manages dependency
- conflicts intelligently.
- endef
- HOST_CONFIGURE_CMD =""
- CONFIGURE_ARGS=""
- HOST_CONFIGURE_ARGS=""
- # HOST_CONFIGURE_ARGS = \
- # --prefix=$(STAGING_DIR_HOST) \
- # --without-snapshot \
- # --dest-cpu=ia32
- define Build/Configure/
- $(cd $(PKG_BUILD_DIR); ./configure --prefix=$(STAGING_DIR_HOST) --without-snapshot --dest-cpu=ia32 )
- $(call Build/Configure/Default)
- endef
- # define Build/Compile
- # $(MAKE) -C $(PKG_BUILD_DIR) \
- # CXX="$(TARGET_CROSS)g++" \
- # AR="$(TARGET_CROSS)ar" \
- # RANLIB="$(TARGET_CROSS)ranlib" \
- # LINK="$(TARGET_CROSS)g++" \
- # LD="$(TARGET_CROSS)g++"
- # endef
- # define Package/nodejs/install
- # $(INSTALL_DIR) $(1)/usr/bin
- # $(CP) $(PKG_INSTALL_DIR)/usr/bin/node $(1)/usr/bin/node
- # endef
- #
- # define Package/nodejs-npm/install
- # $(INSTALL_DIR) $(1)/usr/bin
- # $(CP) $(PKG_INSTALL_DIR)/usr/bin/npm $(1)/usr/bin/npm
- # $(INSTALL_DIR) $(1)/usr/lib/node_modules
- # $(CP) -r $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/ \
- # $(1)/usr/lib/node_modules
- # endef
- #
- # define Build/InstallDev
- # $(INSTALL_DIR) $(1)/usr/share/nodejs-src
- # $(CP) $(PKG_BUILD_DIR)/* $(1)/usr/share/nodejs-src
- # endef
- $(eval $(call HostBuild))
- $(eval $(call BuildPackage,nodejs))
- $(eval $(call BuildPackage,nodejs-npm))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement