Marcel Telka
2024-04-08 5d8bcb58722b250c296fc0324f9d06470fb3d7d0
commit | author | age
538fd3 1 #
AL 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.
5 #
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.
9 #
10
11 #
12 # Copyright 2020 Aurelien Larcher
13 #
14
15 BUILD_BITS=64
16 include ../../../make-rules/shared-macros.mk
17
18 COMPONENT_NAME= coccinelle
aebec8 19 COMPONENT_VERSION= 1.1.1
538fd3 20 COMPONENT_SUMMARY= coccinelle - program matching and transformation engine which provides the language SmPL
aebec8 21 COMPONENT_PROJECT_URL=    https://coccinelle.gitlabpages.inria.fr/website/
538fd3 22 COMPONENT_FMRI= developer/coccinelle
AL 23 COMPONENT_CLASSIFICATION= Development/C 
24 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
aebec8 26 COMPONENT_ARCHIVE_URL=    https://github.com/coccinelle/coccinelle/archive/$(COMPONENT_VERSION).tar.gz
AW 27 COMPONENT_ARCHIVE_HASH=    sha256:095919e129ac563586d880ebbc5aac829fec224177090aebe34dc34ed5f142bf
538fd3 28 COMPONENT_LICENSE= GPLv2
AL 29
30 include $(WS_MAKE_RULES)/common.mk
31
aebec8 32 PYTHON_VERSION=3.9
538fd3 33
AL 34 PATH=$(PATH.gnu)
35
36 COMPONENT_PREP_ACTION= ( cd $(@D) && ./autogen; )
37
38 COMPONENT_PRE_CONFIGURE_ACTION  +=  $(CLONEY) $(SOURCE_DIR) $(@D) ;
39
40 COMPONENT_BUILD_ARGS=-j1
41
42 CONFIGURE_OPTIONS+= --with-python=$(PYTHON)
43 CONFIGURE_OPTIONS+= --with-bash-completion=$(USRSHAREDIR)/bash-completion/completions
44
45
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
53
54 # Auto-generated dependencies
55 REQUIRED_PACKAGES += library/pcre
56 REQUIRED_PACKAGES += system/library
57 REQUIRED_PACKAGES += system/library/math