name=xorg-xf86-video-imx
version=20111109
release=1
-source=(http://crux-arm.nu/files/distfiles/efikamx/$name-$version.tar.bz2)
+source=(http://crux-arm.nu/files/distfiles/efikamx/$name-$version.tar.bz2 \
+ xorg-xf86-video-imx_misc.patch)
build() {
export CFLAGS="$CFLAGS -I/usr/src/linux-`uname -r`/include"
cd $name-$version
+ patch -p0 -i $SRC/xorg-xf86-video-imx_misc.patch
chmod u+x autogen.sh
./autogen.sh --prefix=/usr
make
--- /dev/null
+--- src.orig/imx_ext.c 2012-10-01 02:18:44.005430995 +0200
++++ src/imx_ext.c 2012-10-01 02:19:33.575431373 +0200
+@@ -90,10 +90,10 @@
+ /* Check if any reply values need byte swapping */
+ if (client->swapped)
+ {
+- swaps(&rep.sequenceNumber, n);
+- swapl(&rep.length, n);
+- swapl(&rep.pixmapPhysAddr, n);
+- swapl(&rep.pixmapPitch, n);
++ swaps(&rep.sequenceNumber);
++ swapl(&rep.length);
++ swapl(&rep.pixmapPhysAddr);
++ swapl(&rep.pixmapPitch);
+ }
+
+ /* Reply to client */
+@@ -121,10 +121,10 @@
+
+ REQUEST(xIMX_EXT_GetPixmapPhysAddrReq);
+
+- swaps(&stuff->length, n);
++ swaps(&stuff->length);
+ REQUEST_SIZE_MATCH(xIMX_EXT_GetPixmapPhysAddrReq);
+
+- swapl(&stuff->pixmap, n);
++ swapl(&stuff->pixmap);
+ return Proc_IMX_EXT_GetPixmapPhysAddr(client);
+ }
+