- Fix the build on recent 6-STABLE [1]

- Fix the build with FreeBSD AGP [2]

PR:	ports/124407 [1], ports/124497 [2]
Also submitted by:	ale [1]
This commit is contained in:
Alexey Dokuchaev 2008-06-12 10:18:21 +00:00
parent 8a089d17c7
commit a558e0734b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214691

View file

@ -88,7 +88,12 @@ post-patch: .SILENT
.endif .endif
# Correct prototypes to fix the build with FreeBSD AGP support # Correct prototypes to fix the build with FreeBSD AGP support
.if ${NVVERSION} >= 1690700 .if ${NVVERSION} >= 1690700
${REINPLACE_CMD} -e '337,338s/(/(nv_stack_t *, /' \ ${REINPLACE_CMD} -e '406,407s/(/(nv_stack_t *, /' \
${WRKSRC}/src/nv-freebsd.h
.endif
# Do not implement certain pmap API functions on systems that have them
.if ${NVVERSION} == 1731405
${REINPLACE_CMD} -E 's,if( __FreeBSD_version )(< 700055),if\1< 602110 ||\1>= 700000 \&\&\1\2,' \
${WRKSRC}/src/nv-freebsd.h ${WRKSRC}/src/nv-freebsd.h
.endif .endif
.if defined(WITH_FREEBSD_AGP) .if defined(WITH_FREEBSD_AGP)