Contents of /smage/trunk/core/libglvnd/libglvnd-1.3.2-r3.smage2
Parent Directory | Revision Log
Revision 14181 -
(show annotations)
(download)
Mon Jul 6 12:36:22 2020 UTC (4 years, 2 months ago) by niro
File size: 1515 byte(s)
Mon Jul 6 12:36:22 2020 UTC (4 years, 2 months ago) by niro
File size: 1515 byte(s)
-remove opengl-update cruft in preinstall phase
1 | # $Id$ |
2 | |
3 | PNAME="libglvnd" |
4 | PVER="1.3.2" |
5 | PBUILD="r3" |
6 | |
7 | PCAT="x11-libs" |
8 | |
9 | DESCRIPTION="GL Vendor-Neutral Dispatch library." |
10 | HOMEPAGE="https://github.com/NVIDIA/libglvnd/" |
11 | |
12 | DEPEND=">= x11-libs/libX11-1.6 |
13 | >= x11-libs/libXext-1.3" |
14 | |
15 | ALX_DEV_DEPEND=">= x11-libs/libX11-dev-1.6 |
16 | >= x11-libs/libXext-dev-1" |
17 | |
18 | SDEPEND="${ALX_DEV_DEPEND} |
19 | >= virtual/glproto |
20 | >= dev-lang/python3-3.7 |
21 | >= sys-dev/automake-4 |
22 | >= sys-dev/autoconf-5 |
23 | >= dev-util/pkgconfig-0.25" |
24 | |
25 | PROVIDE="virtual/libgl |
26 | virtual/libegl |
27 | virtual/libgles" |
28 | |
29 | SRCFILE="v${PVER}.tar.gz" |
30 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
31 | |
32 | sminclude multilib meson alx-split |
33 | msetfeature "!check" |
34 | |
35 | SRC_URI=( |
36 | https://github.com/NVIDIA/libglvnd/archive/${SRCFILE} |
37 | mirror://${PNAME}/${SRCFILE} |
38 | ) |
39 | |
40 | UP2SEPERATOR="v" |
41 | UP2DATE="updatecmd https://github.com/NVIDIA/libglvnd/releases | highesttarball gz" |
42 | |
43 | preinstall() |
44 | { |
45 | echo "Searching deprecated package 'opengl-update'..." |
46 | if [[ ! -z $(magequery -n opengl-update) ]] |
47 | then |
48 | echo "Uninstalling deprecated package 'opengl-update'..." |
49 | mage uninstall opengl-update |
50 | fi |
51 | |
52 | # clean up deprecated dynamic opengl symlinks in favor of libglvnd |
53 | for i in libGL.so libGLESv1_CM.so libGLESv2.so |
54 | do |
55 | if [ -L ${MROOT}/usr/$(mlibdir)/${i} ] |
56 | then |
57 | echo "pruning dynamic opengl symlink '${MROOT}/usr/$(mlibdir)/${i}'" |
58 | rm ${MROOT}/usr/$(mlibdir)/${i} |
59 | fi |
60 | if [[ $(mlibdir) != lib ]] |
61 | then |
62 | if [ -L ${MROOT}/usr/lib/${i} ] |
63 | then |
64 | echo "pruning dynamic opengl symlink '${MROOT}/usr/lib/${i}'" |
65 | rm ${MROOT}/usr/lib/${i} |
66 | fi |
67 | fi |
68 | done |
69 | } |