Marcel Telka
2024-02-14 2db59bb4759b9af218592d556fe05c2f16a3a8c0
mozjs-60: fix build dependencies

3 files modified
23 ■■■■ changed files
components/library/mozjs-60/Makefile 18 ●●●● patch | view | raw | blame | history
components/library/mozjs-60/manifests/sample-manifest.p5m 2 ●●● patch | view | raw | blame | history
components/library/mozjs-60/pkg5 3 ●●●● patch | view | raw | blame | history
components/library/mozjs-60/Makefile
@@ -22,13 +22,14 @@
# Copyright 2021 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
#
BUILD_BITS= 64
USE_DEFAULT_TEST_TRANSFORMS= yes
USE_PARALLEL_BUILD= yes
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME=        mozjs
COMPONENT_VERSION=    60.8.0
COMPONENT_REVISION=    1
COMPONENT_REVISION=    2
COMPONENT_PROJECT_URL=    https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
COMPONENT_SRC=          mozjs-60.8.0
COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.bz2
@@ -48,11 +49,8 @@
CXXFLAGS += -std=c++11
GNU_ARCH= x86_64-sun-solaris
# Only used during build process.
PYTHON_VERSIONS= 2.7
PYTHON= $(PYTHON.2.7.$(BITS))
#COMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D))
# Python 2.7 path
PYTHON = /usr/bin/amd64/python2.7
COMPONENT_PRE_CONFIGURE_ACTION += ( \
  cd $(COMPONENT_NAME)-$(COMPONENT_VERSION); \
@@ -67,6 +65,7 @@
CONFIGURE_ENV += PYTHON="$(PYTHON)"
CONFIGURE_ENV += LDSHARED="$(CC) -shared"
CONFIGURE_ENV += NSPR_CONFIG=/usr/bin/amd64/nspr-config
CONFIGURE_ENV += SHELL="$(SHELL)"
# detection of ARCH by config.guess depends on the compiler (e.g. gcc > 8)
CONFIGURE_OPTIONS += --target=$(GNU_ARCH)
@@ -80,7 +79,7 @@
CONFIGURE_OPTIONS += --with-x
CONFIGURE_OPTIONS += --with-system-nspr
COMPONENT_BUILD_ARGS += $(JOBS:%=-j%)
COMPONENT_BUILD_ENV += SHELL="$(SHELL)"
COMPONENT_POST_INSTALL_ACTION  = \
    for file in `find $(PROTO_DIR)$(CONFIGURE_LIBDIR.$(BITS)) -name "*.so"`; do \
@@ -99,11 +98,12 @@
COMPONENT_INSTALL_ENV.64 += LD_EXEC_OPTIONS="$(LD_EXEC_OPTIONS.64)"
endif
unexport SHELLOPTS
COMPONENT_TEST_ENV += SHELL="$(SHELL)"
COMPONENT_TEST_ARGS =   -k -i
# Build dependencies
REQUIRED_PACKAGES += developer/build/autoconf-213
REQUIRED_PACKAGES += runtime/python-27
# Auto-generated dependencies
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
components/library/mozjs-60/manifests/sample-manifest.p5m
@@ -10,7 +10,7 @@
#
#
# Copyright 2023 <contributor>
# Copyright 2024 <contributor>
#
set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
components/library/mozjs-60/pkg5
@@ -4,6 +4,7 @@
        "library/nspr",
        "library/readline",
        "library/zlib",
        "runtime/python-27",
        "shell/ksh93",
        "system/library",
        "system/library/g++-13-runtime",
@@ -14,4 +15,4 @@
        "library/mozjs-60"
    ],
    "name": "mozjs"
}
}