/[packages]/backports/4/mesa/current/SPECS/mesa.spec
ViewVC logotype

Diff of /backports/4/mesa/current/SPECS/mesa.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 336174 by tv, Sat Dec 29 11:21:26 2012 UTC revision 336175 by cjw, Sat Dec 29 18:58:23 2012 UTC
# Line 15  Line 15 
15  %define _disable_ld_no_undefined 1  %define _disable_ld_no_undefined 1
16    
17    
18  %define git 0  %define git 20121228
19  %define git_branch 9.0  %define git_branch 9.1
20  %define with_hardware 1  %define with_hardware 1
21    
22  %define opengl_ver 3.0  %define opengl_ver 3.0
23    
24  %define relc                    0  %define relc                    0
25  %define name                    mesa  %define name                    mesa
26  %define fversion                9.0.1  %define fversion                9.1.0
27  %define version                 9.0.1  %define version                 9.1.0
28  %define rel                     3  %define rel                     1
29    
30  %define release                 %mkrel %{rel}  %define release                 %mkrel %{rel}
31  %define src_type tar.bz2  %define src_type tar.bz2
# Line 144  BuildRequires: pkgconfig(talloc) Line 144  BuildRequires: pkgconfig(talloc)
144  BuildRequires:  libxml2-python  BuildRequires:  libxml2-python
145  BuildRequires:  makedepend  BuildRequires:  makedepend
146  BuildRequires:  bison flex  BuildRequires:  bison flex
147  BuildRequires:  llvm-devel >= 3.1  BuildRequires:  llvm-devel > 3.2-1.mga3
148  BuildRequires:  pkgconfig(libudev)  BuildRequires:  pkgconfig(libudev)
149  BuildRequires:  pkgconfig(vdpau)  BuildRequires:  pkgconfig(vdpau)
150  %if %{enable_wayland}  %if %{enable_wayland}
# Line 153  BuildRequires:  wayland-devel Line 153  BuildRequires:  wayland-devel
153    
154  URL:            http://www.mesa3d.org  URL:            http://www.mesa3d.org
155  %if %{git}  %if %{git}
156    Source0:        %{name}-%{git}.tar.bz2
157  # (blino) snapshot of 9.0 branch  # (blino) snapshot of 9.0 branch
158  Source0:        %{name}-%{git_branch}-%{git}.tar.bz2  #Source0:       %{name}-%{git_branch}-%{git}.tar.bz2
159  %else  %else
160  Source0:        ftp://ftp.freedesktop.org/pub/mesa/%version/MesaLib-%{fversion}%{vsuffix}.%{src_type}  Source0:        ftp://ftp.freedesktop.org/pub/mesa/%version/MesaLib-%{fversion}%{vsuffix}.%{src_type}
161  %endif  %endif
# Line 191  Patch201: 0201-revert-fix-glxinitializev Line 192  Patch201: 0201-revert-fix-glxinitializev
192  # (blino) llvmpipe test programs link fails when ld --as-needed option is used, reported as fdo #52167  # (blino) llvmpipe test programs link fails when ld --as-needed option is used, reported as fdo #52167
193  Patch901: 0901-gallium-only-link-static-archives-between-ld-start-e.patch  Patch901: 0901-gallium-only-link-static-archives-between-ld-start-e.patch
194    
   
195  #------------------------------------------------------------------------------  #------------------------------------------------------------------------------
196    
197  # package mesa  # package mesa
# Line 532  with the softpipe driver. Line 532  with the softpipe driver.
532    
533  %prep  %prep
534  %if %{git}  %if %{git}
535  %setup -q -n mesa-%{git_branch}-%{git}  %setup -q -n mesa-%{git}
536    #setup -q -n mesa-%{git_branch}-%{git}
537  %else  %else
538  %setup -q -n Mesa-%{fversion}%{vsuffix}  %setup -q -n Mesa-%{fversion}%{vsuffix}
539  %endif  %endif
540    
541  %apply_patches  %apply_patches
 autoreconf -vfi  
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 -a $all build-osmesa
548    
549  %build  %build
550    # (re)generate auto* generated files using our autotools and libtoolize
551    autoreconf -vfi
552    
553  # fix build - TODO: should this be fixed in llvm somehow, or maybe the library  # fix build - TODO: should this be fixed in llvm somehow, or maybe the library
554  # symlinks should be moved to %{_libdir}? -Anssi 08/2012  # symlinks should be moved to %{_libdir}? -Anssi 08/2012
555  export LDFLAGS="-L%{_libdir}/llvm"  export LDFLAGS="-L%{_libdir}/llvm"
# Line 555  export LDFLAGS="-L%{_libdir}/llvm" Line 558  export LDFLAGS="-L%{_libdir}/llvm"
558                  --enable-glx \                  --enable-glx \
559                  --with-dri-driverdir=%{driver_dir} \                  --with-dri-driverdir=%{driver_dir} \
560                  --with-dri-drivers="%{dri_drivers}" \                  --with-dri-drivers="%{dri_drivers}" \
                 --enable-shared-dricore \  
