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 2011, 2013, EveryCity Ltd. All rights reserved.
13 # Copyright 2016, Adam Stevko, All rights reserved.
14 # Copyright 2019, Michal Nowak
17 include ..
/..
/..
/make-rules
/shared-macros.mk
20 COMPONENT_VERSION
= 2.16.3
21 HUMAN_VERSION
= 2.16.03
22 COMPONENT_SUMMARY
= The Netwide Assembler
23 COMPONENT_PROJECT_URL
= https
://www.nasm.us
/
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(HUMAN_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
26 COMPONENT_ARCHIVE_HASH
= sha256
:1412a1c760bbd05db026b6c0d1657affd6631cd0a63cddb6f73cc6d4aa616148
27 COMPONENT_ARCHIVE_URL
= https
://www.nasm.us
/pub
/nasm
/releasebuilds
/$(HUMAN_VERSION
)/$(COMPONENT_ARCHIVE
)
28 COMPONENT_FMRI
= developer
/assembler
/nasm
29 COMPONENT_CLASSIFICATION
= Development
/Other Languages
30 COMPONENT_LICENSE
= BSD
31 COMPONENT_LICENSE_FILE
= LICENSE
33 include $(WS_MAKE_RULES
)/common.mk
35 CFLAGS
+= "-I$(BUILD_DIR_$(BITS))"
37 COMPONENT_PRE_CONFIGURE_ACTION
= ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
39 COMPONENT_POST_CONFIGURE_ACTION
+= ( mkdir
-p
$(BUILD_DIR_64
)/lib
)
41 COMPONENT_INSTALL_ENV
+= INSTALLROOT
="$(PROTO_DIR)"
43 COMPONENT_TEST_TARGETS
= golden
test diff
45 COMPONENT_TEST_DIR
= $(@D
)/test
47 # Auto-generated dependencies
48 REQUIRED_PACKAGES
+= system
/library