Group: X11/Applications
Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-video-intel-%{version}.tar.bz2
# Source0-md5: 8b646d257ace8197d6ab4e5ddeb8efb2
+Patch0: xserver-1.15.patch
URL: http://xorg.freedesktop.org/
BuildRequires: Mesa-libGL-devel
#BuildRequires: autoconf >= 2.63
%prep
%setup -q -n xf86-video-intel-%{version}
+%patch0 -p1
%build
%configure \
--- /dev/null
+diff -up xf86-video-intel-2.21.15/src/compat-api.h.jx xf86-video-intel-2.21.15/src/compat-api.h
+--- xf86-video-intel-2.21.15/src/compat-api.h.jx 2013-05-21 06:15:11.000000000 -0400
++++ xf86-video-intel-2.21.15/src/compat-api.h 2013-10-24 15:30:52.291337300 -0400
+@@ -158,4 +158,8 @@ static inline void FreePixmap(PixmapPtr
+ if ((d)->pScreen->SourceValidate) (d)->pScreen->SourceValidate(d, x, y, w, h)
+ #endif
+
++#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,3,0)
++#define DamageUnregister(a, b) DamageUnregister(b)
++#endif
++
+ #endif