component(developer/golang-123): Add Component
[oi-userland.git] / components / ocaml / ocamlbuild / Makefile
blobc851623ca861deec62822ef1271b4a639496631b
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
13 # Copyright 2023 Friedrich Kink
16 BUILD_BITS= 64
17 BUILD_STYLE= justmake
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= ocamlbuild
21 COMPONENT_VERSION= 0.14.3
22 COMPONENT_SUMMARY= ocamlbuild - OCaml build tool
23 COMPONENT_PROJECT_URL= https://github.com/ocaml/ocamlbuild
24 COMPONENT_FMRI= library/ocaml/ocamlbuild
25 COMPONENT_CLASSIFICATION= Development/Other Languages
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
28 COMPONENT_ARCHIVE_URL= https://github.com/ocaml/ocamlbuild/archive/$(COMPONENT_VERSION).tar.gz
29 COMPONENT_ARCHIVE_HASH= sha256:ce151bfd2141abc6ee0b3f25ba609e989ff564a48bf795d6fa7138a4db0fc2e1
30 COMPONENT_LICENSE= GPLv2
31 COMPONENT_LICENSE_FILE= LICENSE
33 TEST_TARGET= $(NO_TESTS)
34 include $(WS_MAKE_RULES)/common.mk
35 include $(WS_MAKE_RULES)/ocaml.mk
37 PATH= $(PATH.gnu)
39 COMPONENT_PRE_CONFIGURE_ACTION += ( $(CLONEY) $(SOURCE_DIR) $(@D) );
41 COMPONENT_BUILD_ARGS += PREFIX=$(USRDIR) MANDIR=$(USRSHAREMANDIR)
42 COMPONENT_INSTALL_ARGS += CHECK_IF_PREINSTALLED=false
44 # Auto-generated dependencies
45 REQUIRED_PACKAGES += runtime/ocaml
46 REQUIRED_PACKAGES += system/library
47 REQUIRED_PACKAGES += system/library/math