rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / developer / coccinelle / Makefile
blob80ee156ab9ea7a8c7d3fd78cc87fbf25af003170
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 2020 Aurelien Larcher
15 BUILD_BITS=64
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= coccinelle
19 COMPONENT_VERSION= 1.1.1
20 COMPONENT_SUMMARY= coccinelle - program matching and transformation engine which provides the language SmPL
21 COMPONENT_PROJECT_URL= https://coccinelle.gitlabpages.inria.fr/website/
22 COMPONENT_FMRI= developer/coccinelle
23 COMPONENT_CLASSIFICATION= Development/C
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_URL= https://github.com/coccinelle/coccinelle/archive/$(COMPONENT_VERSION).tar.gz
27 COMPONENT_ARCHIVE_HASH= sha256:095919e129ac563586d880ebbc5aac829fec224177090aebe34dc34ed5f142bf
28 COMPONENT_LICENSE= GPLv2
30 include $(WS_MAKE_RULES)/common.mk
32 PYTHON_VERSION=3.9
34 PATH=$(PATH.gnu)
36 COMPONENT_PREP_ACTION= ( cd $(@D) && ./autogen; )
38 COMPONENT_PRE_CONFIGURE_ACTION += $(CLONEY) $(SOURCE_DIR) $(@D) ;
40 COMPONENT_BUILD_ARGS=-j1
42 CONFIGURE_OPTIONS+= --with-python=$(PYTHON)
43 CONFIGURE_OPTIONS+= --with-bash-completion=$(USRSHAREDIR)/bash-completion/completions
46 # Build dependencies
47 REQUIRED_PACKAGES+= library/ocaml/ocaml-findlib
48 REQUIRED_PACKAGES+= library/ocaml/ocaml-num
49 REQUIRED_PACKAGES+= library/ocaml/parmap
50 REQUIRED_PACKAGES+= library/ocaml/pyml
51 REQUIRED_PACKAGES+= library/ocaml/stdcompat
52 REQUIRED_PACKAGES+= runtime/python-35
54 # Auto-generated dependencies
55 REQUIRED_PACKAGES += library/pcre
56 REQUIRED_PACKAGES += system/library
57 REQUIRED_PACKAGES += system/library/math