2007-02-23 12:23:37 +01:00
|
|
|
# Description: ATI Proprietary Linux Display Driver
|
|
|
|
# URL: http://www.ati.com/support/drivers/linux/radeon-linux.html
|
|
|
|
# Maintainer: Jose V Beneyto, joberui at ei dot upv dot es
|
|
|
|
# Packager: Jose V Beneyto, joberui at ei dot upv dot es
|
|
|
|
# Depends on: mesa3d, gl-select
|
|
|
|
|
|
|
|
name=ati
|
2007-04-04 02:46:26 +02:00
|
|
|
version=8.35.5
|
2007-03-23 00:34:00 +01:00
|
|
|
release=1
|
2007-02-23 12:23:37 +01:00
|
|
|
source=(http://www2.ati.com/drivers/linux/$name-driver-installer-$version-x86.x86_64.run \
|
2007-04-04 02:46:26 +02:00
|
|
|
ati-2.6.20.patch \
|
|
|
|
ati-$version-2.6.20.patch \
|
2007-03-23 00:34:00 +01:00
|
|
|
atieventsd.sh)
|
2007-02-23 12:23:37 +01:00
|
|
|
|
|
|
|
build() {
|
2007-03-23 00:34:00 +01:00
|
|
|
march=x86
|
2007-04-04 02:46:26 +02:00
|
|
|
# xorg-server 1.1 and its prereleases correspond to xorg 7.1
|
|
|
|
if [ `pkg-config --modversion xorg-server | cut -d'.' -f2` -gt 0 ]; then
|
|
|
|
xversion=x710
|
|
|
|
else
|
|
|
|
xversion=x690
|
|
|
|
fi
|
|
|
|
|
|
|
|
chmod +x $name-driver-installer-$version-x86.x86_64.run
|
2007-03-23 00:34:00 +01:00
|
|
|
./$name-driver-installer-$version-x86.x86_64.run --extract $SRC/tmp
|
|
|
|
|
|
|
|
# patch
|
2007-04-04 02:46:26 +02:00
|
|
|
if [ "`uname -r | cut -d'.' -f1,2,3`" == "2.6.20" ]; then
|
|
|
|
cd $SRC/tmp
|
|
|
|
patch -Np0 -i $SRC/ati-2.6.20.patch
|
|
|
|
patch `find $SRC -type f -name 'firegl_public.c'` \
|
|
|
|
$SRC/ati-$version-2.6.20.patch
|
|
|
|
fi
|
2007-03-23 00:34:00 +01:00
|
|
|
|
|
|
|
# make
|
|
|
|
cd $SRC/tmp/common/lib/modules/fglrx/build_mod
|
2007-04-04 02:46:26 +02:00
|
|
|
ln -s $SRC/tmp/arch/$march/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 .
|
2007-03-23 00:34:00 +01:00
|
|
|
chmod +x make.sh
|
|
|
|
./make.sh
|
|
|
|
|
|
|
|
# install kernel module
|
2007-02-23 12:23:37 +01:00
|
|
|
install -d $PKG/lib/modules/`uname -r`/kernel/drivers/char/drm
|
2007-03-23 00:34:00 +01:00
|
|
|
install -m 644 $SRC/tmp/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko \
|
|
|
|
$PKG/lib/modules/`uname -r`/kernel/drivers/char/drm
|
|
|
|
|
|
|
|
# install xorg
|
|
|
|
install -d $PKG/usr/{bin,sbin}
|
|
|
|
install -m 0755 $SRC/tmp/arch/$march/usr/X11R6/bin/* $PKG/usr/bin
|
|
|
|
install -m 0755 $SRC/tmp/arch/$march/usr/sbin/* $PKG/usr/sbin
|
|
|
|
install -d $PKG/usr/lib/{dri,xorg/modules}
|
|
|
|
install -m 0755 $SRC/tmp/arch/$march/usr/X11R6/lib/modules/dri/* \
|
|
|
|
$PKG/usr/lib/dri
|
|
|
|
rm -rf $SRC/tmp/arch/$march/usr/X11R6/lib/modules
|
|
|
|
install -m 0775 $SRC/tmp/arch/$march/usr/X11R6/lib/* $PKG/usr/lib
|
|
|
|
install -d $PKG/etc
|
|
|
|
mv $SRC/tmp/common/etc/ati $PKG/etc/
|
|
|
|
rm -f $PKG/etc/ati/logo*
|
|
|
|
mv $SRC/tmp/common/usr/X11R6/include $PKG/usr/
|
|
|
|
cp -a $SRC/tmp/common/usr/include/* $PKG/usr/include/
|
|
|
|
install -m 0755 $SRC/tmp/common/usr/sbin/atigetsysteminfo.sh $PKG/usr/sbin
|
|
|
|
mv $SRC/tmp/common/usr/share/man $PKG/usr/
|
|
|
|
mv $SRC/tmp/$xversion/usr/X11R6/lib/modules/* $PKG/usr/lib/xorg/modules/
|
|
|
|
# tune installation
|
|
|
|
ln -sf /usr/lib/libfglrx_pp.so.1.0 $PKG/usr/lib/libfglrx_pp.so.1
|
|
|
|
ln -sf /usr/lib/libfglrx_gamma.so.1.0 $PKG/usr/lib/libfglrx_gamma.so.1
|
|
|
|
install -D -m 0755 $SRC/atieventsd.sh $PKG/etc/rc.d/atieventsd
|
2007-04-04 02:46:26 +02:00
|
|
|
#install -D -m 0644 $SRC/tmp/common/usr/share/icons/ati.xpm \
|
|
|
|
# $PKG/usr/share/icons/ati.xpm
|
2007-03-23 00:34:00 +01:00
|
|
|
# required for use xorg-gl-select
|
|
|
|
mv -v $PKG/usr/lib/libGL.so.1.2 $PKG/usr/lib/libGL_so_1_2_ati
|
2007-02-23 12:23:37 +01:00
|
|
|
}
|