mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
- Fix the build with OS-native (FreeBSD) AGP support
- Correct textual typo in comments while here
This commit is contained in:
parent
99a2ae2eaf
commit
85cdd5c943
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=208333
@ -36,7 +36,7 @@ OPTIONS= FREEBSD_AGP "Use FreeBSD AGP GART driver" off \
|
||||
# `x11/nvidia-driver-71xx' or `x11/nvidia-driver-96xx' slave ports.
|
||||
#
|
||||
# NVidia played it tricky with their versioning scheme once again. To make
|
||||
# stable and legacy versions comprable, employ some sad ugly hackery: assign
|
||||
# stable and legacy versions comparable, employ some sad ugly hackery: assign
|
||||
# NVVERSION for slave ports independently of master. Hopefully, this is a
|
||||
# temporary measure and will go away soon.
|
||||
#
|
||||
@ -106,6 +106,11 @@ post-patch: .SILENT
|
||||
${REINPLACE_CMD} -e '15s,^,#include <sys/priv.h>,' \
|
||||
${WRKSRC}/src/nvidia_os.c
|
||||
.endif
|
||||
# Correct prototypes to fix the build with FreeBSD AGP support
|
||||
.if ${NVVERSION} == 1690700
|
||||
${REINPLACE_CMD} -e '337,338s/(/(nv_stack_t *, /' \
|
||||
${WRKSRC}/src/nv-freebsd.h
|
||||
.endif
|
||||
.if defined(WITH_FREEBSD_AGP)
|
||||
${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \
|
||||
${WRKSRC}/src/nv-freebsd.h
|
||||
|
Loading…
Reference in New Issue
Block a user