mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
In sight of upcoming update, overhaul things slightly:
- NVVERSION is no longer user settable. nVidia changed their versioning scheme, which made my life a bit harder. Since this is master port and cares about legacy version slaves as well, derive NVVERSION from DIST- VERSION as doing so required less intrusive changes. Update the comment accordingly. UPDATING note will be committed separately - Retire OSVERSION hack since it's no longer needed. PORTREVISION are now set in all three nvidia-driver ports independently. Previously it was not really safe because NVVERSION was user settable variable - Introduce new variable, SHLIB_VERSION, and use it in PLIST_SUB, because it's not always equal to NVVERSION these days - Mute MKDIR along the way For slave ports: - Rename port directory names to reflect future reality: their versions going to bump as well. No repo copy since there's no history to preserve
This commit is contained in:
parent
4d5a8d7616
commit
5bbb51a00f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=196120
@ -210,8 +210,8 @@
|
||||
SUBDIR += mxico
|
||||
SUBDIR += numlockx
|
||||
SUBDIR += nvidia-driver
|
||||
SUBDIR += nvidia-driver-7184
|
||||
SUBDIR += nvidia-driver-9631
|
||||
SUBDIR += nvidia-driver-71xx
|
||||
SUBDIR += nvidia-driver-96xx
|
||||
SUBDIR += nvidia-settings
|
||||
SUBDIR += nvidia-xconfig
|
||||
SUBDIR += oclock
|
||||
|
@ -1,11 +1,11 @@
|
||||
# New ports collection makefile for: nvidia-driver, legacy version 7184
|
||||
# New ports collection makefile for: nvidia-driver, legacy version 71xx
|
||||
# Date created: 08 Feb 2007
|
||||
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
NVVERSION= 7184
|
||||
DISTVERSION= 1.0-7184
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../nvidia-driver
|
||||
|
@ -1,11 +1,11 @@
|
||||
# New ports collection makefile for: nvidia-driver, legacy version 9631
|
||||
# New ports collection makefile for: nvidia-driver, legacy version 71xx
|
||||
# Date created: 08 Feb 2007
|
||||
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
NVVERSION= 9631
|
||||
DISTVERSION= 1.0-7184
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../nvidia-driver
|
||||
|
12
x11/nvidia-driver-96/Makefile
Normal file
12
x11/nvidia-driver-96/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
# New ports collection makefile for: nvidia-driver, legacy version 96xx
|
||||
# Date created: 08 Feb 2007
|
||||
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
DISTVERSION= 1.0-9631
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../nvidia-driver
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
12
x11/nvidia-driver-96xx/Makefile
Normal file
12
x11/nvidia-driver-96xx/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
# New ports collection makefile for: nvidia-driver, legacy version 96xx
|
||||
# Date created: 08 Feb 2007
|
||||
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
DISTVERSION= 1.0-9631
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../nvidia-driver
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
@ -6,12 +6,12 @@
|
||||
#
|
||||
|
||||
PORTNAME= nvidia-driver
|
||||
PORTVERSION= 1.0.${NVVERSION}
|
||||
PORTREVISION= 5
|
||||
DISTVERSION?= 1.0-9746
|
||||
PORTREVISION?= 5
|
||||
CATEGORIES= x11 kld
|
||||
MASTER_SITES= ${MASTER_SITE_NVIDIA}
|
||||
MASTER_SITE_SUBDIR= freebsd/1.0-${NVVERSION}
|
||||
DISTNAME= NVIDIA-FreeBSD-x86-${PORTVERSION:S/0./0-/}
|
||||
MASTER_SITE_SUBDIR= freebsd/${DISTVERSION}
|
||||
DISTNAME= NVIDIA-FreeBSD-x86-${DISTVERSION}
|
||||
|
||||
MAINTAINER= danfe@FreeBSD.org
|
||||
COMMENT= NVidia graphics card binary drivers for hardware OpenGL rendering
|
||||
@ -30,26 +30,18 @@ OPTIONS= FREEBSD_AGP "Use FreeBSD AGP GART driver" off \
|
||||
ACPI "Enable support for ACPI Power Management" off \
|
||||
LINUX "Build with support for Linux compatibility" on
|
||||
|
||||
# Get __FreeBSD_version. Needed to set PORTREVISION before including of
|
||||
# <bsd.port.pre.mk>.
|
||||
# XXX This is not required for -CURRENT XXX
|
||||
#
|
||||
.if !defined(OSVERSION)
|
||||
.if exists(/sbin/sysctl)
|
||||
OSVERSION!= /sbin/sysctl -n kern.osreldate
|
||||
.else
|
||||
OSVERSION!= /usr/sbin/sysctl -n kern.osreldate
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# Starting with version 7667, NVidia has dropped support for numerous
|
||||
# "legacy" GPUs. One can, however, build the port with specific NVVERSION
|
||||
# value set. Currently supported "legacy" values are 7184 and 9631.
|
||||
# Consult NVidia README (Appendix A) to find out whether you need to use
|
||||
# legacy driver version. Alternatively, you can install corresponding
|
||||
# `x11/nvidia-driver-XXXX' slave port, where XXXX == needed ${NVVERSION}.
|
||||
# "legacy" GPUs. Consult NVidia README (Appendix A) to find out whether
|
||||
# you need to use legacy driver version and install one of corresponding
|
||||
# `x11/nvidia-driver-71xx' or `x11/nvidia-driver-96xx' slave ports.
|
||||
#
|
||||
NVVERSION?= 9746 # The latest version to date
|
||||
.if ${DISTVERSION:M1.0-*}
|
||||
NVVERSION= ${DISTVERSION:S/1.0-//}
|
||||
SHLIB_VERSION= ${NVVERSION}
|
||||
.else
|
||||
NVVERSION= ${DISTVERSION:S/.//g}
|
||||
SHLIB_VERSION= ${PORTVERSION}
|
||||
.endif
|
||||
|
||||
.if ${NVVERSION} == 7184
|
||||
EXTRA_PATCHES+= ${FILESDIR}/6113-patch-lib::Makefile
|
||||
@ -58,10 +50,6 @@ EXTRA_PATCHES+= ${FILESDIR}/7667-* \
|
||||
${FILESDIR}/crash-patch-by-zander-1759235
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 600033
|
||||
LIB_DEPENDS+= m.3:${PORTSDIR}/misc/compat5x
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${X_WINDOW_SYSTEM} == "xorg"
|
||||
@ -80,7 +68,7 @@ XSERVVERSION!= /usr/sbin/pkg_info -O x11-servers/XFree86-4-Server 2>/dev/null |
|
||||
XLIBVERSION!= /usr/sbin/pkg_info -O x11/XFree86-4-libraries 2>/dev/null | ${GREP} libraries- || /usr/sbin/pkg_info -O graphics/libGL 2>/dev/null | ${GREP} libGL- || true
|
||||
|
||||
PLIST_SUB+= XSERVVERSION=${XSERVVERSION} XLIBVERSION=${XLIBVERSION} \
|
||||
LINUXBASE=${LINUXBASE} NVVERSION=${NVVERSION} \
|
||||
LINUXBASE=${LINUXBASE} SHLIB_VERSION=${SHLIB_VERSION} \
|
||||
MODULESDIR=${MODULESDIR} XORG=${XORG_SUB} XFREE86=${XFREE86_SUB}
|
||||
|
||||
.if !defined(WITHOUT_LINUX)
|
||||
@ -99,6 +87,10 @@ MAKE_ENV+= WITHOUT_LINUX=yes
|
||||
IGNORE= supports FreeBSD-STABLE (5.3 or later), or FreeBSD-CURRENT
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 600033
|
||||
LIB_DEPENDS+= m.3:${PORTSDIR}/misc/compat5x
|
||||
.endif
|
||||
|
||||
post-patch: .SILENT
|
||||
# We should support -CURRENT: kill the check
|
||||
.if ${NVVERSION} >= 7174
|
||||
@ -143,7 +135,7 @@ post-patch: .SILENT
|
||||
${REINPLACE_CMD} '/bin/d ; /man/d' ${WRKSRC}/x11/Makefile
|
||||
|
||||
pre-install:
|
||||
${MKDIR} ${PREFIX}/${MODULESDIR}/drivers
|
||||
@${MKDIR} ${PREFIX}/${MODULESDIR}/drivers
|
||||
|
||||
post-install:
|
||||
# pkg-plist is already overbloated, so use this hack instead of PLIST_SUB's
|
||||
|
@ -96,12 +96,12 @@ lib/libXvMCNVIDIA.a
|
||||
nvidia.ko
|
||||
@unexec kldxref %D
|
||||
%%LINUX%%@cwd %%LINUXBASE%%
|
||||
%%LINUX%%usr/lib/libGL.so.1.0.%%NVVERSION%%
|
||||
%%LINUX%%usr/lib/libGLcore.so.1.0.%%NVVERSION%%
|
||||
%%LINUX%%usr/lib/libnvidia-tls.so.1.0.%%NVVERSION%%
|
||||
%%LINUX%%@exec ln -sf %D/usr/lib/libGL.so.1.0.%%NVVERSION%% %D/usr/lib/libGL.so.1
|
||||
%%LINUX%%@exec ln -sf %D/usr/lib/libGLcore.so.1.0.%%NVVERSION%% %D/usr/lib/libGLcore.so.1
|
||||
%%LINUX%%@exec ln -sf %D/usr/lib/libnvidia-tls.so.1.0.%%NVVERSION%% %D/usr/lib/libnvidia-tls.so.1
|
||||
%%LINUX%%usr/lib/libGL.so.1.0.%%SHLIB_VERSION%%
|
||||
%%LINUX%%usr/lib/libGLcore.so.1.0.%%SHLIB_VERSION%%
|
||||
%%LINUX%%usr/lib/libnvidia-tls.so.1.0.%%SHLIB_VERSION%%
|
||||
%%LINUX%%@exec ln -sf %D/usr/lib/libGL.so.1.0.%%SHLIB_VERSION%% %D/usr/lib/libGL.so.1
|
||||
%%LINUX%%@exec ln -sf %D/usr/lib/libGLcore.so.1.0.%%SHLIB_VERSION%% %D/usr/lib/libGLcore.so.1
|
||||
%%LINUX%%@exec ln -sf %D/usr/lib/libnvidia-tls.so.1.0.%%SHLIB_VERSION%% %D/usr/lib/libnvidia-tls.so.1
|
||||
%%LINUX%%@unexec rm -f %D/usr/lib/libGL.so.1
|
||||
%%LINUX%%@unexec rm -f %D/usr/lib/libGLcore.so.1
|
||||
%%LINUX%%@unexec rm -f %D/usr/lib/libnvidia-tls.so.1
|
||||
|
Loading…
Reference in New Issue
Block a user