diff options
-rw-r--r-- | x11/nvidia-driver/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile index f247e879474a..9fcb7d8bc6ac 100644 --- a/x11/nvidia-driver/Makefile +++ b/x11/nvidia-driver/Makefile @@ -134,8 +134,11 @@ post-patch: .SILENT .if ${X_WINDOW_SYSTEM} == "xorg" ${REINPLACE_CMD} -e 's|lib/modules|lib/xorg/modules|' \ ${WRKSRC}/x11/driver/Makefile \ - ${WRKSRC}/x11/extension/Makefile \ - ${WRKSRC}/x11/lib/Makefile + ${WRKSRC}/x11/extension/Makefile +.if ${NVVERSION} >= 9746 + ${REINPLACE_CMD} -e 's|lib/modules|lib/xorg/modules|' \ + ${WRKSRC}/x11/lib/Makefile +.endif .endif ${REINPLACE_CMD} '/bin/d ; /man/d' ${WRKSRC}/x11/Makefile |