summaryrefslogtreecommitdiffstats
path: root/acompiler/ati-107/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-09-26 20:57:45 +0200
committertnut <thierryn1 at hispeed dot ch>2010-09-26 20:57:45 +0200
commitef954df131ea532e9e154d95bf6d7c1876f0dcde (patch)
tree9344d52c39707020d0a24ac5b7d25eba34a89ccb /acompiler/ati-107/Pkgfile
parentb39b14043c8179a7dc9dd7ce610d0dbb4ea3f582 (diff)
downloadnutyx-pakxe-ef954df131ea532e9e154d95bf6d7c1876f0dcde.tar.gz
nutyx-pakxe-ef954df131ea532e9e154d95bf6d7c1876f0dcde.tar.bz2
nutyx-pakxe-ef954df131ea532e9e154d95bf6d7c1876f0dcde.tar.xz
nutyx-pakxe-ef954df131ea532e9e154d95bf6d7c1876f0dcde.zip
ajout de ati-107#10.7-1
Diffstat (limited to 'acompiler/ati-107/Pkgfile')
-rwxr-xr-xacompiler/ati-107/Pkgfile57
1 files changed, 57 insertions, 0 deletions
diff --git a/acompiler/ati-107/Pkgfile b/acompiler/ati-107/Pkgfile
new file mode 100755
index 000000000..d59347333
--- /dev/null
+++ b/acompiler/ati-107/Pkgfile
@@ -0,0 +1,57 @@
+# Description: Pilotes pour les cartes graphiques ATI
+# URL: http://www.nvidia.com/object/unix.html
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: xorg-server
+
+name=ati-107
+version=10.7
+release=1
+[ "`uname -m`" == "i686" ] && _ARCH=x86
+[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
+source=(http://nutyx.meticul.eu/files/ati-driver-installer-10-7-x86.x86_64.run)
+
+build() {
+ sh ati-driver-installer-10-7-x86.x86_64.run --extract .
+ cd common/lib/modules/fglrx/build_mod
+ # Compilation du module
+ cp 2.6.x/Makefile .
+ cp \
+../../../../../arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 .
+ make
+ # Installation des librairies et utilitaires spécifiques à l'architecture
+ mkdir -p $PKG/{etc/X11/xorg.conf.d,lib/modules/`uname -r`/kernel/video/fglrx,usr/{share/ati/lib,bin,sbin,include,lib/{,xorg}}}
+ install -m644 fglrx.ko \
+ $PKG/lib/modules/`uname -r`/kernel/video/fglrx/fglrx.ko
+ cd $SRC/arch/${_ARCH}
+ cp -a usr/lib/* $PKG/usr/lib/
+ cp -a usr/sbin/* $PKG/usr/sbin/
+ cp -a usr/share/ati/lib/* $PKG/usr/share/ati/lib/
+ cp -a usr/X11R6/bin/* $PKG/usr/bin/
+ cp -a usr/X11R6/lib/* $PKG/usr/lib/
+ mv $PKG/usr/lib/modules $PKG//usr/lib/xorg/
+ # Installation des librairies et utilitaires communes
+ cd $SRC/common
+ cp -a usr/* $PKG/usr/
+ mv $PKG/usr/X11R6/include/* $PKG/usr/include/
+ mv $PKG/usr/X11R6/bin/* $PKG/usr/bin/
+ rm -r $PKG/usr/X11R6
+ chmod 755 $PKG/usr/bin/*
+ # Installation du service
+ mkdir -p $PKG/etc/rc.d/rc{0,1,2,3,4,5,6}.d
+ mv $PKG/usr/share/doc/fglrx/examples/etc/init.d \
+ $PKG/etc/rc.d/
+ for i in 3 4 5
+ do ln -s ../init.d/atieventsd.sh $PKG/etc/rc.d/rc$i.d/S95atieventsd
+ done
+ for i in 0 1 2 6
+ do ln -s ../init.d/atieventsd.sh $PKG/etc/rc.d/rc$i.d/K10atieventsd
+ done
+
+cat > $PKG/etc/X11/xorg.conf.d/30-flgrx.conf << "EOF"
+Section "Device"
+ Identifier "ATI"
+ Driver "flgrx"
+EndSection
+EOF
+}