nodejs: update to 8.2.1
[openadk.git] / package / nodejs / Makefile
bloba3747b04fc44ca055b14b081a40c8f35894e37f9
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= nodejs
7 PKG_VERSION:= 8.2.1
8 PKG_RELEASE:= 1
9 PKG_HASH:= 66fe1379bc7daf9a16c6b5c45ab695bf1cdcfae9738d2989e940104d6b31973f
10 PKG_DESCR:= asynchronous event driven framework
11 PKG_SECTION:= net/http
12 PKG_DEPENDS:= zlib
13 PKG_BUILDDEP:= python2-host nodejs-host zlib
14 PKG_NEEDS:= threads c++
15 PKG_URL:= https://nodejs.org/
16 PKG_SITES:= https://nodejs.org/dist/v$(PKG_VERSION)/
18 PKG_SYSTEM_DEPENDS:= !mikrotik-rb532
20 DISTFILES:= node-v$(PKG_VERSION).tar.gz
21 WRKDIST= $(WRKDIR)/node-v$(PKG_VERSION)
23 include $(ADK_TOPDIR)/mk/host.mk
24 include $(ADK_TOPDIR)/mk/package.mk
26 $(eval $(call HOST_template,NODEJS,nodejs,$(PKG_VERSION)-$(PKG_RELEASE)))
27 $(eval $(call PKG_template,NODEJS,nodejs,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
29 HOST_STYLE:= manual
30 CONFIG_STYLE:= manual
32 host-configure:
33 (cd $(WRKSRC); \
34 PYTHON=$(STAGING_HOST_DIR)/usr/bin/python2 \
35 $(STAGING_HOST_DIR)/usr/bin/python2 ./configure \
36 --prefix=/usr \
37 --without-snapshot \
38 --without-dtrace \
39 --without-etw \
40 --without-intl \
41 --shared-zlib \
44 host-build:
45 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
46 ${HOST_MAKE_FLAGS} ${ALL_TARGET})
48 nodejs-hostinstall:
49 cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
50 ${HOST_FAKE_FLAGS} DESTDIR='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE)
51 $(INSTALL_BIN) ${WRKBUILD}/out/Release/mkpeephole ${STAGING_HOST_DIR}/usr/bin
53 do-configure:
54 (cd $(WRKSRC); \
55 PYTHON=$(STAGING_HOST_DIR)/usr/bin/python2 \
56 $(STAGING_HOST_DIR)/usr/bin/python2 ./configure \
57 --prefix=/usr \
58 --cross-compiling \
59 --without-snapshot \
60 --without-dtrace \
61 --without-etw \
62 --without-intl \
63 --shared-zlib \
65 $(SED) "s#<(mkpeephole_exec)#$(STAGING_HOST_DIR)/usr/bin/mkpeephole#g" $(WRKSRC)/deps/v8/src/v8.gyp
67 nodejs-install:
68 $(INSTALL_DIR) $(IDIR_NODEJS)/usr/lib
69 $(CP) $(WRKINST)/usr/lib/node_modules \
70 $(IDIR_NODEJS)/usr/lib
71 $(INSTALL_DIR) $(IDIR_NODEJS)/usr/bin
72 $(INSTALL_BIN) $(WRKINST)/usr/bin/node \
73 $(IDIR_NODEJS)/usr/bin
75 include $(ADK_TOPDIR)/mk/host-bottom.mk
76 include $(ADK_TOPDIR)/mk/pkg-bottom.mk