aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2017-01-27 19:09:16 +0800
committerdanfe <danfe@FreeBSD.org>2017-01-27 19:09:16 +0800
commita04949d8b02b2a5b612b053d80848989ffa68583 (patch)
tree692af9d870dd4ef4272731a8d9c17f5c1f0bf885 /x11
parent60a20b667a31ba29a777c3e45cd51991cc7038e1 (diff)
downloadfreebsd-ports-gnome-a04949d8b02b2a5b612b053d80848989ffa68583.tar.gz
freebsd-ports-gnome-a04949d8b02b2a5b612b053d80848989ffa68583.tar.zst
freebsd-ports-gnome-a04949d8b02b2a5b612b053d80848989ffa68583.zip
Cosmetic change: reword comments to improve consistency and readability:
quote type and structure names and drop extra `SVN' word when referring to a particular code revision.
Diffstat (limited to 'x11')
-rw-r--r--x11/nvidia-driver/Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 04d03167d009..b12856987472 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -108,13 +108,13 @@ MAKE_ENV+= WITHOUT_LINUX=yes
post-patch: .SILENT
# We should support -CURRENT: kill the check
${REINPLACE_CMD} -e '24,26d' ${WRKSRC}/src/${NVSRC}/nv-freebsd.h
-# Adjust Linux headers #include's after FreeBSD src SVN r246085
+# Adjust Linux headers #include's after FreeBSD src r246085
.if ${OSVERSION} > 1000027
${REINPLACE_CMD} -E '/#include "machine\/\.\.\/linux(32)?\/linux.h"/ \
{ x ; s/.*/#include "machine\/..\/..\/compat\/linux\/linux_ioctl.h"/ ; H ; x ; }' \
${WRKSRC}/src/${NVSRC}/nvidia_linux.c
.endif
-# Adjust vm_object locking after FreeBSD src SVN r248084
+# Adjust `vm_object' locking after FreeBSD src r248084
.if ${OSVERSION} > 1000029
${REINPLACE_CMD} -e '/#include <vm\/vm_object.h>/ \
{ x ; s/.*/#include <sys\/rwlock.h>/ ; G ; }' \
@@ -122,7 +122,7 @@ post-patch: .SILENT
${REINPLACE_CMD} -E 's/(VM_OBJECT_)(UN)?(LOCK)/\1W\2\3/' \
${WRKSRC}/src/${NVSRC}/nvidia_subr.c
.endif
-# Adjust kmem(9) calls after FreeBSD src SVN r254025
+# Adjust kmem(9) calls after FreeBSD src r254025
.if ${OSVERSION} > 1000040 && ${NVVERSION} < 331.067
${REINPLACE_CMD} -e '/kmem_/s/kernel_map/kernel_arena/' \
${WRKSRC}/src/${NVSRC}/nvidia_subr.c
@@ -136,13 +136,13 @@ post-patch: .SILENT
${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c
. endif
.endif
-# Fix CTLFLAG_* values for SYSCTL_ADD_PROC() after FreeBSD src SVN r273377
+# Fix CTLFLAG_* values for SYSCTL_ADD_PROC() after FreeBSD src r273377
.if ${OSVERSION} > 1100039 || ${OSVERSION} > 1001501 && ${OSVERSION} < 1100000
${REINPLACE_CMD} -e '/SYSCTL_ADD_PROC/,/;/ \
s/^[[:blank:]]*CTLFLAG_RD/CTLTYPE_STRING |&/' \
${WRKSRC}/src/${NVSRC}/nvidia_sysctl.c
.endif
-# Replace d_thread_t (compat shim to support FreeBSD 4) with `struct thread'
+# Replace `d_thread_t' (FreeBSD 4 support compat shim) with `struct thread'
${REINPLACE_CMD} -e 's/d_thread_t/struct thread/' \
${WRKSRC}/src/${NVSRC}/nvidia_ctl.c \
${WRKSRC}/src/${NVSRC}/nvidia_dev.c \
@@ -189,7 +189,7 @@ post-patch: .SILENT
${REINPLACE_CMD} -e 's,/usr/share/nvidia,${STAGEDIR}${DOCSDIR},' \
${WRKSRC}/lib/libGL/Makefile ${WRKSRC}/doc/Makefile
.endif
-# New cap_rights_t structure was introduced in FreeBSD r255219 (FreeBSD 10.0).
+# New `cap_rights_t' structure was introduced in FreeBSD src r255219
.if ${OSVERSION} < 1000053 && ${NVVERSION} >= 358.009
${REINPLACE_CMD} '/<sys\/caprights.h>/d ; /cap_rights_t rights/d ; s/cap_rights_init(&rights, CAP_IOCTL)/CAP_IOCTL/' \
${WRKSRC}/src/nvidia-modeset/nvidia-modeset-freebsd.c