diff options
author | danfe <danfe@FreeBSD.org> | 2009-04-13 16:24:25 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2009-04-13 16:24:25 +0800 |
commit | a9ac2bfac7b736f94074e8c1e5e3a70188a4e044 (patch) | |
tree | 7df125af6c39d319b734c0ef065bdf03b5903259 | |
parent | c61247e10aa4bac27e5e3ade5b6224e6c90ff2bc (diff) | |
download | freebsd-ports-gnome-a9ac2bfac7b736f94074e8c1e5e3a70188a4e044.tar.gz freebsd-ports-gnome-a9ac2bfac7b736f94074e8c1e5e3a70188a4e044.tar.zst freebsd-ports-gnome-a9ac2bfac7b736f94074e8c1e5e3a70188a4e044.zip |
- Correct OSVERSION value in minor() -> dev2unit() fix
- Remove offending piece of code (already commented out)
- Update some comments
- Remove old X11 libraries hack for USE_LINUX, seems to be of no use
there days
-rw-r--r-- | x11/nvidia-driver/Makefile | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile index ae9bd22d82dd..00b4dac38adc 100644 --- a/x11/nvidia-driver/Makefile +++ b/x11/nvidia-driver/Makefile @@ -33,7 +33,7 @@ OPTIONS= FREEBSD_AGP "Use FreeBSD AGP GART driver" off \ # Starting with version 1.0-7667, NVidia has dropped support for numerous # "legacy" GPUs. Consult NVidia README (the Appendix) to find out whether # you need to use legacy driver version and install one of corresponding -# `x11/nvidia-driver-71xx', `x11/nvidia-driver-96xx', or `x11/nvidia-driver-173' +# `x11/nvidia-driver-71', `x11/nvidia-driver-96', or `x11/nvidia-driver-173' # slave ports. # # XXX Until NVidia starts to name their releases consistently, employ this @@ -47,7 +47,7 @@ NVVERSION= ${DISTVERSION:S/.//g}00 .include <bsd.port.pre.mk> -# XXX Should use ${PKG_INFO} XXX +# XXX Should use ${PKG_INFO} but it does not expand for some reason XXX # XSERVVERSION!= /usr/sbin/pkg_info -qO x11-servers/xorg-server 2>/dev/null || true LIBGLVERSION!= /usr/sbin/pkg_info -qO graphics/libGL 2>/dev/null || true @@ -61,9 +61,6 @@ PLIST_SUB+= XSERVVERSION=${XSERVVERSION} LIBGLVERSION=${LIBGLVERSION} \ MODULESDIR=${MODULESDIR} .if !defined(WITHOUT_LINUX) -# Add explicit X11 libraries dependency since USE_LINUX causes the port to -# RUN_DEPEND on the Linux libraries rather than LIB_DEPEND on native ones -LIB_DEPENDS+= X11.6:${X_LIBRARIES_PORT} USE_LINUX= yes PLIST_SUB+= LINUX="" .else @@ -75,12 +72,6 @@ MAKE_ENV+= WITHOUT_LINUX=yes LIB_DEPENDS+= m.3:${PORTSDIR}/misc/compat5x post-patch: .SILENT - -.if ${OSVERSION} >= 800049 - ${REINPLACE_CMD} -e 's,minor(,dev2unit(,' \ - ${WRKSRC}/src/nvidia_dev.c ${WRKSRC}/src/nvidia_subr.c -.endif - # We should support -CURRENT: kill the check ${REINPLACE_CMD} '24,26d' ${WRKSRC}/src/nv-freebsd.h # Fix `agpvar.h' location on recent -CURRENT @@ -94,6 +85,11 @@ post-patch: .SILENT 's/suser(CURTHREAD)/priv_check(CURTHREAD, PRIV_DRIVER)/' \ ${WRKSRC}/src/nvidia_os.c .endif +# minor() is removed in recent -CURRENT +.if ${OSVERSION} >= 800062 + ${REINPLACE_CMD} -e 's,minor(,dev2unit(,' \ + ${WRKSRC}/src/nvidia_dev.c ${WRKSRC}/src/nvidia_subr.c +.endif .if defined(WITH_FREEBSD_AGP) ${REINPLACE_CMD} -E 's/undef (NV_SUPPORT_OS_AGP)/define \1/' \ ${WRKSRC}/src/nv-freebsd.h @@ -123,12 +119,6 @@ post-patch: .SILENT pre-su-install: # XXX This port silently assumes PREFIX == LOCALBASE XXX @${MKDIR} ${PREFIX}/${MODULESDIR}/drivers -# xorg-server-1.4 installs its own ${LOCALBASE}/lib/xorg/modules/libwfb.so, -# so back it up so it can be later restored similarly to what NVidia does: -#.if ${NVVERSION} >= 974600 -# @${MV} -f ${PREFIX}/${MODULESDIR}/libwfb.so \ -# ${PREFIX}/${MODULESDIR}/XXX-libwfb.so.%%.${XSERVVERSION} -#.endif post-install: # pkg-plist is already overbloated, so use this hack instead of PLIST_SUB's |