Author: jaeger Date: 2006-07-06 18:03:15 +0200 (Thu, 06 Jul 2006) New Revision: 1584 Modified: crux-2.2/ports/opt/gl-select/Pkgfile crux-2.2/ports/opt/gl-select/gl-select Log: gl-select: added libGL.so and libGLcore.so symlink checks for nvidia versioning weirdness Modified: crux-2.2/ports/opt/gl-select/Pkgfile =================================================================== --- crux-2.2/ports/opt/gl-select/Pkgfile 2006-07-05 16:07:50 UTC (rev 1583) +++ crux-2.2/ports/opt/gl-select/Pkgfile 2006-07-06 16:03:15 UTC (rev 1584) @@ -3,7 +3,7 @@ name=gl-select version=1.0 -release=1 +release=2 source=($name) build() { Modified: crux-2.2/ports/opt/gl-select/gl-select =================================================================== --- crux-2.2/ports/opt/gl-select/gl-select 2006-07-05 16:07:50 UTC (rev 1583) +++ crux-2.2/ports/opt/gl-select/gl-select 2006-07-06 16:03:15 UTC (rev 1584) @@ -87,6 +87,12 @@ mv /usr/X11R6/lib/libGL{.so.1.2,_so_1_2} mv /usr/X11R6/lib/libGL{.a,_a} rm /usr/X11R6/lib/libGL.so* + # nvidia's library versioning prevents ldconfig from creating + # libGL.so and libGLcore.so + [ ! -L /usr/lib/libGL.so ] && \ + ln -sf libGL.so.1.0.$NV_VER /usr/lib/libGL.so + [ ! -L /usr/lib/libGLcore.so ] && \ + ln -sf libGLcore.so.1.0.$NV_VER /usr/lib/libGLcore.so else echo "You appear to already be using a non-x11 gl/glx setup. If the" echo "one selected isn't the correct one, revert to x11 and then select" @@ -100,6 +106,7 @@ esac /sbin/ldconfig > /dev/null 2>&1 + echo "done." # End of file