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
9 PKG_HASH
:= 4af1ba6ea848cc05908b8a62b02fb27684dd52b2a7988ee82b0cfa72deb90b94
10 PKG_DESCR
:= asynchronous event driven framework
11 PKG_SECTION
:= net
/http
13 PKG_BUILDDEP
:= python3-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 DISTFILES
:= node-v
$(PKG_VERSION
).
tar.gz
19 WRKDIST
= $(WRKDIR
)/node-v
$(PKG_VERSION
)
21 include $(ADK_TOPDIR
)/mk
/host.mk
22 include $(ADK_TOPDIR
)/mk
/package.mk
24 $(eval
$(call HOST_template
,NODEJS
,nodejs
,$(PKG_VERSION
)-$(PKG_RELEASE
)))
25 $(eval
$(call PKG_template
,NODEJS
,nodejs
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(PKG_DEPENDS
),$(PKG_DESCR
),$(PKG_SECTION
)))
34 PYTHON
=$(STAGING_HOST_DIR
)/usr
/bin
/python3 \
35 $(STAGING_HOST_DIR
)/usr
/bin
/python3 .
/configure \
42 (cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
43 ${HOST_MAKE_FLAGS} ${ALL_TARGET})
46 cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
47 ${HOST_FAKE_FLAGS} DESTDIR
='${STAGING_HOST_DIR}' ${HOST_INSTALL_TARGET} $(MAKE_TRACE
)
48 $(INSTALL_BIN
) ${WRKBUILD}/out
/Release
/node_js2c
${STAGING_HOST_DIR}/usr
/bin
49 $(INSTALL_BIN
) ${WRKBUILD}/out
/Release
/bytecode_builtins_list_generator
${STAGING_HOST_DIR}/usr
/bin
50 $(INSTALL_BIN
) ${WRKBUILD}/out
/Release
/torque
${STAGING_HOST_DIR}/usr
/bin
54 PYTHON
=$(STAGING_HOST_DIR
)/usr
/bin
/python3 \
55 $(STAGING_HOST_DIR
)/usr
/bin
/python3 .
/configure \
61 # $(SED) "s#<(mkpeephole_exec)#$(STAGING_HOST_DIR)/usr/bin/mkpeephole#g" $(WRKSRC)/deps/v8/src/v8.gyp
64 $(INSTALL_DIR
) $(IDIR_NODEJS
)/usr
/lib
65 $(CP
) $(WRKINST
)/usr
/lib
/node_modules \
66 $(IDIR_NODEJS
)/usr
/lib
67 $(INSTALL_DIR
) $(IDIR_NODEJS
)/usr
/bin
68 $(INSTALL_BIN
) $(WRKINST
)/usr
/bin
/node \
69 $(IDIR_NODEJS
)/usr
/bin
71 include $(ADK_TOPDIR
)/mk
/host-bottom.mk
72 include $(ADK_TOPDIR
)/mk
/pkg-bottom.mk