diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2013-11-05 23:43:32 -0200 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2013-11-05 23:43:32 -0200 |
commit | 70a5f3b71c796d8acd8bacee06e78df66f2a953e (patch) | |
tree | b9035879bc4f400200e137705fab613ef9e4ca6a | |
parent | fe831c9bfc47f7359e80ba0413a0a536b6360fdf (diff) |
adding libdrm-nvfx for GeForce FX - 7000 series
-rw-r--r-- | pcr/libdrm-nvfx/COPYING | 48 | ||||
-rw-r--r-- | pcr/libdrm-nvfx/PKGBUILD | 54 |
2 files changed, 102 insertions, 0 deletions
diff --git a/pcr/libdrm-nvfx/COPYING b/pcr/libdrm-nvfx/COPYING new file mode 100644 index 000000000..6e74c337c --- /dev/null +++ b/pcr/libdrm-nvfx/COPYING @@ -0,0 +1,48 @@ + Copyright 2005 Adam Jackson. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation on the rights to use, copy, modify, merge, + publish, distribute, sub license, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice (including the + next paragraph) shall be included in all copies or substantial + portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NON-INFRINGEMENT. IN NO EVENT SHALL ADAM JACKSON BE LIABLE FOR ANY + CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +------------------------------------------------------------------------ + + Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. + Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. + All Rights Reserved. + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice (including the + next paragraph) shall be included in all copies or substantial + portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS + SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + DEALINGS IN THE SOFTWARE. diff --git a/pcr/libdrm-nvfx/PKGBUILD b/pcr/libdrm-nvfx/PKGBUILD new file mode 100644 index 000000000..81a39573e --- /dev/null +++ b/pcr/libdrm-nvfx/PKGBUILD @@ -0,0 +1,54 @@ +# $Id: PKGBUILD 198149 2013-10-30 13:05:35Z allan $ +# Maintainer: Jan de Groot <jgc@archlinux.org> +# Maintainer (Parabola): Márcio Silva <coadde@parabola.nu> + +_pkgname=libdrm +pkgname=libdrm-nvfx +pkgver=2.4.33 +pkgrel=3 +pkgdesc="Userspace interface to kernel DRM services, Nouveau NVFX for NV30 and NV40 (GeForce FX - 7000 series card) video card family" +arch=(i686 x86_64 mips64el) +license=('custom') +depends=('glibc' 'libpciaccess') +makedepends=('valgrind' 'clang') +provides=('libdrm') +conflicts=('libdrm') +checkdepends=('cairo') +options=('!libtool') +url="http://dri.freedesktop.org/" +source=(http://dri.freedesktop.org/$_pkgname/$_pkgname-$pkgver.tar.bz2 + COPYING) +sha256sums=('2d7b9d94ada0e3a6ede6243509883df2ded01c2983e24322759a366283898fea' + '9631d4f694952e3e6ae5a05534c2e93e994e47d3413677a3a00e45c8cef6db93') + +build() { + cd $_pkgname-$pkgver + + # pthread is useless in Linux + sed -i "/pthread-stubs/d" configure.ac + autoreconf --force --install + + # gcc 4.8 introduces graphic corruption and X crashes with nouveau cards (nv44) + # http://gcc.gnu.org/ml/gcc-help/2013-07/msg00103.html + # we use clang compiler meanwhile + export CC=clang + + ./configure --prefix=/usr --enable-udev \ + --enable-nouveau-experimental-api \ + --enable-libkms --disable-intel --disable-radeon + + make +} + +check() { + cd $_pkgname-$pkgver + make -k check +} + +package() { + cd $_pkgname-$pkgver + make DESTDIR="$pkgdir" install + + install -m755 -d "$pkgdir/usr/share/licenses/$pkgname" + install -m644 ../COPYING "$pkgdir/usr/share/licenses/$pkgname/" +} |