25 |
%define name mesa |
%define name mesa |
26 |
%define fversion 9.1.0 |
%define fversion 9.1.0 |
27 |
%define version 9.1.0 |
%define version 9.1.0 |
28 |
%define rel 1 |
%define rel 2 |
29 |
|
|
30 |
%define release %mkrel %{rel} |
%define release %mkrel %{rel} |
31 |
%define src_type tar.bz2 |
%define src_type tar.bz2 |
542 |
|
|
543 |
# Duplicate source tree for OSMesa, since building both versions out-of-tree |
# Duplicate source tree for OSMesa, since building both versions out-of-tree |
544 |
# would break build. - Anssi 12/2012 |
# would break build. - Anssi 12/2012 |
545 |
#all=$(ls) |
all=$(ls) |
546 |
#mkdir -p build-osmesa |
mkdir -p build-osmesa |
547 |
#cp -a $all build-osmesa |
cp -al $all build-osmesa |
548 |
|
|
549 |
%build |
%build |
550 |
# (re)generate auto* generated files using our autotools and libtoolize |
# (re)generate auto* generated files using our autotools and libtoolize |
575 |
--enable-gallium-g3dvl \ |
--enable-gallium-g3dvl \ |
576 |
--disable-xvmc \ |
--disable-xvmc \ |
577 |
--enable-vdpau \ |
--enable-vdpau \ |
|
--enable-osmesa \ |
|
578 |
%if %{with_hardware} |
%if %{with_hardware} |
579 |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast \ |
--with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast \ |
580 |
--enable-gallium-llvm \ |
--enable-gallium-llvm \ |
593 |
# See e.g. https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1066599 |
# See e.g. https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1066599 |
594 |
# -Anssi 12/2012 |
# -Anssi 12/2012 |
595 |
|
|
596 |
#pushd build-osmesa |
pushd build-osmesa |
597 |
#configure2_5x \ |
autoreconf -vfi |
598 |
# --enable-osmesa \ |
%configure2_5x \ |
599 |
# --disable-dri \ |
--enable-osmesa \ |
600 |
# --disable-glx \ |
--disable-dri \ |
601 |
# --disable-egl \ |
--disable-glx \ |
602 |
# --disable-shared-glapi \ |
--disable-egl \ |
603 |
# --without-gallium-drivers |
--disable-shared-glapi \ |
604 |
#popd |
--without-gallium-drivers |
605 |
|
popd |
606 |
|
|
607 |
%make |
%make |
608 |
#make -C build-osmesa |
%make -C build-osmesa || %make -C build-osmesa/src/mesa/program libprogram.la |
609 |
|
%make -C build-osmesa |
610 |
|
|
611 |
%install |
%install |
612 |
#makeinstall_std -C build-osmesa |
%makeinstall_std -C build-osmesa |
613 |
%makeinstall_std |
%makeinstall_std |
614 |
|
|
615 |
# FIXME: strip will likely break the hardlink |
# FIXME: strip will likely break the hardlink |