diff options
-rw-r--r-- | x11/nvidia-driver/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile index 79fa26277d78..b460034283da 100644 --- a/x11/nvidia-driver/Makefile +++ b/x11/nvidia-driver/Makefile @@ -91,6 +91,14 @@ LIB_DEPENDS+= m.3:${PORTSDIR}/misc/compat5x post-patch: .SILENT # We should support -CURRENT: kill the check ${REINPLACE_CMD} '24,26d' ${WRKSRC}/src/nv-freebsd.h +# Fix `agpvar.h' location on recent -CURRENT +.if ${OSVERSION} >= 800004 + ${REINPLACE_CMD} -e 's,pci/agpvar\.h,dev/agp/agpvar.h,' \ + ${WRKSRC}/src/nv-freebsd.h +.endif +# Building with -Werror requires prototype for suser() + ${REINPLACE_CMD} -e '15s,^,#include <sys/priv.h>,' \ + ${WRKSRC}/src/nvidia_os.c .if defined(WITH_FREEBSD_AGP) ${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \ ${WRKSRC}/src/nv-freebsd.h |