summaryrefslogtreecommitdiffstats
path: root/acompiler/ati-109/Pkgfile
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-09-26 21:11:35 +0200
committertnut <thierryn1 at hispeed dot ch>2010-09-26 21:11:35 +0200
commit1d7982963110d9b6756399b983fc8cffc5cf32d8 (patch)
treef5435a3b7290cfe2dead565839d53737a30e1429 /acompiler/ati-109/Pkgfile
parentef954df131ea532e9e154d95bf6d7c1876f0dcde (diff)
downloadnutyx-extra-1d7982963110d9b6756399b983fc8cffc5cf32d8.tar.gz
nutyx-extra-1d7982963110d9b6756399b983fc8cffc5cf32d8.tar.bz2
nutyx-extra-1d7982963110d9b6756399b983fc8cffc5cf32d8.tar.xz
nutyx-extra-1d7982963110d9b6756399b983fc8cffc5cf32d8.zip
ajout de ati-109#10.9-1
Diffstat (limited to 'acompiler/ati-109/Pkgfile')
-rwxr-xr-xacompiler/ati-109/Pkgfile57
1 files changed, 57 insertions, 0 deletions
diff --git a/acompiler/ati-109/Pkgfile b/acompiler/ati-109/Pkgfile
new file mode 100755
index 000000000..fe0984006
--- /dev/null
+++ b/acompiler/ati-109/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-109
+version=10.9
+release=1
+[ "`uname -m`" == "i686" ] && _ARCH=x86
+[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
+source=(http://nutyx.meticul.eu/files/ati-driver-installer-10-9-x86.x86_64.run)
+
+build() {
+ sh ati-driver-installer-10-9-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
+}