mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
9e7f5392ed
This legacy branch driver is to maintain support for Keplar GPUs. PR: 261666 Approved by: maintainer timeout Sponsored by: BBOX.io
42 lines
1.3 KiB
Makefile
42 lines
1.3 KiB
Makefile
# LICENSE_FILE is set in the consumer ports because its location varies
|
|
LICENSE= NVIDIA
|
|
LICENSE_NAME= License For Customer Use of NVIDIA Software
|
|
LICENSE_PERMS= dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept
|
|
|
|
.if ${DISTVERSION:R} > 390
|
|
ONLY_FOR_ARCHS= amd64
|
|
.else
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
.endif
|
|
|
|
ARCH_SUFX= x86${ARCH:S/i386//:S/amd/_/}
|
|
|
|
# NVVERSION is float since r372065 (integer values become less readable
|
|
# after minor version could occupy three digits)
|
|
.if ${DISTVERSION:C/[0-9]+//g} == ".." # major.minor.update
|
|
. if ${DISTVERSION:C/[0-9]+\.([0-9]+)\.[0-9]+/\1/} < 100
|
|
NVVERSION= ${DISTVERSION:S/./.0/:R}${DISTVERSION:E} # allow minor > 99
|
|
. else
|
|
NVVERSION= ${DISTVERSION:R}${DISTVERSION:E}
|
|
. endif
|
|
.else # major.minor
|
|
. if ${DISTVERSION:E} < 100
|
|
NVVERSION= ${DISTVERSION:S/./.0/} # allow minor > 99
|
|
. else
|
|
NVVERSION= ${DISTVERSION}
|
|
. endif
|
|
.endif
|
|
|
|
# Target below can be used instead of standard `makesum' to correctly
|
|
# update distinfo (i.e., keeping other driver version entries intact)
|
|
.if ${.TARGETS:Mupdate-distinfo}
|
|
DISTINFO_FILE= ${MASTERDIR}/distinfo.new
|
|
.endif
|
|
|
|
update-distinfo: makesum .SILENT
|
|
${REINPLACE_CMD} -e '/${ARCH_SUFX}-${NVVERSION:R}/s/^/~/' \
|
|
${MASTERDIR}/distinfo
|
|
${REINPLACE_CMD} -e '/^~SHA256/r ${DISTINFO_FILE}' -e '/^~/d' \
|
|
${MASTERDIR}/distinfo
|
|
${RM} ${DISTINFO_FILE} ${MASTERDIR}/distinfo.bak
|