summaryrefslogtreecommitdiffstats
path: root/x11/nvidia-driver/files/pkg-install.in
blob: 1db588846038f69de86ae4588b9e4767d30ec17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#
# $FreeBSD$
#

PREFIX=${PKG_PREFIX-/usr/local}

case $2 in
POST-INSTALL)
	/bin/rm -f ${PREFIX}/lib/libGL.so*
	/bin/ln -f ${PREFIX}/lib/.nvidia/libGL.so.1 ${PREFIX}/lib/libGL.so
	/bin/ln -f ${PREFIX}/lib/.nvidia/libGL.so.1 ${PREFIX}/lib/libGL.so.1
	if [ -f ${PREFIX}/lib/.nvidia/libEGL.so.1 ]; then
		/bin/rm -f ${PREFIX}/lib/libEGL.so*
		/bin/ln -f ${PREFIX}/lib/.nvidia/libEGL.so.1 ${PREFIX}/lib/libEGL.so
		/bin/ln -f ${PREFIX}/lib/.nvidia/libEGL.so.1 ${PREFIX}/lib/libEGL.so.1
	fi
	if [ -f ${PREFIX}/lib/.nvidia/libGLESv2.so.2 ]; then
		/bin/rm -f ${PREFIX}/lib/libGLESv2.so*
		/bin/ln -f ${PREFIX}/lib/.nvidia/libGLESv2.so.2 ${PREFIX}/lib/libGLESv2.so
		/bin/ln -f ${PREFIX}/lib/.nvidia/libGLESv2.so.2 ${PREFIX}/lib/libGLESv2.so.2
	fi
	/bin/ln -f ${PREFIX}/lib/xorg/modules/extensions/.nvidia/libglx.so.1 \
		${PREFIX}/lib/xorg/modules/extensions/libglx.so
	;;
esac
OpenPOWER on IntegriCloud