rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / openindiana / nvidia-535 / Makefile
blobfab8773e1b50c0138c65f4f199b95e2b4f8ec258
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 2012, Andrzej Szeszo
13 # Copyright 2019, Michal Nowak
14 # Copyright 2022, Andreas Wacknitz
17 BUILD_STYLE = archive
18 BUILD_BITS = NO_ARCH
20 include ../../../make-rules/shared-macros.mk
22 # Support for this NVIDIA Long Term Support Branch driver ends in June 2026
23 # https://docs.nvidia.com/datacenter/tesla/drivers/index.html
25 COMPONENT_NAME = nvidia-$(COMPONENT_MJR_VERSION)
26 HUMAN_VERSION = 535.216.01
27 COMPONENT_VERSION = $(shell echo $(HUMAN_VERSION) | $(GSED) -e 's/\.0*/./g')
28 COMPONENT_MJR_VERSION = $(firstword $(subst ., ,$(HUMAN_VERSION)))
29 COMPONENT_FMRI = driver/graphics/nvidia-$(COMPONENT_MJR_VERSION)
30 COMPONENT_SUMMARY = NVIDIA Graphics System Software
31 COMPONENT_CLASSIFICATION = Drivers/Display
32 COMPONENT_PROJECT_URL = https://www.nvidia.com/en-us/drivers/unix/
33 COMPONENT_SRC = NVIDIA-Solaris-x86-$(HUMAN_VERSION)
34 COMPONENT_ARCHIVE = $(COMPONENT_SRC).run
35 COMPONENT_ARCHIVE_HASH = sha256:1e6c06cc3d1b67b75725cb44f0b44e26914acdef3882a2536bd337a212656e51
36 COMPONENT_ARCHIVE_URL = https://us.download.nvidia.com/solaris/$(HUMAN_VERSION)/$(COMPONENT_ARCHIVE)
37 COMPONENT_LICENSE = NVIDIA
38 COMPONENT_LICENSE_FILE = nvidia.license
40 BUILD_TARGET = $(BUILD_$(MK_BITS))
41 INSTALL_TARGET = $(INSTALL_$(MK_BITS))
42 TEST_TARGET = $(NO_TESTS)
44 include $(WS_MAKE_RULES)/common.mk
46 CLEAN_PATHS += $(BUILD_DIR)
48 # Hack to run proper unpack command
49 UNPACK := $(SHELL) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE)
50 UNPACK_ARGS = -x
51 USERLAND_ARCHIVES = \#
53 $(BUILD_$(MK_BITS)): $(SOURCE_DIR)/.prep
54 ($(RM) -rf $(@D) ; $(MKDIR) $(@D))
55 $(TOUCH) $@
57 $(INSTALL_$(MK_BITS)): $(BUILD_$(MK_BITS))
58 $(MKDIR) $(PROTO_DIR)/kernel/drv/amd64
59 for i in kernel/drv/amd64/nvidia kernel/drv/nvidia.conf kernel/drv/nvidia_modeset.conf kernel/drv/amd64/nvidia_modeset; do \
60 $(CP) $(SOURCE_DIR)/NVDAgraphicsr/reloc/$$i $(PROTO_DIR)/$$i; done
61 $(RM) -r $(PROTO_DIR)/usr
62 $(CP) -a $(SOURCE_DIR)/NVDAgraphics/reloc $(PROTO_DIR)/usr
63 $(TOUCH) $@
65 GENERATE_EXTRA_CMD += | \
66 $(CAT) - <( \
67 eval $$($(GNU_GREP) ^A $(SOURCE_DIR)/NVDAgraphicsr/install/postinstall) ; \
68 printf 'driver name=nvidia_modeset perms="* 0666 root root"\n' ; \
69 printf 'driver name=nvidia perms="* 0666 root root"' ; \
70 for i in $$ALIASES ; do \
71 printf ' \\\n\talias=%s' "$$i" ; \
72 done ; \
73 printf '\n' \
76 # Auto-generated dependencies
77 REQUIRED_PACKAGES += SUNWcs
78 REQUIRED_PACKAGES += gnome/accessibility/at-spi2-core
79 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
80 REQUIRED_PACKAGES += library/desktop/gtk2
81 REQUIRED_PACKAGES += library/desktop/pango
82 REQUIRED_PACKAGES += library/glib2
83 REQUIRED_PACKAGES += shell/ksh93
84 REQUIRED_PACKAGES += system/library
85 REQUIRED_PACKAGES += system/library/math
86 REQUIRED_PACKAGES += x11/library/libx11
87 REQUIRED_PACKAGES += x11/library/libxext