aboutsummaryrefslogtreecommitdiff
path: root/x11/nvidia-driver/Makefile
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2008-10-27 19:54:17 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2008-10-27 19:54:17 +0000
commit9ff25955e25b0393690dfe359c4749079db7d46d (patch)
tree4ae27ec66e22d823938152fe0cfbfed3c1f0cee7 /x11/nvidia-driver/Makefile
parente4b1fc51c09d612075b974a53b92a0b372689693 (diff)
Notes
Diffstat (limited to 'x11/nvidia-driver/Makefile')
-rw-r--r--x11/nvidia-driver/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 89cd5f1cca1e..f5db68da77c8 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= nvidia-driver
-DISTVERSION?= 173.14.12
+DISTVERSION?= 177.80
PORTREVISION?= 0 # As a reminder it can be overridden
CATEGORIES= x11 kld
MASTER_SITES= ${MASTER_SITE_NVIDIA}
@@ -33,9 +33,17 @@ OPTIONS= FREEBSD_AGP "Use FreeBSD AGP GART driver" off \
# Starting with version 1.0-7667, NVidia has dropped support for numerous
# "legacy" GPUs. Consult NVidia README (the Appendix) to find out whether
# you need to use legacy driver version and install one of corresponding
-# `x11/nvidia-driver-71xx' or `x11/nvidia-driver-96xx' slave ports.
+# `x11/nvidia-driver-71xx', `x11/nvidia-driver-96xx', or `x11/nvidia-driver-173'
+# slave ports.
#
+# XXX Until NVidia starts to name their releases consistently, employ this
+# ugly hack to derive NVVERSION. XXX
+#
+.if ${DISTVERSION:C/[0-9]+//g} == ".." # major.minor.update
NVVERSION= ${DISTVERSION:S/.//g}
+.else # major.minor
+NVVERSION= ${DISTVERSION:S/.//g}00
+.endif
.include <bsd.port.pre.mk>