python/pytest-black: drop deprecated path from pytest_collect_file
[oi-userland.git] / components / openindiana / nvidia-340 / Makefile
bloba851007d083c2be9bb58fd655c6c1f2d20cdc23e
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 2020, Michal Nowak
16 BUILD_STYLE = archive
17 BUILD_BITS = NO_ARCH
19 include ../../../make-rules/shared-macros.mk
21 # This is NVIDIA Legacy GPU driver
23 COMPONENT_MJR_VERSION = 340
24 COMPONENT_NAME = nvidia-$(COMPONENT_MJR_VERSION)
25 COMPONENT_VERSION = $(COMPONENT_MJR_VERSION).108
26 COMPONENT_REVISION = 1
27 COMPONENT_FMRI = driver/graphics/nvidia-$(COMPONENT_MJR_VERSION)
28 COMPONENT_SUMMARY = NVIDIA Graphics System Software
29 COMPONENT_CLASSIFICATION = Drivers/Display
30 COMPONENT_PROJECT_URL = https://www.nvidia.com/en-us/drivers/unix/
31 COMPONENT_SRC = NVIDIA-Solaris-x86-$(HUMAN_VERSION)
32 COMPONENT_ARCHIVE = $(COMPONENT_SRC).run
33 COMPONENT_ARCHIVE_HASH = sha256:53bd2adcd893f23444872449af0211d4c1f5454030d7169ae907d4f664b240d0
34 COMPONENT_ARCHIVE_URL = https://us.download.nvidia.com/solaris/$(HUMAN_VERSION)/$(COMPONENT_ARCHIVE)
35 COMPONENT_LICENSE = NVIDIA
36 COMPONENT_LICENSE_FILE = nvidia.license
38 BUILD_TARGET = $(BUILD_$(MK_BITS))
39 INSTALL_TARGET = $(INSTALL_$(MK_BITS))
40 TEST_TARGET = $(NO_TESTS)
42 include $(WS_MAKE_RULES)/common.mk
44 CLEAN_PATHS += $(BUILD_DIR)
46 # Hack to run proper unpack command
47 UNPACK := $(SHELL) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE)
48 UNPACK_ARGS = -x
49 USERLAND_ARCHIVES = \#
51 $(BUILD_$(MK_BITS)): $(SOURCE_DIR)/.prep
52 ($(RM) -rf $(@D) ; $(MKDIR) $(@D))
53 $(TOUCH) $@
55 $(INSTALL_$(MK_BITS)): $(BUILD_$(MK_BITS))
56 $(MKDIR) $(PROTO_DIR)/kernel/drv/amd64
57 for i in kernel/drv/amd64/nvidia kernel/drv/nvidia.conf; do \
58 $(CP) $(SOURCE_DIR)/NVDAgraphicsr/reloc/$$i $(PROTO_DIR)/$$i; done
59 $(RM) -r $(PROTO_DIR)/usr
60 $(CP) -a $(SOURCE_DIR)/NVDAgraphics/reloc $(PROTO_DIR)/usr
61 $(CHMOD) u+w $(PROTO_DIR)/usr/X11/lib/modules/NVIDIA/libnvidia-wfb.so.1
62 $(CHMOD) u+w $(PROTO_DIR)/usr/X11/lib/modules/NVIDIA/$(MACH64)/libnvidia-wfb.so.1
63 /usr/bin/elfedit -e "dyn:rpath $(GCC_ROOT)/lib:/lib:/usr/lib" $(PROTO_DIR)/usr/X11/lib/modules/NVIDIA/libnvidia-wfb.so.1
64 /usr/bin/elfedit -e "dyn:rpath $(GCC_ROOT)/lib/$(MACH64):/lib/$(MACH64):/usr/lib/$(MACH64)" $(PROTO_DIR)/usr/X11/lib/modules/NVIDIA/$(MACH64)/libnvidia-wfb.so.1
65 $(TOUCH) $@
67 GENERATE_EXTRA_CMD += | \
68 $(CAT) - <( \
69 eval $$($(GNU_GREP) ^A $(SOURCE_DIR)/NVDAgraphicsr/install/postinstall) ; \
70 printf 'driver name=nvidia perms="* 0666 root root"' ; \
71 for i in $$ALIASES ; do \
72 printf ' \\\n\talias=%s' "$$i" ; \
73 done ; \
74 printf '\n' \
77 # Auto-generated dependencies
78 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
79 REQUIRED_PACKAGES += library/desktop/atk
80 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
81 REQUIRED_PACKAGES += library/desktop/gtk2
82 REQUIRED_PACKAGES += library/desktop/pango
83 REQUIRED_PACKAGES += library/glib2
84 REQUIRED_PACKAGES += shell/ksh93
85 REQUIRED_PACKAGES += SUNWcs
86 REQUIRED_PACKAGES += system/library
87 REQUIRED_PACKAGES += system/library/math
88 REQUIRED_PACKAGES += x11/compatibility/links-xorg
89 REQUIRED_PACKAGES += x11/library/libx11
90 REQUIRED_PACKAGES += x11/library/libxext