summaryrefslogtreecommitdiffstats
path: root/abs/core/xf86-video-unichrome
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/xf86-video-unichrome
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core/xf86-video-unichrome')
-rw-r--r--abs/core/xf86-video-unichrome/PKGBUILD26
-rw-r--r--abs/core/xf86-video-unichrome/fix-defines.patch68
2 files changed, 94 insertions, 0 deletions
diff --git a/abs/core/xf86-video-unichrome/PKGBUILD b/abs/core/xf86-video-unichrome/PKGBUILD
new file mode 100644
index 0000000..2f618ca
--- /dev/null
+++ b/abs/core/xf86-video-unichrome/PKGBUILD
@@ -0,0 +1,26 @@
+# $Id: PKGBUILD 3256 2008-06-21 18:31:47Z jgc $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+pkgname=xf86-video-unichrome
+pkgver=0.2.6
+pkgrel=8
+pkgdesc="Unichrome video drivers for X.Org"
+arch=(i686 x86_64)
+url="http://unichrome.sf.net/"
+depends=('unichrome-dri>=7.0.3')
+makedepends=('pkgconfig' 'xorg-server>=1.4.0.90' 'xorg-util-macros' 'xf86driproto' \
+ 'glproto' 'mesa>=7.0.3' 'autoconf' 'automake' 'libtool')
+options=('!libtool')
+conflicts=('xf86-video-via' 'openchrome')
+groups=('xorg-video-drivers')
+source=(http://downloads.sf.net/unichrome/${pkgname}-${pkgver}.tar.gz
+ fix-defines.patch)
+md5sums=('fd81a739ae8145bb9729fa9665ef426c' '84142497ed91048bb2d0d082ce8a0229')
+
+build() {
+ cd ${startdir}/src/${pkgname}-${pkgver}
+ patch -Np1 -i ${startdir}/src/fix-defines.patch || return 1
+ ./autogen.sh --prefix=/usr \
+ --enable-dri
+ make || return 1
+ make DESTDIR=${startdir}/pkg install || return 1
+}
diff --git a/abs/core/xf86-video-unichrome/fix-defines.patch b/abs/core/xf86-video-unichrome/fix-defines.patch
new file mode 100644
index 0000000..5b9f040
--- /dev/null
+++ b/abs/core/xf86-video-unichrome/fix-defines.patch
@@ -0,0 +1,68 @@
+From: Luc Verhaegen <libv@skynet.be>
+Date: Wed, 6 Dec 2006 23:16:01 +0000 (+0100)
+Subject: Fix build issues due to hard uint32_t and Bool #defines.
+X-Git-Url: http://gitweb.freedesktop.org/?p=users/libv/xf86-video-unichrome.git;a=commitdiff;h=13c214345787a3340f230e77b7770b7c2d115c85
+
+Fix build issues due to hard uint32_t and Bool #defines.
+
+Ported from xf86-video_via, which was by Matthias Hopf.
+---
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -70,6 +70,7 @@ sdkdir=$(pkg-config --variable=sdkdir xo
+
+ # Checks for header files.
+ AC_HEADER_STDC
++AC_CHECK_HEADERS([inttypes.h])
+
+ if test "$DRI" != no; then
+ AC_CHECK_FILE([${sdkdir}/dri.h],
+--- a/src/via_dri.h
++++ b/src/via_dri.h
+@@ -35,7 +35,7 @@
+ #define VIA_DRIDDX_VERSION_MINOR 0
+ #define VIA_DRIDDX_VERSION_PATCH 0
+
+-#ifndef XFree86Server
++#if !defined(XFree86Server) && !defined(_XTYPEDEF_BOOL)
+ typedef int Bool;
+ #endif
+
+--- a/src/via_drmclient.h
++++ b/src/via_drmclient.h
+@@ -27,7 +27,13 @@
+ #include "drm.h"
+ #include "xf86drm.h"
+
+-typedef CARD32 uint32_t;
++#ifdef HAVE_INTTYPES_H
++# include <inttypes.h>
++#else
++# ifndef uint32_t
++# define uint32_t CARD32
++# endif
++#endif
+
+ #ifdef X_NEED_DRMLOCK
+ #define drm_hw_lock_t drmLock
+--- a/src/via_video.c
++++ b/src/via_video.c
+@@ -367,7 +367,7 @@ ViaSwovCopyDMA(VIAPtr pVia, struct ViaMe
+ if (error) {
+ xf86DrvMsg(pVia->scrnIndex, X_ERROR, "%s: DMA copy sheduling failed: %d.\n",
+ __FUNCTION__, error);
+- xf86DrvMsg(pVia->scrnIndex, X_ERROR, "%s: Copying %p to %08lX\n",
++ xf86DrvMsg(pVia->scrnIndex, X_ERROR, "%s: Copying %p to %08X\n",
+ __func__, blit.mem_addr, blit.fb_addr);
+ if (new_buf)
+ xfree(new_buf);
+@@ -391,7 +391,7 @@ ViaSwovCopyDMA(VIAPtr pVia, struct ViaMe
+ if (error) {
+ xf86DrvMsg(pVia->scrnIndex, X_ERROR, "%s: DMA copy sync failed: %d - %d\n",
+ __FUNCTION__, error, -EAGAIN);
+- xf86DrvMsg(pVia->scrnIndex, X_ERROR, "%s: Copying %p to %08lX\n",
++ xf86DrvMsg(pVia->scrnIndex, X_ERROR, "%s: Copying %p to %08X\n",
+ __func__, blit.mem_addr, blit.fb_addr);
+ return FALSE;
+ }