fastfetch: update to 2.30.1
[oi-userland.git] / components / editor / qtcreator / Makefile
blob89f89d14be3825cd63b6f56caf6b56e2615c7365
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 2022 Stephan Althaus
13 # Copyright 2022 Daniel Chan
16 BUILD_STYLE= cmake
17 USE_PARALLEL_BUILD= yes
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= qtcreator
22 COMPONENT_VERSION_MAJOR= 7.0
23 COMPONENT_VERSION_MINOR= 2
24 COMPONENT_VERSION= $(COMPONENT_VERSION_MAJOR).$(COMPONENT_VERSION_MINOR)
25 COMPONENT_SUMMARY= QT Creator - A Cross-platform IDE for Application Development
26 COMPONENT_PROJECT_URL= https://www.qt.io/product/development-tools
27 COMPONENT_SRC= qt-creator-opensource-src-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
29 COMPONENT_ARCHIVE_HASH= sha256:14dee285aa3aa56fb25ccbd7587382fb6cb05ae99a1a30237f0a0bbef3ceff7a
30 COMPONENT_ARCHIVE_URL= https://download.qt.io/archive/$(COMPONENT_NAME)/$(COMPONENT_VERSION_MAJOR)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
31 COMPONENT_FMRI= editor/$(COMPONENT_NAME)
32 COMPONENT_CLASSIFICATION= Applications/Accessories
33 COMPONENT_LICENSE= GPL-3.0-only
34 COMPONENT_LICENSE_FILE= LICENSE.GPL3-EXCEPT
36 TEST_TARGET= $(NO_TESTS)
38 # qtcreator 7.0.2 cannot be compiled using neither clang-15 nor clang-17 so force clang-13
39 CLANG_VERSION = 13
41 include $(WS_MAKE_RULES)/common.mk
43 PATH= $(QT5_BINDIR):$(PATH.gnu)
44 CXXFLAGS += -fPIC
45 CXXFLAGS += -I$(GCC_INCGXXDIR)
46 LDFLAGS += -lxnet
47 LDFLAGS += -Wl,-rpath,$(QT5_LIBDIR):$(CLANG_LIBDIR):/usr/lib/amd64/qtcreator:/usr/lib/amd64/qtcreator/plugins
49 COMPONENT_INSTALL_ENV+= INSTALL_ROOT=$(PROTOUSRDIR)
51 COMPONENT_PRE_CMAKE_ACTION += $(CP) -r $(SOURCE_DIR)/* $(@D)/
52 CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Release
53 CMAKE_OPTIONS += -DCMAKE_PREFIX_PATH="$(QT5_LIBDIR)/cmake;$(CLANG_PREFIX)"
54 CMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(USRDIR)
55 CMAKE_OPTIONS += -DPython3_EXECUTABLE=$(PYTHON)
56 CMAKE_OPTIONS += -DWITH_DOCS=ON
57 CMAKE_OPTIONS += -DBUILD_DEVELOPER_DOCS=ON
58 CMAKE_OPTIONS += -DBUILD_QBS=OFF
59 CMAKE_OPTIONS += -DQTC_CLANG_BUILDMODE_MATCH=ON
61 COMPONENT_POST_INSTALL_ACTION = \
62 $(CHMOD) +x $(PROTOUSRBINDIR)/*; \
63 $(CHMOD) +x $(PROTOUSRDIR)/libexec/*
66 $(BUILD_DIR)/%/.configured: $(SOURCE_DIR)/.prep
67 ($(RM) -rf $(@D) ; $(MKDIR) $(@D))
68 $(COMPONENT_PRE_CMAKE_ACTION)
69 (cd $(@D) ; $(ENV) $(CMAKE_ENV) \
70 $(CMAKE) $(CMAKE_OPTIONS) $(@D))
71 $(COMPONENT_POST_CMAKE_ACTION)
72 $(TOUCH) $@
74 # Auto-generated dependencies
75 REQUIRED_PACKAGES += $(CLANG_RUNTIME_PKG)
76 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
77 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
78 REQUIRED_PACKAGES += library/qt5
79 REQUIRED_PACKAGES += library/yaml-cpp
80 REQUIRED_PACKAGES += shell/ksh93
81 REQUIRED_PACKAGES += system/library
82 REQUIRED_PACKAGES += system/library/math