561  %if %{enable_egl}  %if %{enable_egl}
562                  --enable-egl \                  --enable-egl \
563  %else  %else
# Line 573  export LDFLAGS="-L%{_libdir}/llvm" Line 575  export LDFLAGS="-L%{_libdir}/llvm"
575                  --enable-gallium-g3dvl \                  --enable-gallium-g3dvl \
576                  --disable-xvmc \                  --disable-xvmc \
577                  --enable-vdpau \                  --enable-vdpau \
578                  --disable-va \                  --enable-osmesa \
579  %if %{with_hardware}  %if %{with_hardware}
580                  --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast \                  --with-gallium-drivers=r300,r600,radeonsi,nouveau,swrast \
581                  --enable-gallium-llvm \                  --enable-gallium-llvm \
# Line 592  export LDFLAGS="-L%{_libdir}/llvm" Line 594  export LDFLAGS="-L%{_libdir}/llvm"
594  # See e.g. https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1066599  # See e.g. https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1066599
595  # -Anssi 12/2012  # -Anssi 12/2012
596    
597  pushd build-osmesa  #pushd build-osmesa
598  %configure2_5x \  #configure2_5x \
599                  --enable-osmesa \  #               --enable-osmesa \
600                  --disable-dri \  #               --disable-dri \
601                  --disable-glx \  #               --disable-glx \
602                  --disable-egl \  #               --disable-egl \
603                  --disable-shared-glapi \  #               --disable-shared-glapi \
604                  --without-gallium-drivers  #               --without-gallium-drivers
605  popd  #popd
606    
607  %make  %make
608  %make -C build-osmesa  #make -C build-osmesa
609    
610  %install  %install
611  %makeinstall_std -C build-osmesa  #makeinstall_std -C build-osmesa
612  %makeinstall_std  %makeinstall_std
613    
614  # FIXME: strip will likely break the hardlink  # FIXME: strip will likely break the hardlink
# Line 726  find %{buildroot} -name '*.la' -exec rm Line 728  find %{buildroot} -name '*.la' -exec rm
728  %{_libdir}/pkgconfig/dri.pc  %{_libdir}/pkgconfig/dri.pc
729    
730  #FIXME: check those headers  #FIXME: check those headers
731  %{_includedir}/GL/vms_x_fix.h  #{_includedir}/GL/vms_x_fix.h
732  %{_includedir}/GL/wmesa.h  %{_includedir}/GL/wmesa.h
733  %dir %{_includedir}/GL/internal  %dir %{_includedir}/GL/internal
734  %{_includedir}/GL/internal/dri_interface.h  %{_includedir}/GL/internal/dri_interface.h
# Line 764  find %{buildroot} -name '*.la' -exec rm Line 766  find %{buildroot} -name '*.la' -exec rm
766  %files -n %{libglesv2name}-devel  %files -n %{libglesv2name}-devel
767  %defattr(-,root,root)  %defattr(-,root,root)
768  %{_includedir}/GLES2  %{_includedir}/GLES2
769    %{_includedir}/GLES3
770  %{_libdir}/libGLESv2.so  %{_libdir}/libGLESv2.so
771  %{_libdir}/pkgconfig/glesv2.pc  %{_libdir}/pkgconfig/glesv2.pc
772    

Legend:
Removed from v.336174  
changed lines
  Added in v.336175

  ViewVC Help
Powered by ViewVC 1.1.30