| | |
| | | # 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 |
| | |
| | | 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); \ |
| | |
| | | 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) |
| | |
| | | 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 \ |
| | |
| | | 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) |