aboutsummaryrefslogtreecommitdiffstats
path: root/x11/nvidia-driver
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2012-02-11 17:11:02 +0800
committerdanfe <danfe@FreeBSD.org>2012-02-11 17:11:02 +0800
commit0f5524da3092450afc84e746e67434e610c99693 (patch)
treeb93010c85b6d20bd6e4752170dfdb1a6208980d9 /x11/nvidia-driver
parent559921dfd4ac2a7c3e8d90aa86accaf2d7d1872a (diff)
downloadfreebsd-ports-gnome-0f5524da3092450afc84e746e67434e610c99693.tar.gz
freebsd-ports-gnome-0f5524da3092450afc84e746e67434e610c99693.tar.zst
freebsd-ports-gnome-0f5524da3092450afc84e746e67434e610c99693.zip
Unbreak on 7.X where sed(1) does not support "addr1,+N" ranges yet (was added
by brian@ in SVN r192732 on 2009-05-25). Reported by: erwinmail Pointy hat to: danfe (for not running 7.X tinderbuild)
Diffstat (limited to 'x11/nvidia-driver')
-rw-r--r--x11/nvidia-driver/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
index 969cf872332f..7ba8681b75ef 100644
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -174,7 +174,11 @@ post-install: .SILENT
# Some applications need this symlink (see PR ports/72877)
${LN} -sf libXvMCNVIDIA.so.1 ${PREFIX}/lib/libXvMCNVIDIA_dynamic.so.1
.if ${NVVERSION} >= 1952200
+. if ${OSVERSION} > 800090
${REINPLACE_CMD} -e '/does not support PAE/,+1d' ${PKGMESSAGE}
+. else # when sed(1) does not support "addr1,+N" ranges, use line numbers
+ ${REINPLACE_CMD} -e '26,27d' ${PKGMESSAGE}
+. endif
.endif
${ECHO_MSG}
${CAT} ${PKGMESSAGE}