aboutsummaryrefslogtreecommitdiff
path: root/x11/nvidia-driver
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2003-06-07 18:53:22 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2003-06-07 18:53:22 +0000
commit72f2a5955af2c41ea866b41591ba5698b8e85108 (patch)
treea3572d9efa9f0b1ca15c10ea6fba1a8b47f0fada /x11/nvidia-driver
parentcbf63189135574e0d4cb63413188aeab17532832 (diff)
downloadports-72f2a5955af2c41ea866b41591ba5698b8e85108.tar.gz
ports-72f2a5955af2c41ea866b41591ba5698b8e85108.zip
Fix plist for -CURRENT: kernel module lives in /boot/kernel/ and
MAKEDEV.nvidia is not installed in /dev/.
Notes
Notes: svn path=/head/; revision=82462
Diffstat (limited to 'x11/nvidia-driver')
-rw-r--r--x11/nvidia-driver/Makefile6
-rw-r--r--x11/nvidia-driver/pkg-plist37
2 files changed, 25 insertions, 18 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 3748f0fda85e..e16e01a2d60b 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -31,6 +31,12 @@ USE_LINUX= yes
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 500000
+PLIST_SUB+= FREEBSD5="@comment " FREEBSD4=""
+.else
+PLIST_SUB+= FREEBSD5="" FREEBSD4="@comment "
+.endif
+
.if ${OSVERSION} > 500000 && ${OSVERSION} < 500105
IGNORE= "You need a more recent version of -CURRENT for this driver"
.endif
diff --git a/x11/nvidia-driver/pkg-plist b/x11/nvidia-driver/pkg-plist
index 30ac36c253f3..fb66404764a1 100644
--- a/x11/nvidia-driver/pkg-plist
+++ b/x11/nvidia-driver/pkg-plist
@@ -27,25 +27,26 @@ share/doc/NVIDIA/README
share/doc/NVIDIA/README.Linux
share/doc/NVIDIA/XF86Config.sample
share/doc/NVIDIA/license.txt
-@cwd /modules
+%%FREEBSD4%%@cwd /modules
+%%FREEBSD5%%@cwd /boot/kernel
nvidia.ko
-@cwd /dev
-MAKEDEV.nvidia
-@exec mknod /dev/nvidia0 c 180 0
-@exec chmod 0666 /dev/nvidia0
-@exec mknod /dev/nvidia1 c 180 1
-@exec chmod 0666 /dev/nvidia1
-@exec mknod /dev/nvidia2 c 180 2
-@exec chmod 0666 /dev/nvidia2
-@exec mknod /dev/nvidia3 c 180 3
-@exec chmod 0666 /dev/nvidia3
-@exec mknod /dev/nvidiactl c 180 255
-@exec chmod 0666 /dev/nvidiactl
-@unexec rm -f /dev/nvidia0
-@unexec rm -f /dev/nvidia1
-@unexec rm -f /dev/nvidia2
-@unexec rm -f /dev/nvidia3
-@unexec rm -f /dev/nvidiactl
+%%FREEBSD4%%@cwd /dev
+%%FREEBSD4%%MAKEDEV.nvidia
+%%FREEBSD4%%@exec mknod /dev/nvidia0 c 180 0
+%%FREEBSD4%%@exec chmod 0666 /dev/nvidia0
+%%FREEBSD4%%@exec mknod /dev/nvidia1 c 180 1
+%%FREEBSD4%%@exec chmod 0666 /dev/nvidia1
+%%FREEBSD4%%@exec mknod /dev/nvidia2 c 180 2
+%%FREEBSD4%%@exec chmod 0666 /dev/nvidia2
+%%FREEBSD4%%@exec mknod /dev/nvidia3 c 180 3
+%%FREEBSD4%%@exec chmod 0666 /dev/nvidia3
+%%FREEBSD4%%@exec mknod /dev/nvidiactl c 180 255
+%%FREEBSD4%%@exec chmod 0666 /dev/nvidiactl
+%%FREEBSD4%%@unexec rm -f /dev/nvidia0
+%%FREEBSD4%%@unexec rm -f /dev/nvidia1
+%%FREEBSD4%%@unexec rm -f /dev/nvidia2
+%%FREEBSD4%%@unexec rm -f /dev/nvidia3
+%%FREEBSD4%%@unexec rm -f /dev/nvidiactl
@cwd %%LINUXBASE%%
usr/lib/libGL.so.1.0.3203
usr/lib/libGLcore.so.1.0.3203