Andreas Wacknitz
2024-04-05 ae6ae35b5666ad22da528cd01aff7c680276eca5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"). You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2020 Aurelien Larcher
# Copyright 2023 Friedrich Kink
#
 
BUILD_BITS=64
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME= ocaml-findlib
COMPONENT_VERSION= 1.9.6
COMPONENT_SUMMARY= ocaml-find - OCaml library manager
COMPONENT_PROJECT_URL= http://projects.camlcity.org/projects/findlib.html
COMPONENT_FMRI= library/ocaml/ocaml-findlib
COMPONENT_CLASSIFICATION= Development/Other Languages
COMPONENT_SRC=        ocamlfind-findlib-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=    $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_URL=    https://github.com/ocaml/ocamlfind/archive/findlib-$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH=    sha256:caf11884c7fa33175371b1d2cd26334ae36d0aa2733f6651833c57cc86367118
COMPONENT_LICENSE= MIT
 
TEST_TARGET=$(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
include $(WS_MAKE_RULES)/ocaml.mk
 
COMPONENT_BUILD_ARGS += -j1
 
PATH=$(PATH.gnu)
 
COMPONENT_PRE_CONFIGURE_ACTION  +=  $(CLONEY) $(SOURCE_DIR) $(@D) ;
 
COMPONENT_BUILD_TARGETS = all opt
 
CONFIGURE_OPTIONS = -sitelib $(OCAML_LIBDIR)
CONFIGURE_OPTIONS+= -config $(OCAML_ETCDIR)/findlib.conf
CONFIGURE_OPTIONS+= -mandir $(USRSHAREMANDIR) 
 
COMPONENT_POST_INSTALL_ACTION= $(CP) $(@D)/src/findlib/ocamlfind_opt $(PROTOUSRBINDIR)
 
# Build dependencies
REQUIRED_PACKAGES+= developer/documentation-tool/openjade 
REQUIRED_PACKAGES+= runtime/ocaml
 
# Auto-generated dependencies
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math