diff options
author | Koop Mast <kwm@FreeBSD.org> | 2014-11-27 13:14:04 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2014-11-27 13:14:04 +0000 |
commit | 5c3b6d77f955ed940f7609ae8c45ec69c420bc21 (patch) | |
tree | 4c2de4e1899bee6b29cc8c9958c5f91747945d01 /graphics/libEGL/pkg-install | |
parent | 7bf62c01e4de1b45e644055b516e99eaba538928 (diff) | |
download | ports-5c3b6d77f955ed940f7609ae8c45ec69c420bc21.tar.gz ports-5c3b6d77f955ed940f7609ae8c45ec69c420bc21.zip |
Fix libEGL and libGLESv2 conflict between libEGL/libglesv2 and the
nvidia-driver port in the same fashion it was done as the conflict
with the libGL port.
Mesa ports:
Add pkg-[de]install scripts to handle the symlinks in the libEGL
and libglesv2 port.
Move pkg-[de]install scripts of libGL out of files/
Put the real mesa libraries into lib/.mesa so we don't have each
port create a directory for it own use.
Nvidia-driver:
Only apply the libEGL.so and libGLESv2.so alternative install
directory if nvidia-driver actually ships them. Copied from
PR submitter, since it was much cleaner then my initial attempt.
Make pkg-install script check if the nvidia-driver port installed
the libEGL/libglesv2 libraries and only then make the symlinks.
This should allow the script to work with the slave ports which
don't install these libraries.
Make the pkg-deinstall script check if the mesa version of
the libEGL/libGLESv2 libraries are installed before trying to
recreate the symlinks of those ports.
PR: 194924
Submitted by: Gerard Seibert <gerard_seibert@outlook.com>
Approved by: portmgr (angrybapt)
Notes
Notes:
svn path=/head/; revision=373483
Diffstat (limited to 'graphics/libEGL/pkg-install')
-rw-r--r-- | graphics/libEGL/pkg-install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/graphics/libEGL/pkg-install b/graphics/libEGL/pkg-install new file mode 100644 index 000000000000..15787f9e797b --- /dev/null +++ b/graphics/libEGL/pkg-install @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +PREFIX="${PKG_PREFIX-/usr/local}" + +case $2 in +POST-INSTALL) + if [ -f ${PREFIX}/lib/.nvidia/libEGL.so.1 ]; then + /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 + else + /bin/ln -f ${PREFIX}/lib/.mesa/libEGL.so.1.0.0 ${PREFIX}/lib/libEGL.so + /bin/ln -f ${PREFIX}/lib/.mesa/libEGL.so.1.0.0 ${PREFIX}/lib/libEGL.so.1 + /bin/ln -f ${PREFIX}/lib/.mesa/libEGL.so.1.0.0 ${PREFIX}/lib/libEGL.so.1.0.0 + fi + ;; +esac |