aboutsummaryrefslogtreecommitdiffstats
path: root/main/xf86-video-xgixp
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-01-29 19:10:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-01-29 19:10:31 +0000
commit256fc12bdc5e3e015235bbd5e78fd60221905779 (patch)
tree5688ccd8fd6fffd3f49d819fb084eff3bb53cd12 /main/xf86-video-xgixp
parentc898883fe3ec841f99d685a4c88e45ec5c42b647 (diff)
downloadaports-256fc12bdc5e3e015235bbd5e78fd60221905779.tar.bz2
aports-256fc12bdc5e3e015235bbd5e78fd60221905779.tar.xz
main/xf86-video-xgixp: moved from testing
fixes #956
Diffstat (limited to 'main/xf86-video-xgixp')
-rw-r--r--main/xf86-video-xgixp/APKBUILD40
-rw-r--r--main/xf86-video-xgixp/api-compat-fix-for-DRAWABLE_BUFFER.patch23
2 files changed, 63 insertions, 0 deletions
diff --git a/main/xf86-video-xgixp/APKBUILD b/main/xf86-video-xgixp/APKBUILD
new file mode 100644
index 0000000000..3cc6584cd4
--- /dev/null
+++ b/main/xf86-video-xgixp/APKBUILD
@@ -0,0 +1,40 @@
+# 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"
diff --git a/main/xf86-video-xgixp/api-compat-fix-for-DRAWABLE_BUFFER.patch b/main/xf86-video-xgixp/api-compat-fix-for-DRAWABLE_BUFFER.patch
new file mode 100644
index 0000000000..f8cb64673a
--- /dev/null
+++ b/main/xf86-video-xgixp/api-compat-fix-for-DRAWABLE_BUFFER.patch
@@ -0,0 +1,23 @@
+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