python3: update to 3.11.10
[openadk.git] / package / nodejs / Makefile
blob02627aa6a32bed3edad6abc75447451174808830
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:= 20.11.1
8 PKG_RELEASE:= 1
9 PKG_HASH:= 4af1ba6ea848cc05908b8a62b02fb27684dd52b2a7988ee82b0cfa72deb90b94
10 PKG_DESCR:= asynchronous event driven framework
11 PKG_SECTION:= net/http
12 PKG_DEPENDS:= zlib
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)))
27 HOST_CFLAGS:=
28 HOST_CXXFLAGS:=
29 HOST_STYLE:= manual
30 CONFIG_STYLE:= manual
32 host-configure:
33 (cd $(WRKSRC); \
34 PYTHON=$(STAGING_HOST_DIR)/usr/bin/python3 \
35 $(STAGING_HOST_DIR)/usr/bin/python3 ./configure \
36 --prefix=/usr \
37 --without-intl \
38 --shared-zlib \
41 host-build:
42 (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
43 ${HOST_MAKE_FLAGS} ${ALL_TARGET})
45 nodejs-hostinstall:
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
52 do-configure:
53 (cd $(WRKSRC); \
54 PYTHON=$(STAGING_HOST_DIR)/usr/bin/python3 \
55 $(STAGING_HOST_DIR)/usr/bin/python3 ./configure \
56 --prefix=/usr \
57 --cross-compiling \
58 --without-intl \
59 --shared-zlib \
61 # $(SED) "s#<(mkpeephole_exec)#$(STAGING_HOST_DIR)/usr/bin/mkpeephole#g" $(WRKSRC)/deps/v8/src/v8.gyp
63 nodejs-install:
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