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
:= 66fe1379bc7daf9a16c6b5c45ab695bf1cdcfae9738d2989e940104d6b31973f
10 PKG_DESCR
:= asynchronous event driven framework
11 PKG_SECTION
:= net
/http
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
)))
34 PYTHON
=$(STAGING_HOST_DIR
)/usr
/bin
/python2 \
35 $(STAGING_HOST_DIR
)/usr
/bin
/python2 .
/configure \
45 (cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
46 ${HOST_MAKE_FLAGS} ${ALL_TARGET})
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
55 PYTHON
=$(STAGING_HOST_DIR
)/usr
/bin
/python2 \
56 $(STAGING_HOST_DIR
)/usr
/bin
/python2 .
/configure \
65 $(SED
) "s#<(mkpeephole_exec)#$(STAGING_HOST_DIR)/usr/bin/mkpeephole#g" $(WRKSRC
)/deps
/v8
/src
/v8.gyp
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