summaryrefslogtreecommitdiff
path: root/package/nodejs/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-03-10 14:14:59 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-03-10 14:15:13 +0100
commit4e56ffa36ea6ed9c40ac8ae2c4fb3bdb5dd2e8cc (patch)
tree5273a97031a8116108c65dc92ebc6e02a1cf4434 /package/nodejs/Makefile
parenta93bf67618a13e65e0ab61907a8907a85c112e3a (diff)
nodejs: add new package, some patches from buildroot added
Diffstat (limited to 'package/nodejs/Makefile')
-rw-r--r--package/nodejs/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/nodejs/Makefile b/package/nodejs/Makefile
new file mode 100644
index 000000000..5ae9c110f
--- /dev/null
+++ b/package/nodejs/Makefile
@@ -0,0 +1,46 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= nodejs
+PKG_VERSION:= 5.7.1
+PKG_RELEASE:= 1
+PKG_HASH:= ecd4956335c6b86f1b72fd203abd9a833717e6800edb12208d0e3ce625330198
+PKG_DESCR:= asynchronous event driven framework
+PKG_SECTION:= net/http
+PKG_DEPENDS:= zlib
+PKG_BUILDDEP:= python2-host zlib
+PKG_NEEDS:= threads rt c++
+PKG_URL:= https://nodejs.org/
+PKG_SITES:= https://nodejs.org/dist/v$(PKG_VERSION)/
+
+DISTFILES:= node-v$(PKG_VERSION).tar.gz
+WRKDIST= $(WRKDIR)/node-v$(PKG_VERSION)
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,NODEJS,nodejs,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:= manual
+
+do-configure:
+ (cd $(WRKSRC); \
+ PYTHON=$(STAGING_HOST_DIR)/usr/bin/python2 \
+ $(STAGING_HOST_DIR)/usr/bin/python2 ./configure \
+ --prefix=/usr \
+ --without-snapshot \
+ --without-dtrace \
+ --without-etw \
+ --shared-zlib \
+ )
+
+nodejs-install:
+ $(INSTALL_DIR) $(IDIR_NODEJS)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/node_modules \
+ $(IDIR_NODEJS)/usr/lib
+ $(INSTALL_DIR) $(IDIR_NODEJS)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/node \
+ $(IDIR_NODEJS)/usr/bin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk