diff options
author | flz <flz@FreeBSD.org> | 2007-05-20 04:36:56 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2007-05-20 04:36:56 +0800 |
commit | 87f4d471fb27b9547c1a0de221b51f4c31684157 (patch) | |
tree | dfc4d7ae0fdd043d231bab6f4e98fccbbad14665 /x11/nvidia-driver | |
parent | 5ae66b41b712e5f34c78308a97f7511fc0b1539e (diff) | |
download | freebsd-ports-gnome-87f4d471fb27b9547c1a0de221b51f4c31684157.tar.gz freebsd-ports-gnome-87f4d471fb27b9547c1a0de221b51f4c31684157.tar.zst freebsd-ports-gnome-87f4d471fb27b9547c1a0de221b51f4c31684157.zip |
- Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
Diffstat (limited to 'x11/nvidia-driver')
-rw-r--r-- | x11/nvidia-driver/Makefile | 26 | ||||
-rw-r--r-- | x11/nvidia-driver/pkg-plist | 31 |
2 files changed, 43 insertions, 14 deletions
diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile index db8e93020d0d..f247e879474a 100644 --- a/x11/nvidia-driver/Makefile +++ b/x11/nvidia-driver/Makefile @@ -7,6 +7,7 @@ PORTNAME= nvidia-driver PORTVERSION= 1.0.${NVVERSION} +PORTREVISION= 5 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_NVIDIA} MASTER_SITE_SUBDIR= freebsd/1.0-${NVVERSION} @@ -19,6 +20,7 @@ ONLY_FOR_ARCHS= i386 USE_X_PREFIX= yes NO_PACKAGE= should be recompiled for a particular FreeBSD kernel +USE_GL= gl INSTALLS_SHLIB= yes SUB_FILES+= pkg-message DOCSDIR= ${PREFIX}/share/doc/NVIDIA_GLX-1.0 @@ -62,13 +64,24 @@ LIB_DEPENDS+= m.3:${PORTSDIR}/misc/compat5x .include <bsd.port.pre.mk> +.if ${X_WINDOW_SYSTEM} == "xorg" +MODULESDIR= lib/xorg/modules +XORG_SUB= "@comment " +XFREE86_SUB= "" +.else +MODULESDIR= lib/modules +XORG_SUB= "" +XFREE86_SUB= "@comment " +.endif + # XXX Should use ${PKG_INFO} XXX # XSERVVERSION!= /usr/sbin/pkg_info -O x11-servers/XFree86-4-Server 2>/dev/null | ${GREP} Server- || /usr/sbin/pkg_info -O x11-servers/xorg-server 2>/dev/null | ${GREP} server- || true -XLIBVERSION!= /usr/sbin/pkg_info -O x11/XFree86-4-libraries 2>/dev/null | ${GREP} libraries- || /usr/sbin/pkg_info -O x11/xorg-libraries 2>/dev/null | ${GREP} libraries- || true +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} NVVERSION=${NVVERSION} \ + MODULESDIR=${MODULESDIR} XORG=${XORG_SUB} XFREE86=${XFREE86_SUB} .if !defined(WITHOUT_LINUX) # Add explicit X11 libraries dependency since USE_LINUX causes the port to @@ -118,8 +131,17 @@ post-patch: .SILENT .else ${REINPLACE_CMD} -E 's/(lib).*/\1/' ${WRKSRC}/x11/Makefile .endif +.if ${X_WINDOW_SYSTEM} == "xorg" + ${REINPLACE_CMD} -e 's|lib/modules|lib/xorg/modules|' \ + ${WRKSRC}/x11/driver/Makefile \ + ${WRKSRC}/x11/extension/Makefile \ + ${WRKSRC}/x11/lib/Makefile +.endif ${REINPLACE_CMD} '/bin/d ; /man/d' ${WRKSRC}/x11/Makefile +pre-install: + ${MKDIR} ${PREFIX}/${MODULESDIR}/drivers + post-install: # pkg-plist is already overbloated, so use this hack instead of PLIST_SUB's .if ${NVVERSION} < 8174 diff --git a/x11/nvidia-driver/pkg-plist b/x11/nvidia-driver/pkg-plist index 876dae49fb4a..0a08c138aae7 100644 --- a/x11/nvidia-driver/pkg-plist +++ b/x11/nvidia-driver/pkg-plist @@ -1,13 +1,20 @@ @comment I can't add the below files to the package because pkg_delete @comment will complain when removing this package: -@comment lib/modules/extensions/XXX-libglx.so.%%XLIBVERSION%% -@comment lib/modules/extensions/XXX-libGLcore.so.%%XLIBVERSION%% +@comment %%MODULESDIR%%/extensions/XXX-libglx.so.%%XLIBVERSION%% +@comment %%MODULESDIR%%/extensions/XXX-libGLcore.so.%%XLIBVERSION%% @comment lib/XXX-libGL.a.%%XLIBVERSION%% @comment lib/XXX-libGL.so.1.%%XLIBVERSION%% @comment They are however restored when this package is removed: -@unexec mv -f %D/lib/modules/extensions/XXX-libglx.so.%%%%.%%XSERVVERSION%% %D/lib/modules/extensions/libglx.so -@unexec mv -f %D/lib/modules/extensions/XXX-libGLcore.so.%%%%.%%XSERVVERSION%% %D/lib/modules/extensions/libGLcore.so -@unexec mv -f %D/lib/XXX-libGL.a.%%%%.%%XLIBVERSION%% %D/lib/libGL.a +%%XFREE86%%@exec mv -f %D/%%MODULESDIR%%/extensions/libglx.la %D/%%MODULESDIR%%/extensions/XXX-libglx.la.%%%%.%%XSERVVERSION%% +%%XFREE86%%@unexec mv -f %D/%%MODULESDIR%%/extensions/XXX-libglx.la.%%%%.%%XSERVVERSION%% %D/%%MODULESDIR%%/extensions/libglx.la +@exec mv -f %D/%%MODULESDIR%%/extensions/libglx.so %D/%%MODULESDIR%%/extensions/XXX-libglx.so.%%%%.%%XSERVVERSION%% +@unexec mv -f %D/%%MODULESDIR%%/extensions/XXX-libglx.so.%%%%.%%XSERVVERSION%% %D/%%MODULESDIR%%/extensions/libglx.so +%%XFREE86%%@exec mv -f %D/%%MODULESDIR%%/extensions/libGLcore.la %D/%%MODULESDIR%%/extensions/XXX-libGLcore.la.%%%%.%%XSERVVERSION%% +%%XFREE86%%@unexec mv -f %D/%%MODULESDIR%%/extensions/XXX-libGLcore.la.%%%%.%%XSERVVERSION%% %D/%%MODULESDIR%%/extensions/libGLcore.la +@exec mv -f %D/%%MODULESDIR%%/extensions/libGLcore.so %D/%%MODULESDIR%%/extensions/XXX-libGLcore.so.%%%%.%%XSERVVERSION%% +@unexec mv -f %D/%%MODULESDIR%%/extensions/XXX-libGLcore.so.%%%%.%%XSERVVERSION%% %D/%%MODULESDIR%%/extensions/libGLcore.so +%%XORG%%@unexec mv -f %D/lib/XXX-libGL.a.%%%%.%%XLIBVERSION%% %D/lib/libGL.a +@exec mv -f %D/lib/libGL.so.1 %D/lib/XXX-libGL.so.1.%%%%.%%XLIBVERSION%% lib/libGL.so.1 @unexec mv -f %D/lib/XXX-libGL.so.1.%%%%.%%XLIBVERSION%% %D/lib/libGL.so.1 @exec ln -sf %D/lib/libGL.so.1 %D/lib/libGL.so @@ -27,13 +34,13 @@ lib/libnvidia-tls.so.1 @exec ln -sf %D/lib/libnvidia-tls.so.1 %D/lib/libnvidia-tls.so @unexec rm -f %D/lib/libnvidia-tls.so lib/libXvMCNVIDIA.a -lib/modules/libnvidia-wfb.so.1 -@exec ln -sf %D/lib/modules/libnvidia-wfb.so.1 %D/lib/modules/libwfb.so -@unexec rm -f %D/lib/modules/libwfb.so -lib/modules/drivers/nvidia_drv.o -lib/modules/drivers/nvidia_drv.so -lib/modules/extensions/libglx.so.1 -@exec ln -sf %D/lib/modules/extensions/libglx.so.1 %D/lib/modules/extensions/libglx.so +%%MODULESDIR%%/libnvidia-wfb.so.1 +@exec ln -sf %D/%%MODULESDIR%%/libnvidia-wfb.so.1 %D/%%MODULESDIR%%/libwfb.so +@unexec rm -f %D/%%MODULESDIR%%/libwfb.so +%%MODULESDIR%%/drivers/nvidia_drv.o +%%MODULESDIR%%/drivers/nvidia_drv.so +%%MODULESDIR%%/extensions/libglx.so.1 +@exec ln -sf %D/%%MODULESDIR%%/extensions/libglx.so.1 %D/%%MODULESDIR%%/extensions/libglx.so %%PORTDOCS%%%%DOCSDIR%%/html/appendix-a.html %%PORTDOCS%%%%DOCSDIR%%/html/appendix-b.html %%PORTDOCS%%%%DOCSDIR%%/html/appendix-c.html |