talimat 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Description: Acik kaynak kodlu OpenGL uyumlu grafik kutuphanesi
  2. # URL: http://www.xorg-mesa3d.org
  3. # Packagers: milisarge
  4. # Depends on: pkg-config libtool wayland xorg-libx11 xorg-libdrm xorg-libxext xorg-libxdamage expat llvm elfutils xorg-libxshmfence
  5. name=xorg-mesa
  6. version=12.0.3
  7. release=1
  8. source=(ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-$version.tar.xz
  9. http://www.linuxfromscratch.org/patches/downloads/mesa/mesa-$version-add_xdemos-1.patch
  10. https://github.com/imirkin/mesa/commit/2e6b0e24cfb0f467e8b6d6f394730442a72dcdaf.diff
  11. https://github.com/imirkin/mesa/commit/2733e5483e1c2b80e4b0ae21187ec5e3e1579397.diff
  12. https://github.com/imirkin/mesa/commit/940b3a773f264f3f52574160f0d06c48f8e8aeb2.diff)
  13. build() {
  14. cd mesa-$version
  15. patch -Np1 -i ../mesa-$version-add_xdemos-1.patch
  16. patch -p1 -i ../2e6b0e24cfb0f467e8b6d6f394730442a72dcdaf.diff
  17. patch -p1 -i ../2733e5483e1c2b80e4b0ae21187ec5e3e1579397.diff
  18. patch -p1 -i ../940b3a773f264f3f52574160f0d06c48f8e8aeb2.diff
  19. sed -e "/PTHREADSTUBS/d" -i configure.ac
  20. ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
  21. --prefix=/usr \
  22. --sysconfdir=/etc \
  23. --enable-texture-float \
  24. --enable-gles1 \
  25. --enable-gles2 \
  26. --enable-osmesa \
  27. --enable-xa \
  28. --enable-gbm \
  29. --enable-glx-tls \
  30. --with-egl-platforms="drm,x11,wayland" \
  31. --with-gallium-drivers="nouveau,r300,r600,radeonsi,svga,swrast"
  32. make
  33. make -C xdemos DEMOS_PREFIX=/usr
  34. make DESTDIR=$PKG install
  35. make -C xdemos DEMOS_PREFIX=/usr DESTDIR=$PKG install
  36. install -v -dm755 $PKG/usr/share/doc/mesa-$version
  37. }