1 |
commit: c219a8ee4df4cc3a762225316d8c4236ed995e51 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 11 21:29:21 2019 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 11 21:30:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c219a8ee |
7 |
|
8 |
x11-misc/virtualgl: Add -9999 live version |
9 |
|
10 |
Package-Manager: Portage-2.3.55, Repoman-2.3.12 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
x11-misc/virtualgl/virtualgl-9999.ebuild | 93 ++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 93 insertions(+) |
15 |
|
16 |
diff --git a/x11-misc/virtualgl/virtualgl-9999.ebuild b/x11-misc/virtualgl/virtualgl-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..05ef6a70377 |
19 |
--- /dev/null |
20 |
+++ b/x11-misc/virtualgl/virtualgl-9999.ebuild |
21 |
@@ -0,0 +1,93 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+inherit cmake-multilib flag-o-matic multilib systemd |
27 |
+ |
28 |
+if [[ ${PV} == *9999 ]] ; then |
29 |
+ EGIT_REPO_URI="https://github.com/VirtualGL/${PN}.git" |
30 |
+ inherit git-r3 |
31 |
+else |
32 |
+ MY_PN="VirtualGL" |
33 |
+ MY_P="${MY_PN}-${PV}" |
34 |
+ S="${WORKDIR}/${MY_P}" |
35 |
+ SRC_URI="mirror://sourceforge/project/${PN}/${PV}/${MY_P}.tar.gz" |
36 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
37 |
+fi |
38 |
+ |
39 |
+DESCRIPTION="Run OpenGL applications remotely with full 3D hardware acceleration" |
40 |
+HOMEPAGE="https://www.virtualgl.org/" |
41 |
+ |
42 |
+SLOT="0" |
43 |
+LICENSE="LGPL-2.1 wxWinLL-3.1 FLTK" |
44 |
+IUSE="libressl ssl" |
45 |
+ |
46 |
+RDEPEND=" |
47 |
+ ssl? ( |
48 |
+ !libressl? ( dev-libs/openssl:0=[${MULTILIB_USEDEP}] ) |
49 |
+ libressl? ( dev-libs/libressl:0=[${MULTILIB_USEDEP}] ) |
50 |
+ ) |
51 |
+ media-libs/libjpeg-turbo[${MULTILIB_USEDEP}] |
52 |
+ x11-libs/libX11[${MULTILIB_USEDEP}] |
53 |
+ x11-libs/libXext[${MULTILIB_USEDEP}] |
54 |
+ x11-libs/libXv[${MULTILIB_USEDEP}] |
55 |
+ virtual/glu[${MULTILIB_USEDEP}] |
56 |
+ virtual/opengl[${MULTILIB_USEDEP}] |
57 |
+ amd64? ( abi_x86_32? ( |
58 |
+ >=media-libs/libjpeg-turbo-1.3.0-r3[abi_x86_32] |
59 |
+ >=x11-libs/libX11-1.6.2[abi_x86_32] |
60 |
+ >=x11-libs/libXext-1.3.2[abi_x86_32] |
61 |
+ >=x11-libs/libXv-1.0.10[abi_x86_32] |
62 |
+ >=virtual/glu-9.0-r1[abi_x86_32] |
63 |
+ >=virtual/opengl-7.0-r1[abi_x86_32] |
64 |
+ ) ) |
65 |
+" |
66 |
+DEPEND="${RDEPEND}" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ # Use /var/lib, bug #428122 |
70 |
+ sed -e "s#/etc/opt#/var/lib#g" -i doc/unixconfig.txt doc/index.html doc/advancedopengl.txt \ |
71 |
+ server/vglrun.in server/vglgenkey server/vglserver_config || die |
72 |
+ |
73 |
+ cmake-utils_src_prepare |
74 |
+} |
75 |
+ |
76 |
+src_configure() { |
77 |
+ # Completely breaks steam/wine for discrete graphics otherwise |
78 |
+ # see https://github.com/VirtualGL/virtualgl/issues/16 |
79 |
+ append-ldflags "-Wl,--no-as-needed" |
80 |
+ |
81 |
+ abi_configure() { |
82 |
+ local mycmakeargs=( |
83 |
+ -DVGL_USESSL="$(usex ssl)" |
84 |
+ -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/"${PF}" |
85 |
+ -DTJPEG_INCLUDE_DIR=/usr/include |
86 |
+ -DCMAKE_INSTALL_LIBDIR=/usr/$(get_libdir) |
87 |
+ -DTJPEG_LIBRARY=/usr/$(get_libdir)/libturbojpeg.so |
88 |
+ -DCMAKE_LIBRARY_PATH=/usr/$(get_libdir) |
89 |
+ ) |
90 |
+ cmake-utils_src_configure |
91 |
+ } |
92 |
+ multilib_parallel_foreach_abi abi_configure |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ cmake-multilib_src_install |
97 |
+ |
98 |
+ # Make config dir |
99 |
+ dodir /var/lib/VirtualGL |
100 |
+ fowners root:video /var/lib/VirtualGL |
101 |
+ fperms 0750 /var/lib/VirtualGL |
102 |
+ newinitd "${FILESDIR}/vgl.initd-r3" vgl |
103 |
+ newconfd "${FILESDIR}/vgl.confd-r2" vgl |
104 |
+ |
105 |
+ exeinto /usr/libexec |
106 |
+ doexe "${FILESDIR}/vgl-helper.sh" |
107 |
+ systemd_dounit "${FILESDIR}/vgl.service" |
108 |
+ |
109 |
+ # Rename glxinfo to vglxinfo to avoid conflict with x11-apps/mesa-progs |
110 |
+ mv "${D}"/usr/bin/{,v}glxinfo || die |
111 |
+ |
112 |
+ # Remove license files, bug 536284 |
113 |
+ rm "${D}"/usr/share/doc/${PF}/{LGPL.txt*,LICENSE*} || die |
114 |
+} |