[arch-commits] Commit in (6 files)

andyrtr at archlinux.org andyrtr at archlinux.org
Tue Mar 3 19:17:45 UTC 2009


    Date: Tuesday, March 3, 2009 @ 14:17:45
  Author: andyrtr
Revision: 28948

add new nouveau-drm pkg

Added:
  nouveau-drm/
  nouveau-drm/repos/
  nouveau-drm/trunk/
  nouveau-drm/trunk/PKGBUILD
  nouveau-drm/trunk/dont_check_for_pthread.patch
  nouveau-drm/trunk/nouveau-drm.install

------------------------------+
 PKGBUILD                     |   42 +++++++++++++++++++++++++++++++++++++++++
 dont_check_for_pthread.patch |   13 ++++++++++++
 nouveau-drm.install          |   15 ++++++++++++++
 3 files changed, 70 insertions(+)

Added: nouveau-drm/trunk/PKGBUILD
===================================================================
--- nouveau-drm/trunk/PKGBUILD	                        (rev 0)
+++ nouveau-drm/trunk/PKGBUILD	2009-03-03 19:17:45 UTC (rev 28948)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: buddabrod <buddabrod at gmail.com>
+
+pkgname=nouveau-drm
+pkgver=20090303
+_gitdate=20090303
+pkgrel=1
+pkgdesc="nvidia opensource X driver"
+arch=('i686' 'x86_64')
+url="http://nouveau.freedesktop.org/"
+makedepends=('git')
+depends=("kernel26>=2.6.28" "kernel26<2.6.29")
+install=${pkgname}.install
+license=('GPL')
+md5sums=()
+source=(ftp://archlinux.org/other/$pkgname/mesa-drm-${_gitdate}.tar.bz2
+	dont_check_for_pthread.patch)
+md5sums=('68cc84853a582e49246d2142c019c8ae'
+         '237f3cdb1bfc5c62bfa7b038b7a20b2a')
+
+build() {
+  # get git code
+  cd ${srcdir}
+#  git clone -v git://anongit.freedesktop.org/git/mesa/drm/
+#  cd drm
+#  git archive --prefix=mesa-drm-${_gitdate}/ --format=tar HEAD | bzip2 > ../../mesa-drm-${_gitdate}.tar.bz2
+#  return 1
+
+  # build the drm kernel module
+  # make sure the system kernel doesn't have "drm" set to "yes", 
+  # default Arch kernel26 has it as module drm.ko, make sure it's not loaded
+  cd ${srcdir}/mesa-drm-${_gitdate}
+  patch -Np0 -i ${srcdir}/dont_check_for_pthread.patch || return 1
+  ./autogen.sh --prefix=/usr # --enable-udev --disable-option-checking
+  cd linux-core
+  make DRM_MODULES="nouveau" || return 1
+  install -D -m 0644 drm.ko ${pkgdir}/lib/modules/`uname -r`/updates/drm.ko || return 1
+  install -D -m 0644 nouveau.ko ${pkgdir}/lib/modules/`uname -r`/kernel/drivers/video/nouveau.ko || return 1
+  install -D -m 0644 ../shared-core/nouveau_drm.h ${pkgdir}/usr/include/nouveau_drm.h || return 1
+}
+


Property changes on: nouveau-drm/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id

Added: nouveau-drm/trunk/dont_check_for_pthread.patch
===================================================================
--- nouveau-drm/trunk/dont_check_for_pthread.patch	                        (rev 0)
+++ nouveau-drm/trunk/dont_check_for_pthread.patch	2009-03-03 19:17:45 UTC (rev 28948)
@@ -0,0 +1,13 @@
+--- configure.ac	2008-10-25 18:15:50.000000000 +0200
++++ configure.ac.new	2008-10-26 21:33:53.000000000 +0100
+@@ -32,10 +32,6 @@
+ AC_HEADER_STDC
+ AC_SYS_LARGEFILE
+ 
+-PKG_CHECK_MODULES(PTHREADSTUBS, pthread-stubs)
+-AC_SUBST(PTHREADSTUBS_CFLAGS)
+-AC_SUBST(PTHREADSTUBS_LIBS)
+-
+ pkgconfigdir=${libdir}/pkgconfig
+ AC_SUBST(pkgconfigdir)
+ AC_ARG_ENABLE(udev,	AS_HELP_STRING([--enable-udev],

Added: nouveau-drm/trunk/nouveau-drm.install
===================================================================
--- nouveau-drm/trunk/nouveau-drm.install	                        (rev 0)
+++ nouveau-drm/trunk/nouveau-drm.install	2009-03-03 19:17:45 UTC (rev 28948)
@@ -0,0 +1,15 @@
+post_install() {
+  KERNEL_VERSION='2.6.28-ARCH'
+  depmod -v $KERNEL_VERSION  > /dev/null 2>&1		 
+}
+
+post_upgrade() {
+  post_install $1
+ # rmmod nouveau || echo 'In order to use the new nouneau module, exit Xserver and unload it manually.'
+}
+
+post_remove() {
+  KERNEL_VERSION='2.6.28-ARCH'
+  depmod -v $KERNEL_VERSION	 > /dev/null 2>&1	 
+}
+




More information about the arch-commits mailing list