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
20 include ..
/..
/..
/make-rules
/shared-macros.mk
22 # This is the latest NVIDIA Production Branch driver
24 COMPONENT_NAME
= nvidia
25 HUMAN_VERSION
= 550.135
26 COMPONENT_VERSION
= $(shell echo
$(HUMAN_VERSION
) |
$(GSED
) -e
's/\.0*/./g')
27 COMPONENT_FMRI
= driver
/graphics
/nvidia
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
:59b94f3be7e50089c421bacbfdc8b91ed9c660da1eb0c4b81f44ffa3eec59b07
34 COMPONENT_ARCHIVE_URL
= https
://us.download.nvidia.com
/solaris
/$(HUMAN_VERSION
)/$(COMPONENT_ARCHIVE
)
35 COMPONENT_LICENSE
= NVIDIA
36 COMPONENT_LICENSE_FILE
= NVDAgraphics
/install/copyright
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
)
49 USERLAND_ARCHIVES
= \
#
51 $(BUILD_
$(MK_BITS
)): $(SOURCE_DIR
)/.prep
52 ($(RM
) -rf
$(@D
) ; $(MKDIR
) $(@D
))
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 kernel
/drv
/nvidia_modeset.conf kernel
/drv
/amd64
/nvidia_modeset
; 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
63 GENERATE_EXTRA_CMD
+= | \
65 eval
$$($(GNU_GREP
) ^A
$(SOURCE_DIR
)/NVDAgraphicsr
/install/postinstall
) ; \
66 printf
'driver name=nvidia_modeset perms="* 0666 root root"\n' ; \
67 printf
'driver name=nvidia perms="* 0666 root root"' ; \
68 for i in
$$ALIASES ; do \
69 printf
' \\\n\talias=%s' "$$i" ; \
74 # Auto-generated dependencies
75 REQUIRED_PACKAGES
+= SUNWcs
76 REQUIRED_PACKAGES
+= gnome
/accessibility
/at-spi2-core
77 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
78 REQUIRED_PACKAGES
+= library
/desktop
/gtk2
79 REQUIRED_PACKAGES
+= library
/desktop
/pango
80 REQUIRED_PACKAGES
+= library
/glib2
81 REQUIRED_PACKAGES
+= shell/ksh93
82 REQUIRED_PACKAGES
+= system
/library
83 REQUIRED_PACKAGES
+= system
/library
/math
84 REQUIRED_PACKAGES
+= x11
/library
/libx11
85 REQUIRED_PACKAGES
+= x11
/library
/libxext