Obsolete golang-120
[oi-userland.git] / components / developer / ninja / Makefile
blobb4fd6099b53c7eae2c82c324afaf45af8e323eb9
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2017-2018 Aurelien Larcher
15 BUILD_STYLE = cmake
16 USE_PARALLEL_BUILD = yes
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= ninja
21 COMPONENT_VERSION= 1.12.1
22 COMPONENT_SUMMARY= Ninja - a small build system with a focus on speed
23 COMPONENT_PROJECT_URL= https://ninja-build.org/
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_URL= https://github.com/ninja-build/ninja/archive/v$(COMPONENT_VERSION).tar.gz
27 COMPONENT_ARCHIVE_HASH= sha256:821bdff48a3f683bc4bb3b6f0b5fe7b2d647cf65d52aeb63328c91a6c6df285a
28 COMPONENT_FMRI= developer/build/ninja
29 COMPONENT_CLASSIFICATION=Development/Distribution Tools
30 COMPONENT_LICENSE= Apache-2.0
31 COMPONENT_LICENSE_FILE= COPYING
33 include $(WS_MAKE_RULES)/common.mk
35 # Install additional files for command line completion
36 COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -D $(SOURCE_DIR)/misc/bash-completion $(PROTOUSRSHAREDIR)/bash-completion/completions/ninja ;
37 COMPONENT_POST_INSTALL_ACTION += $(INSTALL) -D $(SOURCE_DIR)/misc/zsh-completion $(PROTOUSRSHAREDIR)/zsh-completions/_ninja ;
39 # see README.md
40 COMPONENT_TEST_CMD = ./ninja_test
42 # Remove timing
43 COMPONENT_TEST_TRANSFORMS += "-e 's/ ([0-9]\{1,\} ms.*)\$$//'"
45 # Build dependencies
46 REQUIRED_PACKAGES += developer/lexer/re2c
47 PYTHON_REQUIRED_PACKAGES += runtime/python
49 # Auto-generated dependencies
50 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
51 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
52 REQUIRED_PACKAGES += system/library