1 #Maintainer: Tehacjusz Flovus (thc_flow) <thc@weedsmoker.im>
3 pkgname=wayland-mesa-git-bin
6 pkgdesc='Mesa OpenGL Library from GIT repository, replaced AUR git dependencies with packages from repository and removed gl-manpages.'
7 url='http://www.mesa3d.org'
10 depends=('libgl' 'glproto' 'libdrm' 'dri2proto' 'libxxf86vm>=1.1.0' 'libxdamage>=1.1.2' 'expat>=2.0.1' 'libxmu>=1.0.5' 'libx11>=1.3.2' 'libxt>=1.0.7' 'libxext>=1.1.1' 'gcc-libs>=4.4.2')
11 makedepends=('git' 'pkgconfig' 'makedepend')
12 optdepends=('mesa-demos-git: for mesa demos (glxinfo, glxgears, ...)')
13 conflicts=('mesa-apps' 'mesa')
14 provides=('mesa=7.8.2' 'mesa-git')
15 options=('!makeflags')
17 md5sums=('5c65a0fe315dd347e09b1f2826a1df5a')
19 _gitroot='git://anongit.freedesktop.org/mesa/mesa'
23 msg 'Connecting to git.freedesktop.org GIT server....'
24 if [ -d ${_gitname} ] ; then
25 cd ${_gitname} && git pull origin
29 msg 'GIT checkout done or server timeout'
30 msg 'Starting make...'
32 # Work around a problem in LDFLAGS
33 export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
37 # Cleanup and prepare the build dir
38 [ -d build ] && rm -rf build
39 cp -r ${_gitname} build
42 msg 'Applying patches'
43 # Revert "intel: sync to vblank by default"
44 # This reverts commit e9bf3e4cc9a7e4bcd4c45bd707541d26ecdf0409.
45 sed -i -e 's/DRI_CONF_VBLANK_ALWAYS_SYNC/DRI_CONF_VBLANK_DEF_INTERVAL_0/g' src/mesa/drivers/dri/intel/intel_screen.c
49 --with-dri-driverdir=/usr/lib/xorg/modules/dri \
54 --enable-gallium-nouveau \
55 --enable-gallium-llvm \
59 msg 'Starting actual compile. Go get some coffee...'
63 msg 'Building man pages'
65 # cd ${srcdir}/gl-manpages-1.0.1
67 # ./configure --prefix=/usr
75 make DESTDIR=${pkgdir} install
77 rm -f ${pkgdir}/usr/lib/libGL.so*
78 rm -rf ${pkgdir}/usr/lib/xorg
79 rm -f ${pkgdir}/usr/include/GL/glut*
81 install -D -m644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE