aboutsummaryrefslogtreecommitdiff
path: root/x11/nvidia-driver
diff options
context:
space:
mode:
authorDaichi GOTO <daichi@FreeBSD.org>2003-08-18 05:40:52 +0000
committerDaichi GOTO <daichi@FreeBSD.org>2003-08-18 05:40:52 +0000
commit9fa582d23d4dc1131699d45862d6dc245c81bbbb (patch)
tree06c664e5875ba719e11a5862c292c53e8c26cc93 /x11/nvidia-driver
parent7411de0856a2cdd57afa8406b9ba10c350946c2e (diff)
downloadports-9fa582d23d4dc1131699d45862d6dc245c81bbbb.tar.gz
ports-9fa582d23d4dc1131699d45862d6dc245c81bbbb.zip
Notes
Diffstat (limited to 'x11/nvidia-driver')
-rw-r--r--x11/nvidia-driver/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index d5a13b42dd52..0bf608844349 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -6,13 +6,13 @@
#
PORTNAME= nvidia-driver
-PORTVERSION= 1.0.4365
+PORTVERSION= 1.0.${NVVERSION}
PORTREVISION?= 0
CATEGORIES= x11
-MASTER_SITES= http://download.nvidia.com/freebsd/1.0-4365/ \
- ftp://download.nvidia.com/freebsd/1.0-4365/ \
- http://download1.nvidia.com/freebsd/1.0-4365/ \
- ftp://download1.nvidia.com/freebsd/1.0-4365/
+MASTER_SITES= http://download.nvidia.com/freebsd/1.0-${NVVERSION}/ \
+ ftp://download.nvidia.com/freebsd/1.0-${NVVERSION}/ \
+ http://download1.nvidia.com/freebsd/1.0-${NVVERSION}/ \
+ ftp://download1.nvidia.com/freebsd/1.0-${NVVERSION}/
DISTNAME= NVIDIA-FreeBSD-x86-${PORTVERSION:S/0./0-/}
MAINTAINER= danfe@regency.nsu.ru
@@ -20,6 +20,9 @@ COMMENT= NVidia graphics card binary drivers for hardware OpenGL rendering
USE_X_PREFIX= yes
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel
+INSTALLS_SHLIB= yes
+
+NVVERSION= 4365
.include <bsd.port.pre.mk>
@@ -29,7 +32,7 @@ XSERVVERSION!= /usr/sbin/pkg_info -O x11-servers/XFree86-4-Server 2>/dev/null |
XLIBVERSION!= /usr/sbin/pkg_info -O x11/XFree86-4-libraries 2>/dev/null | ${GREP} libraries- || true
PLIST_SUB= XSERVVERSION=${XSERVVERSION} XLIBVERSION=${XLIBVERSION} \
- LINUXBASE=${LINUXBASE} NVVERSION=4365
+ LINUXBASE=${LINUXBASE} NVVERSION=${NVVERSION}
.if !defined(WITHOUT_LINUX)
USE_LINUX= yes
@@ -81,9 +84,11 @@ pre-install:
post-install:
.if ${OSVERSION} < 500000
.for dev in 0 1 2 3
+ @rm -f /dev/nvidia${dev}
@mknod /dev/nvidia${dev} c 180 ${dev}
@${CHMOD} 0666 /dev/nvidia${dev}
.endfor
+ @rm -f /dev/nvidiactl
@mknod /dev/nvidiactl c 180 255
@${CHMOD} 0666 /dev/nvidiactl
.endif