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
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= ocaml-findlib
20 COMPONENT_VERSION
= 1.9.6
21 COMPONENT_SUMMARY
= ocaml-find
- OCaml library manager
22 COMPONENT_PROJECT_URL
= http
://projects.camlcity.org
/projects
/findlib.html
23 COMPONENT_FMRI
= library
/ocaml
/ocaml-findlib
24 COMPONENT_CLASSIFICATION
= Development
/Other Languages
25 COMPONENT_SRC
= ocamlfind-findlib-
$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
27 COMPONENT_ARCHIVE_URL
= https
://github.com
/ocaml
/ocamlfind
/archive
/findlib-
$(COMPONENT_VERSION
).
tar.gz
28 COMPONENT_ARCHIVE_HASH
= sha256
:caf11884c7fa33175371b1d2cd26334ae36d0aa2733f6651833c57cc86367118
29 COMPONENT_LICENSE
= MIT
31 TEST_TARGET
=$(NO_TESTS
)
32 include $(WS_MAKE_RULES
)/common.mk
33 include $(WS_MAKE_RULES
)/ocaml.mk
35 COMPONENT_BUILD_ARGS
+= -j1
39 COMPONENT_PRE_CONFIGURE_ACTION
+= $(CLONEY
) $(SOURCE_DIR
) $(@D
) ;
41 COMPONENT_BUILD_TARGETS
= all opt
43 CONFIGURE_OPTIONS
= -sitelib
$(OCAML_LIBDIR
)
44 CONFIGURE_OPTIONS
+= -config
$(OCAML_ETCDIR
)/findlib.conf
45 CONFIGURE_OPTIONS
+= -mandir $(USRSHAREMANDIR
)
47 COMPONENT_POST_INSTALL_ACTION
= $(CP
) $(@D
)/src
/findlib
/ocamlfind_opt
$(PROTOUSRBINDIR
)
50 REQUIRED_PACKAGES
+= developer
/documentation-tool
/openjade
51 REQUIRED_PACKAGES
+= runtime
/ocaml
53 # Auto-generated dependencies
54 REQUIRED_PACKAGES
+= system
/library
55 REQUIRED_PACKAGES
+= system
/library
/math