2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2022 Niklas Poslovski
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_VERSION
= 1.6.6
21 COMPONENT_FMRI
= developer
/nim
22 COMPONENT_SUMMARY
= Imperative
, multi-paradigm
, compiled programming language
23 COMPONENT_CLASSIFICATION
=Development
/Other Languages
24 COMPONENT_PROJECT_URL
= https
://nim-lang.org
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
27 COMPONENT_ARCHIVE_HASH
= \
28 sha256
:67b111ce6f3861503b9fcc1cae59fc34d0122566d3ecfef3a064a2174121a452
29 COMPONENT_ARCHIVE_URL
= \
30 https
://nim-lang.org
/download
/$(COMPONENT_ARCHIVE
)
31 COMPONENT_LICENSE
= MIT
33 TEST_TARGET
=$(NO_TESTS
)
34 include $(WS_MAKE_RULES
)/common.mk
36 COMPONENT_BUILD_ACTION
= \
37 cd
$(@D
); $(ENV
) $(COMPONENT_BUILD_ENV
) .
/build.sh
; bin
/nim c koch
; .
/koch boot
-d
:release
; .
/koch tools
39 COMPONENT_INSTALL_ACTION
= \
40 mkdir
-p
$(PROTOUSRBINDIR
); cp
-a
$(@D
)/bin
/* $(PROTOUSRBINDIR
); rm $(PROTOUSRBINDIR
)/nim-gdb
; cp
-a
$(SOURCE_DIR
)/bin
/nim-gdb
$(PROTOUSRBINDIR
); mkdir
-p
$(PROTOETCDIR
)/nim
; cp
-a
$(SOURCE_DIR
)/config
/* $(PROTOETCDIR
)/nim
; mkdir
-p
$(PROTOUSRLIBDIR
)/nim
; cp
-a
$(SOURCE_DIR
)/lib
/* $(PROTOUSRLIBDIR
)/nim
; cp
-a
$(SOURCE_DIR
)/compiler
$(PROTOUSRLIBDIR
)/nim
/compiler
; mkdir
-p
$(PROTOUSRINCDIR
); mv
$(PROTOUSRLIBDIR
)/nim
/*.h
$(PROTOUSRINCDIR
); mkdir
-p
$(PROTOUSRSHAREDIR
)/nim
; cp
-a
$(SOURCE_DIR
)/doc
$(PROTOUSRSHAREDIR
)/nim
42 #COMPONENT_TEST_CMD= ./koch tests all # Doesn't work, a solution hasn't been found yet.
44 # Auto-generated dependencies
45 REQUIRED_PACKAGES
+= SUNWcs
46 REQUIRED_PACKAGES
+= system
/library
47 REQUIRED_PACKAGES
+= system
/library
/math