diff options
author | danfe <danfe@FreeBSD.org> | 2007-11-25 05:55:46 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2007-11-25 05:55:46 +0800 |
commit | adc1df2cc5d8bad6368633f6ec70e46f52a028ec (patch) | |
tree | 759b6229550bec7ee5a55279d1bf8e8313fffe1f /x11 | |
parent | fd3488f89c330df9d0cab15044b0e23386a69462 (diff) | |
download | freebsd-ports-gnome-adc1df2cc5d8bad6368633f6ec70e46f52a028ec.tar.gz freebsd-ports-gnome-adc1df2cc5d8bad6368633f6ec70e46f52a028ec.tar.zst freebsd-ports-gnome-adc1df2cc5d8bad6368633f6ec70e46f52a028ec.zip |
- Fix `agpvar.h' location on recent -CURRENT
- Building with -Werror requires prototype for suser()
Based on PR: ports/118063
Submitted by: Yuri Pankov
Approved by: portmgr (linimon)
Diffstat (limited to 'x11')
-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 |