gcc-6: don't ship info pages
[unleashed-userland.git] / components / developer / clang-34 / Makefile
blob54f6d2d2a974ca2773eb69e4e14161b8ea318d1e
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
5 # 1.0 of the CDDL.
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 2014 Alexander Pyhalov. All rights reserved.
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= clang-34
19 COMPONENT_VERSION= 3.4.2
20 COMPONENT_REVISION= 5
21 COMPONENT_SUMMARY= LLVM tools and Clang compiler
22 COMPONENT_PROJECT_URL = http://llvm.org/
23 COMPONENT_FMRI= developer/clang-34
24 COMPONENT_CLASSIFICATION= Development/C
25 LLVM_NAME= llvm
26 CLANG_NAME= cfe
27 COMPONENT_SRC= $(LLVM_NAME)-$(COMPONENT_VERSION).src
28 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
29 COMPONENT_ARCHIVE_HASH= \
30 sha256:17038d47069ad0700c063caed76f0c7259628b0e79651ce2b540d506f2f1efd7
31 COMPONENT_ARCHIVE_URL= \
32 http://llvm.org/releases/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
33 COMPONENT_ARCHIVE_1= $(CLANG_NAME)-$(COMPONENT_VERSION).src.tar.gz
34 COMPONENT_ARCHIVE_HASH_1= \
35 sha256:5ba6f5772f8d00f445209356a7daf83c5bca2da5acd10de517ad2359ae95bc10
36 COMPONENT_ARCHIVE_URL_1= http://llvm.org/releases/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE_1)
37 COMPONENT_LICENSE= BSD
39 include $(WS_MAKE_RULES)/prep.mk
40 include $(WS_MAKE_RULES)/configure.mk
41 include $(WS_MAKE_RULES)/ips.mk
43 CONFIGURE_PREFIX= /usr/clang/3.4
45 PATH=/usr/sbin:/usr/bin:/usr/perl5/bin:/usr/gnu/bin
47 COMPONENT_POST_UNPACK_ACTION += $(UNPACK) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1) && \
48 mv $(CLANG_NAME)-$(COMPONENT_VERSION).src $(COMPONENT_SRC)/tools/clang
50 COMPONENT_PRE_CONFIGURE_ACTION = (cp -a $(SOURCE_DIR)/* $(@D))
52 COMPONENT_POST_INSTALL_ACTION = \
53 for file in `echo $(PROTO_DIR)/$(CONFIGURE_PREFIX)/bin/*`; do \
54 elfedit -e 'dyn:runpath $$ORIGIN/../lib' $$file ; \
55 done && \
56 for file in `echo $(PROTO_DIR)/$(CONFIGURE_PREFIX)/lib/*.so`; do \
57 elfedit -e 'dyn:delete RUNPATH' $$file ; \
58 elfedit -e 'dyn:delete RPATH' $$file ; \
59 done
61 COMPONENT_TEST_TARGETS = check-all
62 COMPONENT_TEST_ENV += PATH=/usr/gnu/bin:/usr/bin
64 build: $(BUILD_32)
66 install: $(INSTALL_32)
68 test: $(TEST_32)
70 REQUIRED_PACKAGES += library/libxml2
71 REQUIRED_PACKAGES += library/zlib
72 REQUIRED_PACKAGES += system/library
73 REQUIRED_PACKAGES += system/library/g++-4-runtime
74 REQUIRED_PACKAGES += system/library/gcc-4-runtime
75 REQUIRED_PACKAGES += system/library/math
76 REQUIRED_PACKAGES += runtime/ocaml