Lines 13-19
fi
Link Here
|
13 |
|
13 |
|
14 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
14 |
PYTHON_COMPAT=( python{2_6,2_7} ) |
15 |
|
15 |
|
16 |
inherit base autotools multilib flag-o-matic python-single-r1 toolchain-funcs ${GIT_ECLASS} |
16 |
inherit base autotools multilib multilib-minimal flag-o-matic \ |
|
|
17 |
python-single-r1 toolchain-funcs ${GIT_ECLASS} |
17 |
|
18 |
|
18 |
OPENGL_DIR="xorg-x11" |
19 |
OPENGL_DIR="xorg-x11" |
19 |
|
20 |
|
Lines 88-115
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.46"
Link Here
|
88 |
RDEPEND=" |
89 |
RDEPEND=" |
89 |
!<x11-base/xorg-server-1.7 |
90 |
!<x11-base/xorg-server-1.7 |
90 |
!<=x11-proto/xf86driproto-2.0.3 |
91 |
!<=x11-proto/xf86driproto-2.0.3 |
|
|
92 |
abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] ) |
91 |
classic? ( app-admin/eselect-mesa ) |
93 |
classic? ( app-admin/eselect-mesa ) |
92 |
gallium? ( app-admin/eselect-mesa ) |
94 |
gallium? ( app-admin/eselect-mesa ) |
93 |
>=app-admin/eselect-opengl-1.2.7 |
95 |
>=app-admin/eselect-opengl-1.2.7 |
94 |
dev-libs/expat |
96 |
dev-libs/expat[${MULTILIB_USEDEP}] |
95 |
gbm? ( virtual/udev ) |
97 |
gbm? ( virtual/udev[${MULTILIB_USEDEP}] ) |
96 |
>=x11-libs/libX11-1.3.99.901 |
98 |
>=x11-libs/libX11-1.3.99.901[${MULTILIB_USEDEP}] |
97 |
x11-libs/libXdamage |
99 |
x11-libs/libXdamage[${MULTILIB_USEDEP}] |
98 |
x11-libs/libXext |
100 |
x11-libs/libXext[${MULTILIB_USEDEP}] |
99 |
x11-libs/libXxf86vm |
101 |
x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
100 |
>=x11-libs/libxcb-1.8.1 |
102 |
>=x11-libs/libxcb-1.8.1[${MULTILIB_USEDEP}] |
101 |
opencl? ( |
103 |
opencl? ( |
102 |
app-admin/eselect-opencl |
104 |
app-admin/eselect-opencl |
103 |
dev-libs/libclc |
105 |
>=dev-libs/libclc-0.0.1_pre20130524-r1 |
104 |
) |
106 |
) |
105 |
vdpau? ( >=x11-libs/libvdpau-0.4.1 ) |
107 |
vdpau? ( >=x11-libs/libvdpau-0.4.1[${MULTILIB_USEDEP}] ) |
106 |
wayland? ( >=dev-libs/wayland-1.0.3 ) |
108 |
wayland? ( >=dev-libs/wayland-1.0.3[${MULTILIB_USEDEP}] ) |
107 |
xorg? ( |
109 |
xorg? ( |
108 |
x11-base/xorg-server:= |
110 |
x11-base/xorg-server:= |
109 |
x11-libs/libdrm[libkms] |
111 |
x11-libs/libdrm[libkms] |
110 |
) |
112 |
) |
111 |
xvmc? ( >=x11-libs/libXvMC-1.0.6 ) |
113 |
xvmc? ( >=x11-libs/libXvMC-1.0.6[${MULTILIB_USEDEP}] ) |
112 |
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?] |
114 |
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?,${MULTILIB_USEDEP}] |
113 |
" |
115 |
" |
114 |
for card in ${INTEL_CARDS}; do |
116 |
for card in ${INTEL_CARDS}; do |
115 |
RDEPEND="${RDEPEND} |
117 |
RDEPEND="${RDEPEND} |
Lines 125-137
done
Link Here
|
125 |
|
127 |
|
126 |
DEPEND="${RDEPEND} |
128 |
DEPEND="${RDEPEND} |
127 |
llvm? ( |
129 |
llvm? ( |
128 |
>=sys-devel/llvm-2.9 |
130 |
~sys-devel/llvm-3.3[${MULTILIB_USEDEP}] |
129 |
r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] ) |
131 |
r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] ) |
130 |
video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) |
132 |
video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) |
131 |
) |
133 |
) |
132 |
opencl? ( |
134 |
opencl? ( |
133 |
>=sys-devel/llvm-3.3-r1[video_cards_radeon] |
135 |
~sys-devel/llvm-3.3[video_cards_radeon,${MULTILIB_USEDEP}] |
134 |
>=sys-devel/clang-3.3 |
136 |
~sys-devel/clang-3.3[${MULTILIB_USEDEP}] |
135 |
>=sys-devel/gcc-4.6 |
137 |
>=sys-devel/gcc-4.6 |
136 |
) |
138 |
) |
137 |
${PYTHON_DEPS} |
139 |
${PYTHON_DEPS} |
Lines 139-149
DEPEND="${RDEPEND}
Link Here
|
139 |
sys-devel/bison |
141 |
sys-devel/bison |
140 |
sys-devel/flex |
142 |
sys-devel/flex |
141 |
virtual/pkgconfig |
143 |
virtual/pkgconfig |
142 |
>=x11-proto/dri2proto-2.6 |
144 |
>=x11-proto/dri2proto-2.6[${MULTILIB_USEDEP}] |
143 |
>=x11-proto/glproto-1.4.15-r1 |
145 |
>=x11-proto/glproto-1.4.15-r1[${MULTILIB_USEDEP}] |
144 |
>=x11-proto/xextproto-7.0.99.1 |
146 |
>=x11-proto/xextproto-7.0.99.1[${MULTILIB_USEDEP}] |
145 |
x11-proto/xf86driproto |
147 |
x11-proto/xf86driproto[${MULTILIB_USEDEP}] |
146 |
x11-proto/xf86vidmodeproto |
148 |
x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}] |
147 |
" |
149 |
" |
148 |
|
150 |
|
149 |
S="${WORKDIR}/${MY_P}" |
151 |
S="${WORKDIR}/${MY_P}" |
Lines 187-201
src_prepare() {
Link Here
|
187 |
sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die |
189 |
sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die |
188 |
fi |
190 |
fi |
189 |
|
191 |
|
190 |
# Tests fail against python-3, bug #407887 |
|
|
191 |
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die |
192 |
|
193 |
base_src_prepare |
192 |
base_src_prepare |
194 |
|
193 |
|
195 |
eautoreconf |
194 |
eautoreconf |
|
|
195 |
multilib_copy_sources |
196 |
} |
196 |
} |
197 |
|
197 |
|
198 |
src_configure() { |
198 |
multilib_src_configure() { |
199 |
local myconf |
199 |
local myconf |
200 |
|
200 |
|
201 |
if use classic; then |
201 |
if use classic; then |
Lines 261-267
src_configure() {
Link Here
|
261 |
myconf+=" |
261 |
myconf+=" |
262 |
$(use_enable opencl) |
262 |
$(use_enable opencl) |
263 |
--with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa" |
263 |
--with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa" |
264 |
--with-clang-libdir="${EPREFIX}/usr/$(get_libdir)" |
264 |
--with-clang-libdir="${EPREFIX}/usr/lib" |
265 |
" |
265 |
" |
266 |
fi |
266 |
fi |
267 |
fi |
267 |
fi |
Lines 276-281
src_configure() {
Link Here
|
276 |
# build fails with BSD indent, bug #428112 |
276 |
# build fails with BSD indent, bug #428112 |
277 |
use userland_GNU || export INDENT=cat |
277 |
use userland_GNU || export INDENT=cat |
278 |
|
278 |
|
|
|
279 |
if ! multilib_is_native_abi; then |
280 |
myconf+="--disable-xorg |
281 |
LLVM_CONFIG=${EPREFIX}/usr/bin/llvm-config.${ABI}" |
282 |
fi |
283 |
|
279 |
econf \ |
284 |
econf \ |
280 |
--enable-dri \ |
285 |
--enable-dri \ |
281 |
--enable-glx \ |
286 |
--enable-glx \ |
Lines 297-314
src_configure() {
Link Here
|
297 |
${myconf} |
302 |
${myconf} |
298 |
} |
303 |
} |
299 |
|
304 |
|
300 |
src_install() { |
305 |
multilib_src_install() { |
301 |
base_src_install |
306 |
emake DESTDIR="${D}" install |
302 |
|
|
|
303 |
find "${ED}" -name '*.la' -exec rm -f {} + || die |
304 |
|
305 |
if use !bindist; then |
306 |
dodoc docs/patents.txt |
307 |
fi |
308 |
|
309 |
# Install config file for eselect mesa |
310 |
insinto /usr/share/mesa |
311 |
newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf |
312 |
|
307 |
|
313 |
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib |
308 |
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib |
314 |
# because user can eselect desired GL provider. |
309 |
# because user can eselect desired GL provider. |
Lines 385-390
src_install() {
Link Here
|
385 |
fi |
380 |
fi |
386 |
} |
381 |
} |
387 |
|
382 |
|
|
|
383 |
multilib_src_install_all() { |
384 |
find "${ED}" -name '*.la' -exec rm -f {} + || die |
385 |
|
386 |
if use !bindist; then |
387 |
dodoc docs/patents.txt |
388 |
fi |
389 |
|
390 |
# Install config file for eselect mesa |
391 |
insinto /usr/share/mesa |
392 |
newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf |
393 |
} |
394 |
|
388 |
pkg_postinst() { |
395 |
pkg_postinst() { |
389 |
# Switch to the xorg implementation. |
396 |
# Switch to the xorg implementation. |
390 |
echo |
397 |
echo |