David Stes
2024-03-31 8cdd197ba643eb2608c5aab87567625bb9336cee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL)". You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2023 Andreas Wacknitz <a.wacknitz@gmx.de>
#
 
USE_PARALLEL_BUILD= yes
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=            node
COMPONENT_MAJOR_VERSION=    20
COMPONENT_VERSION=        $(COMPONENT_MAJOR_VERSION).12.0
COMPONENT_SUMMARY=        Evented I/O for V8 JavaScript.
COMPONENT_PROJECT_URL=    https://nodejs.org
COMPONENT_SRC=            $(COMPONENT_NAME)-v$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=        $(COMPONENT_SRC).tar.xz
COMPONENT_ARCHIVE_HASH=    sha256:76e5346cebfd581528f699f764f4d1a6e87cb818b696708f235ddcb625a0f78d
COMPONENT_ARCHIVE_URL=    $(COMPONENT_PROJECT_URL)/dist/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
COMPONENT_CLASSIFICATION=    Development/Other Languages
COMPONENT_FMRI=            runtime/nodejs-$(COMPONENT_MAJOR_VERSION)
COMPONENT_LICENSE=        BSD-like, MIT, Apache
COMPONENT_LICENSE_FILE=    LICENSE
 
TEST_TARGET = $(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
 
PATH = $(PATH.gnu)
 
COMPONENT_PRE_CONFIGURE_ACTION = ( cp -a $(SOURCE_DIR)/* $(@D) )
 
CONFIGURE_SCRIPT = $(@D)/configure
 
CONFIGURE_OPTIONS  = --prefix=/usr/node/$(COMPONENT_MAJOR_VERSION)
CONFIGURE_OPTIONS += --dest-cpu=x64
 
# Manually added build-dependencies
PYTHON_REQUIRED_PACKAGES += runtime/python
 
# Auto-generated dependencies
REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
REQUIRED_PACKAGES += SUNWcs
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math