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 83-110
LIBDRM_DEPSTRING=">=x11-libs/libdrm-2.4.46"
Link Here
|
83 |
RDEPEND=" |
84 |
RDEPEND=" |
84 |
!<x11-base/xorg-server-1.7 |
85 |
!<x11-base/xorg-server-1.7 |
85 |
!<=x11-proto/xf86driproto-2.0.3 |
86 |
!<=x11-proto/xf86driproto-2.0.3 |
|
|
87 |
abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] ) |
86 |
classic? ( app-admin/eselect-mesa ) |
88 |
classic? ( app-admin/eselect-mesa ) |
87 |
gallium? ( app-admin/eselect-mesa ) |
89 |
gallium? ( app-admin/eselect-mesa ) |
88 |
>=app-admin/eselect-opengl-1.2.7 |
90 |
>=app-admin/eselect-opengl-1.2.7 |
89 |
dev-libs/expat |
91 |
dev-libs/expat[${MULTILIB_USEDEP}] |
90 |
gbm? ( virtual/udev ) |
92 |
gbm? ( virtual/udev[${MULTILIB_USEDEP}] ) |
91 |
>=x11-libs/libX11-1.3.99.901 |
93 |
>=x11-libs/libX11-1.3.99.901[${MULTILIB_USEDEP}] |
92 |
x11-libs/libXdamage |
94 |
x11-libs/libXdamage[${MULTILIB_USEDEP}] |
93 |
x11-libs/libXext |
95 |
x11-libs/libXext[${MULTILIB_USEDEP}] |
94 |
x11-libs/libXxf86vm |
96 |
x11-libs/libXxf86vm[${MULTILIB_USEDEP}] |
95 |
>=x11-libs/libxcb-1.8.1 |
97 |
>=x11-libs/libxcb-1.8.1[${MULTILIB_USEDEP}] |
96 |
opencl? ( |
98 |
opencl? ( |
97 |
app-admin/eselect-opencl |
99 |
app-admin/eselect-opencl |
98 |
dev-libs/libclc |
100 |
>=dev-libs/libclc-0.0.1_pre20130524-r1 |
99 |
) |
101 |
) |
100 |
vdpau? ( >=x11-libs/libvdpau-0.4.1 ) |
102 |
vdpau? ( >=x11-libs/libvdpau-0.4.1[${MULTILIB_USEDEP}] ) |
101 |
wayland? ( >=dev-libs/wayland-1.0.3 ) |
103 |
wayland? ( >=dev-libs/wayland-1.0.3[${MULTILIB_USEDEP}] ) |
102 |
xorg? ( |
104 |
xorg? ( |
103 |
x11-base/xorg-server:= |
105 |
x11-base/xorg-server:= |
104 |
x11-libs/libdrm[libkms] |
106 |
x11-libs/libdrm[libkms] |
105 |
) |
107 |
) |
106 |
xvmc? ( >=x11-libs/libXvMC-1.0.6 ) |
108 |
xvmc? ( >=x11-libs/libXvMC-1.0.6[${MULTILIB_USEDEP}] ) |
107 |
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?] |
109 |
${LIBDRM_DEPSTRING}[video_cards_freedreno?,video_cards_nouveau?,video_cards_vmware?,${MULTILIB_USEDEP}] |
108 |
" |
110 |
" |
109 |
for card in ${INTEL_CARDS}; do |
111 |
for card in ${INTEL_CARDS}; do |
110 |
RDEPEND="${RDEPEND} |
112 |
RDEPEND="${RDEPEND} |
Lines 120-132
done
Link Here
|
120 |
|
122 |
|
121 |
DEPEND="${RDEPEND} |
123 |
DEPEND="${RDEPEND} |
122 |
llvm? ( |
124 |
llvm? ( |
123 |
>=sys-devel/llvm-2.9 |
125 |
~sys-devel/llvm-3.3[${MULTILIB_USEDEP}] |
124 |
r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] ) |
126 |
r600-llvm-compiler? ( sys-devel/llvm[video_cards_radeon] ) |
125 |
video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) |
127 |
video_cards_radeonsi? ( sys-devel/llvm[video_cards_radeon] ) |
126 |
) |
128 |
) |
127 |
opencl? ( |
129 |
opencl? ( |
128 |
>=sys-devel/llvm-3.3-r1[video_cards_radeon] |
130 |
~sys-devel/llvm-3.3[video_cards_radeon,${MULTILIB_USEDEP}] |
129 |
>=sys-devel/clang-3.3 |
131 |
~sys-devel/clang-3.3[${MULTILIB_USEDEP}] |
130 |
>=sys-devel/gcc-4.6 |
132 |
>=sys-devel/gcc-4.6 |
131 |
) |
133 |
) |
132 |
${PYTHON_DEPS} |
134 |
${PYTHON_DEPS} |
Lines 134-144
DEPEND="${RDEPEND}
Link Here
|
134 |
sys-devel/bison |
136 |
sys-devel/bison |
135 |
sys-devel/flex |
137 |
sys-devel/flex |
136 |
virtual/pkgconfig |
138 |
virtual/pkgconfig |
137 |
>=x11-proto/dri2proto-2.6 |
139 |
>=x11-proto/dri2proto-2.6[${MULTILIB_USEDEP}] |
138 |
>=x11-proto/glproto-1.4.15-r1 |
140 |
>=x11-proto/glproto-1.4.15-r1[${MULTILIB_USEDEP}] |
139 |
>=x11-proto/xextproto-7.0.99.1 |
141 |
>=x11-proto/xextproto-7.0.99.1[${MULTILIB_USEDEP}] |
140 |
x11-proto/xf86driproto |
142 |
x11-proto/xf86driproto[${MULTILIB_USEDEP}] |
141 |
x11-proto/xf86vidmodeproto |
143 |
x11-proto/xf86vidmodeproto[${MULTILIB_USEDEP}] |
142 |
" |
144 |
" |
143 |
|
145 |
|
144 |
S="${WORKDIR}/${MY_P}" |
146 |
S="${WORKDIR}/${MY_P}" |
Lines 183-197
src_prepare() {
Link Here
|
183 |
sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die |
185 |
sed -i -e "s/-DSVR4/-D_POSIX_C_SOURCE=200112L/" configure.ac || die |
184 |
fi |
186 |
fi |
185 |
|
187 |
|
186 |
# Tests fail against python-3, bug #407887 |
|
|
187 |
sed -i 's|/usr/bin/env python|/usr/bin/env python2|' src/glsl/tests/compare_ir || die |
188 |
|
189 |
base_src_prepare |
188 |
base_src_prepare |
190 |
|
189 |
|
191 |
eautoreconf |
190 |
eautoreconf |
|
|
191 |
multilib_copy_sources |
192 |
} |
192 |
} |
193 |
|
193 |
|
194 |
src_configure() { |
194 |
multilib_src_configure() { |
195 |
local myconf |
195 |
local myconf |
196 |
|
196 |
|
197 |
if use classic; then |
197 |
if use classic; then |
Lines 257-263
src_configure() {
Link Here
|
257 |
myconf+=" |
257 |
myconf+=" |
258 |
$(use_enable opencl) |
258 |
$(use_enable opencl) |
259 |
--with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa" |
259 |
--with-opencl-libdir="${EPREFIX}/usr/$(get_libdir)/OpenCL/vendors/mesa" |
260 |
--with-clang-libdir="${EPREFIX}/usr/$(get_libdir)" |
260 |
--with-clang-libdir="${EPREFIX}/usr/lib" |
261 |
" |
261 |
" |
262 |
fi |
262 |
fi |
263 |
fi |
263 |
fi |
Lines 272-277
src_configure() {
Link Here
|
272 |
# build fails with BSD indent, bug #428112 |
272 |
# build fails with BSD indent, bug #428112 |
273 |
use userland_GNU || export INDENT=cat |
273 |
use userland_GNU || export INDENT=cat |
274 |
|
274 |
|
|
|
275 |
if ! multilib_is_native_abi; then |
276 |
myconf+="--disable-xorg |
277 |
LLVM_CONFIG=${EPREFIX}/usr/bin/llvm-config.${ABI}" |
278 |
fi |
279 |
|
275 |
econf \ |
280 |
econf \ |
276 |
--enable-dri \ |
281 |
--enable-dri \ |
277 |
--enable-glx \ |
282 |
--enable-glx \ |
Lines 293-310
src_configure() {
Link Here
|
293 |
${myconf} |
298 |
${myconf} |
294 |
} |
299 |
} |
295 |
|
300 |
|
296 |
src_install() { |
301 |
multilib_src_install() { |
297 |
base_src_install |
302 |
emake DESTDIR="${D}" install |
298 |
|
|
|
299 |
find "${ED}" -name '*.la' -exec rm -f {} + || die |
300 |
|
301 |
if use !bindist; then |
302 |
dodoc docs/patents.txt |
303 |
fi |
304 |
|
305 |
# Install config file for eselect mesa |
306 |
insinto /usr/share/mesa |
307 |
newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf |
308 |
|
303 |
|
309 |
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib |
304 |
# Move libGL and others from /usr/lib to /usr/lib/opengl/blah/lib |
310 |
# because user can eselect desired GL provider. |
305 |
# because user can eselect desired GL provider. |
Lines 381-386
src_install() {
Link Here
|
381 |
fi |
376 |
fi |
382 |
} |
377 |
} |
383 |
|
378 |
|
|
|
379 |
multilib_src_install_all() { |
380 |
find "${ED}" -name '*.la' -exec rm -f {} + || die |
381 |
|
382 |
if use !bindist; then |
383 |
dodoc docs/patents.txt |
384 |
fi |
385 |
|
386 |
# Install config file for eselect mesa |
387 |
insinto /usr/share/mesa |
388 |
newins "${FILESDIR}/eselect-mesa.conf.9.2" eselect-mesa.conf |
389 |
} |
390 |
|
384 |
pkg_postinst() { |
391 |
pkg_postinst() { |
385 |
# Switch to the xorg implementation. |
392 |
# Switch to the xorg implementation. |
386 |
echo |
393 |
echo |