Commit 2732a6c3 authored by Natanael Copa's avatar Natanael Copa

testing/xf86-video-xgixp: new aport

X.org XGIXP video driver
http://xorg.freedesktop.org/

ref #956
parent eb8f81e8
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xf86-video-xgixp
pkgver=1.8.0
pkgrel=0
pkgdesc="X.org XGIXP video driver"
url="http://xorg.freedesktop.org/"
arch="all"
license="custom"
subpackages="$pkgname-doc"
depends=
makedepends="xorg-server-dev libdrm-dev xf86driproto glproto mesa-dev"
source="http://xorg.freedesktop.org/releases/individual/driver/$pkgname-$pkgver.tar.bz2
api-compat-fix-for-DRAWABLE_BUFFER.patch"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
./configure --prefix=/usr || return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/xorg/modules/drivers/*.la || return 1
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="0ebf98f1beaf911a242c79647cc08fbf xf86-video-xgixp-1.8.0.tar.bz2
5930bf4ebbfb72f13a63e6b618f4eac7 api-compat-fix-for-DRAWABLE_BUFFER.patch"
From 86258a6fd8fc8bb09a52ee446b37abe6bd0843ef Mon Sep 17 00:00:00 2001
From: Adam Jackson <ajax@redhat.com>
Date: Fri, 25 Mar 2011 22:46:55 +0000
Subject: API compat fix for DRAWABLE_BUFFER
Signed-off-by: Adam Jackson <ajax@redhat.com>
---
diff --git a/src/xgi_driver.c b/src/xgi_driver.c
index e54d8c7..189b84a 100644
--- a/src/xgi_driver.c
+++ b/src/xgi_driver.c
@@ -2708,7 +2708,9 @@ xg47_setup_fb_wrap(ReadMemoryProcPtr *read_ptr,
{
switch (pDraw->type) {
case DRAWABLE_WINDOW:
+#ifdef DRAWABLE_BUFFER
case DRAWABLE_BUFFER:
+#endif
*read_ptr = xg47_read_memory_swap_func;
*write_ptr = xg47_write_memory_swap_func;
break;
--
cgit v0.8.3-6-g21f6
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment