1 |
commit: 760dbd6845da13d76b6597ed4361ac6f021d9f8a |
2 |
Author: Ettore Di Giacinto <mudler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 8 08:46:59 2017 +0000 |
4 |
Commit: Ettore Di Giacinto <mudler <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 8 09:08:52 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=760dbd68 |
7 |
|
8 |
x11-misc/virtualgl: Version bump to 2.5.2, fixes bug #597378 |
9 |
|
10 |
Workarounds upstream bug, which likely will not be fixed anytime soon |
11 |
|
12 |
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=597378 |
13 |
Package-Manager: Portage-2.3.3, Repoman-2.3.2 |
14 |
|
15 |
x11-misc/virtualgl/Manifest | 1 + |
16 |
x11-misc/virtualgl/virtualgl-2.5.2.ebuild | 88 +++++++++++++++++++++++++++++++ |
17 |
2 files changed, 89 insertions(+) |
18 |
|
19 |
diff --git a/x11-misc/virtualgl/Manifest b/x11-misc/virtualgl/Manifest |
20 |
index 41b71e78e42..152e876fa28 100644 |
21 |
--- a/x11-misc/virtualgl/Manifest |
22 |
+++ b/x11-misc/virtualgl/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST VirtualGL-2.4.1.tar.gz 1116018 SHA256 2889c6eb35b50340517856f497c07450a9d5ccab46e9b1700a76029a2159cf2e SHA512 b8901eccb29ea21ca1cb0743b6b3a7316ee02422a94be04133daa1c8a24b109e27504a63c901359c7dec22a8af2f0e26d909f9b74c834b97dc19f7491232db0a WHIRLPOOL 2fec19e22eab70cde4a9e4a8a2c9a9628e3e20809e6322b14de53bca50a967f8a142dee147255cb3e9d4d6c802d984b5adbd5293b6bdd205405b92fe18386b95 |
25 |
DIST VirtualGL-2.5.1.tar.gz 1165255 SHA256 da342e0157257cd7b7c9c6705c7f2b9853f28f6bb6c51c90c710cc14257f3659 SHA512 a60a55bae58c80bcea418702f4d3b41356a9e599f007fd539043228c4fe75c28582bab376caf121a5eeee4a21cddb80f1edc2f89abfe88a584321c46383d3654 WHIRLPOOL 90555331f109b2cf3a0737860b57abebd8a21bd114effbae56ae900f03b65029e950c8d51cfed482eaa2376da219c7034823afca7d4e516721dbb8a56d3bf065 |
26 |
+DIST VirtualGL-2.5.2.tar.gz 1172965 SHA256 4f43387678b289a24139c5b7c3699740ca555a9f10011c979e51aa4df2b93238 SHA512 a3156f663c03e611a98a083bb12bea47820cdadc9f064e20431fddec55aae560f09b133f5254a24d7da01b64be2672d27713d7f6605eaca2d9d83090a070fafd WHIRLPOOL 33efef4b83def93908dfdd89aecb1a075b68258dc5f7909af2bcf6f1047c7dc83f5aa125366517a03abb21c97d64428a0d4f21064a686facc49f34ae486e59d7 |
27 |
|
28 |
diff --git a/x11-misc/virtualgl/virtualgl-2.5.2.ebuild b/x11-misc/virtualgl/virtualgl-2.5.2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..981a222f951 |
31 |
--- /dev/null |
32 |
+++ b/x11-misc/virtualgl/virtualgl-2.5.2.ebuild |
33 |
@@ -0,0 +1,88 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+inherit cmake-multilib flag-o-matic multilib systemd |
39 |
+ |
40 |
+DESCRIPTION="Run OpenGL applications remotely with full 3D hardware acceleration" |
41 |
+HOMEPAGE="http://www.virtualgl.org/" |
42 |
+ |
43 |
+MY_PN="VirtualGL" |
44 |
+MY_P="${MY_PN}-${PV}" |
45 |
+S="${WORKDIR}/${MY_P}" |
46 |
+SRC_URI="mirror://sourceforge/${PN}/files/${PV}/${MY_P}.tar.gz" |
47 |
+ |
48 |
+SLOT="0" |
49 |
+LICENSE="LGPL-2.1 wxWinLL-3.1 FLTK" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="libressl ssl" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ ssl? ( |
55 |
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) |
56 |
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) |
57 |
+ ) |
58 |
+ media-libs/libjpeg-turbo[${MULTILIB_USEDEP}] |
59 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
60 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
61 |
+ x11-libs/libXv[${MULTILIB_USEDEP}] |
62 |
+ virtual/glu[${MULTILIB_USEDEP}] |
63 |
+ virtual/opengl[${MULTILIB_USEDEP}] |
64 |
+ amd64? ( abi_x86_32? ( |
65 |
+ >=media-libs/libjpeg-turbo-1.3.0-r3[abi_x86_32] |
66 |
+ >=x11-libs/libX11-1.6.2[abi_x86_32] |
67 |
+ >=x11-libs/libXext-1.3.2[abi_x86_32] |
68 |
+ >=x11-libs/libXv-1.0.10[abi_x86_32] |
69 |
+ >=virtual/glu-9.0-r1[abi_x86_32] |
70 |
+ >=virtual/opengl-7.0-r1[abi_x86_32] |
71 |
+ ) ) |
72 |
+" |
73 |
+DEPEND="${RDEPEND}" |
74 |
+ |
75 |
+src_prepare() { |
76 |
+ # Use /var/lib, bug #428122 |
77 |
+ sed -e "s#/etc/opt#/var/lib#g" -i doc/unixconfig.txt doc/index.html doc/advancedopengl.txt \ |
78 |
+ server/vglrun.in server/vglgenkey server/vglserver_config || die |
79 |
+ |
80 |
+ default |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ # Completely breaks steam/wine for discrete graphics otherwise |
85 |
+ # see https://github.com/VirtualGL/virtualgl/issues/16 |
86 |
+ append-ldflags "-Wl,--no-as-needed" |
87 |
+ |
88 |
+ abi_configure() { |
89 |
+ local mycmakeargs=( |
90 |
+ -DVGL_USESSL="$(usex ssl)" |
91 |
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/"${PF}" |
92 |
+ -DTJPEG_INCLUDE_DIR=/usr/include |
93 |
+ -DCMAKE_INSTALL_LIBDIR=/usr/$(get_libdir) |
94 |
+ -DTJPEG_LIBRARY=/usr/$(get_libdir)/libturbojpeg.so |
95 |
+ -DCMAKE_LIBRARY_PATH=/usr/$(get_libdir) |
96 |
+ ) |
97 |
+ cmake-utils_src_configure |
98 |
+ } |
99 |
+ multilib_parallel_foreach_abi abi_configure |
100 |
+} |
101 |
+ |
102 |
+src_install() { |
103 |
+ cmake-multilib_src_install |
104 |
+ |
105 |
+ # Make config dir |
106 |
+ dodir /var/lib/VirtualGL |
107 |
+ fowners root:video /var/lib/VirtualGL |
108 |
+ fperms 0750 /var/lib/VirtualGL |
109 |
+ newinitd "${FILESDIR}/vgl.initd-r3" vgl |
110 |
+ newconfd "${FILESDIR}/vgl.confd-r2" vgl |
111 |
+ |
112 |
+ exeinto /usr/libexec |
113 |
+ doexe "${FILESDIR}/vgl-helper.sh" |
114 |
+ systemd_dounit "${FILESDIR}/vgl.service" |
115 |
+ |
116 |
+ # Rename glxinfo to vglxinfo to avoid conflict with x11-apps/mesa-progs |
117 |
+ mv "${D}"/usr/bin/{,v}glxinfo || die |
118 |
+ |
119 |
+ # Remove license files, bug 536284 |
120 |
+ rm "${D}"/usr/share/doc/${PF}/{LGPL.txt*,LICENSE*} || die |
121 |
+} |