[arch-commits] CVS update of arch/build/x11-drivers/xf86-video-intel (PKGBUILD)

Alexander Baldeck alexander at archlinux.org
Wed May 9 12:16:06 UTC 2007


    Date: Wednesday, May 9, 2007 @ 08:16:06
  Author: alexander
    Path: /home/cvs-arch/arch/build/x11-drivers/xf86-video-intel

   Added: PKGBUILD (1.1)

addpkg: xf86-video-intel


----------+
 PKGBUILD |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)


Index: arch/build/x11-drivers/xf86-video-intel/PKGBUILD
diff -u /dev/null arch/build/x11-drivers/xf86-video-intel/PKGBUILD:1.1
--- /dev/null	Wed May  9 08:16:06 2007
+++ arch/build/x11-drivers/xf86-video-intel/PKGBUILD	Wed May  9 08:16:06 2007
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD,v 1.1 2007/05/09 12:16:06 alexander Exp $
+# Maintainer: Alexander Baldeck <alexander at archlinux.org>
+pkgname=xf86-video-intel
+pkgver=2.0.0
+pkgrel=1
+pkgdesc="X.org Intel i810/i830/i915 video drivers"
+arch=(i686 x86_64)
+url="http://xorg.freedesktop.org/"
+depends=('libdrm>=2.3.0' 'expat>=2.0')
+makedepends=('pkgconfig' 'xorg-server>=1.2.0' 'imake' 'xf86driproto'
+             'libxvmc')
+options=('nolibtool')
+groups=('xorg-video-drivers')
+replaces=('xf86-video-i810')
+conflicts=('xf86-video-i810')
+source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2
+	http://dl.sourceforge.net/mesa3d/MesaLib-6.5.2.tar.bz2)
+
+build() {
+  cd ${startdir}/src/${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+              --enable-dri
+  make || return 1
+  make DESTDIR=${startdir}/pkg install || return 1
+
+
+  cd ${startdir}/src/Mesa-6.5.2/configs
+
+  CONFIG="linux-dri-x86"
+  [ "$CARCH" = "x86_64" ] && CONFIG="linux-dri-x86-64"
+  echo "EXTRA_LIB_PATH =" >> ${CONFIG}
+  echo "OPT_FLAGS = ${CFLAGS} -fno-strict-aliasing" >> ${CONFIG}
+  echo "SRC_DIRS = glx/x11 mesa" >> ${CONFIG}
+  echo "USING_EGL = 0" >> ${CONFIG}
+  echo "PROGRAM_DIRS =" >> ${CONFIG}
+  echo "MKDEP = makedepend" >> ${CONFIG}
+  echo "DRI_DIRS = i810 i915 i915tex i965" >> ${CONFIG}
+  echo "DRI_DRIVER_SEARCH_DIR = /usr/lib/xorg/modules/dri" >> ${CONFIG}
+  echo "ARCH_FLAGS += -DGLX_USE_TLS" >> ${CONFIG}
+  echo "X11_INCLUDES = `pkg-config --cflags-only-I x11`" >> ${CONFIG}
+
+  ln -s ${CONFIG} current
+  cd ${startdir}/src/Mesa-6.5.2/src/mesa
+  make libmesa.a || return 1
+  cd drivers/dri
+
+  mkdir -p ${startdir}/pkg/usr/lib/xorg/modules/dri
+  make || return 1
+  install -m 755 */*_dri.so ${startdir}/pkg/usr/lib/xorg/modules/dri/
+}




More information about the arch-commits mailing list