Lines 6-23
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= nvidia-driver |
8 |
PORTNAME= nvidia-driver |
9 |
DISTVERSION?= 256.53 |
9 |
DISTVERSION?= 270.18 |
10 |
PORTREVISION?= 0 # As a reminder it can be overridden |
10 |
PORTREVISION?= 0 # As a reminder it can be overridden |
11 |
CATEGORIES= x11 kld |
11 |
CATEGORIES= x11 kld |
12 |
MASTER_SITES= ${MASTER_SITE_NVIDIA} |
12 |
MASTER_SITES= ${MASTER_SITE_NVIDIA} |
13 |
ARCH_SUFX= ${ARCH:S/i386//:S/amd/_/} |
|
|
14 |
# MASTER_SITE_SUBDIR has to be set later because it depends on NVVERSION |
13 |
# MASTER_SITE_SUBDIR has to be set later because it depends on NVVERSION |
15 |
DISTNAME= NVIDIA-FreeBSD-x86${ARCH_SUFX}-${DISTVERSION} |
14 |
DISTNAME= NVIDIA-FreeBSD-x86${ARCH_SUFX}-${DISTVERSION} |
16 |
|
15 |
|
17 |
MAINTAINER= danfe@FreeBSD.org |
16 |
MAINTAINER= danfe@FreeBSD.org |
18 |
COMMENT= NVidia graphics card binary drivers for hardware OpenGL rendering |
17 |
COMMENT= NVidia graphics card binary drivers for hardware OpenGL rendering |
19 |
|
18 |
|
20 |
NO_PACKAGE= should be recompiled for a particular FreeBSD kernel |
19 |
ARCH_SUFX= ${ARCH:S/i386//:S/amd/_/} |
|
|
20 |
USE_XORG= xorg-server |
21 |
USE_GL= gl |
21 |
USE_GL= gl |
22 |
USE_LDCONFIG= yes |
22 |
USE_LDCONFIG= yes |
23 |
SUB_FILES= pkg-message |
23 |
SUB_FILES= pkg-message |
Lines 57-70
Link Here
|
57 |
|
57 |
|
58 |
.include <bsd.port.pre.mk> |
58 |
.include <bsd.port.pre.mk> |
59 |
|
59 |
|
60 |
# XXX Should use ${PKG_INFO} but it does not expand for some reason XXX |
60 |
XSERVVERSION!= ${PKG_INFO} -qO x11-servers/xorg-server 2>/dev/null || true |
61 |
# |
61 |
LIBGLVERSION!= ${PKG_INFO} -qO graphics/libGL 2>/dev/null || true |
62 |
XSERVVERSION!= /usr/sbin/pkg_info -qO x11-servers/xorg-server 2>/dev/null || true |
|
|
63 |
LIBGLVERSION!= /usr/sbin/pkg_info -qO graphics/libGL 2>/dev/null || true |
64 |
|
65 |
.if empty(XSERVVERSION) |
66 |
IGNORE= needs an X server implementation installed |
67 |
.endif |
68 |
|
62 |
|
69 |
PLIST_SUB+= XSERVVERSION=${XSERVVERSION} LIBGLVERSION=${LIBGLVERSION} \ |
63 |
PLIST_SUB+= XSERVVERSION=${XSERVVERSION} LIBGLVERSION=${LIBGLVERSION} \ |
70 |
LINUXBASE=${LINUXBASE} SHLIB_VERSION=${PORTVERSION} \ |
64 |
LINUXBASE=${LINUXBASE} SHLIB_VERSION=${PORTVERSION} \ |
Lines 138-143
Link Here
|
138 |
pre-su-install: |
132 |
pre-su-install: |
139 |
# XXX This port silently assumes PREFIX == LOCALBASE XXX |
133 |
# XXX This port silently assumes PREFIX == LOCALBASE XXX |
140 |
@${MKDIR} ${PREFIX}/${MODULESDIR}/drivers |
134 |
@${MKDIR} ${PREFIX}/${MODULESDIR}/drivers |
|
|
135 |
@${MKDIR} ${PREFIX}/${MODULESDIR}/extensions |
141 |
|
136 |
|
142 |
post-install: .SILENT |
137 |
post-install: .SILENT |
143 |
# pkg-plist is already overbloated, so use these hacks instead of PLIST_SUB's |
138 |
# pkg-plist is already overbloated, so use these hacks instead of PLIST_SUB's |