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
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= ocaml-num
20 COMPONENT_VERSION
= 1.5
21 COMPONENT_SUMMARY
= ocaml-num
- OCaml library for arbitrary-precision integer and rational arithmetic
22 COMPONENT_PROJECT_URL
= https
://github.com
/ocaml
/num
23 COMPONENT_SRC
= num-
$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
25 COMPONENT_ARCHIVE_URL
= https
://github.com
/ocaml
/num
/archive
/v
$(COMPONENT_VERSION
).
tar.gz
26 COMPONENT_ARCHIVE_HASH
= sha256
:7ae07c8f5601e2dfc5008a62dcaf2719912ae596a19365c5d7bdf2230515959a
27 COMPONENT_FMRI
= library
/ocaml
/ocaml-num
28 COMPONENT_CLASSIFICATION
= Development
/Other Languages
29 COMPONENT_LICENSE
= LGPLv2.1
30 COMPONENT_LICENSE_FILE
= LICENSE
32 TEST_TARGET
= $(NO_TESTS
)
33 include $(WS_MAKE_RULES
)/common.mk
34 include $(WS_MAKE_RULES
)/ocaml.mk
38 COMPONENT_PRE_CONFIGURE_ACTION
+= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) );
40 OCAMLFIND_DESTDIR
= $(strip $(shell ocamlfind printconf destdir
))
42 COMPONENT_PRE_INSTALL_ACTION
+= ( \
43 $(RM
) -r
$(PROTO_DIR
)$(OCAMLFIND_DESTDIR
) && \
44 $(MKDIR
) $(PROTO_DIR
)$(OCAMLFIND_DESTDIR
)/stublibs
; )
46 COMPONENT_INSTALL_TARGETS
= findlib-install
47 COMPONENT_INSTALL_ARGS
+= OCAMLFIND_DESTDIR
=$(PROTO_DIR
)$(OCAMLFIND_DESTDIR
)
50 REQUIRED_PACKAGES
+= runtime
/ocaml
51 REQUIRED_PACKAGES
+= library
/ocaml
/ocaml-findlib
53 # Auto-generated dependencies
54 REQUIRED_PACKAGES
+= runtime
/ocaml
55 REQUIRED_PACKAGES
+= system
/library