wok-stable view catalyst/receipt @ rev 5754
get-opera: fix RELEASE
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jul 03 12:50:47 2010 +0200 (2010-07-03) |
parents | f027a129902c |
children | 13d20e960b3d |
line source
1 # SliTaz package receipt.
3 PACKAGE="catalyst"
4 VERSION="10.4"
5 CATEGORY="x-window"
6 MAINTAINER="jozee@slitaz.org"
7 SHORT_DESC="AMD/ATI beta drivers (non-free) for Radeon brand cards "
8 WEB_SITE="http://www.ati.amd.com"
9 DEPENDS="xorg-server mesa mesa-dri libdrm linux-drm fontconfig linux-agp xorg-libSM xorg-libXi xorg-libXcursor"
10 BUILD_DEPENDS="linux xorg-server"
11 TARBALL="ati-driver-installer-${VERSION/./-}-x86.x86_64.run"
12 WGET_URL="http://www2.ati.com/drivers/linux/$TARBALL"
13 TAGS="drivers graphic video"
15 # Rules to configure and make the package.
17 compile_rules() {
19 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
22 [ -d $WOK/linux/taz ] || tazwok cook linux
24 cd $WOK/$PACKAGE
25 [ -f $SOURCES_REPOSITORY/$TARBALL ] && cp $SOURCES_REPOSITORY/$TARBALL .
26 if [ ! -f $TARBALL ]; then
27 wget $WGET_URL
28 cp $TARBALL $SOURCES_REPOSITORY
29 fi
31 chmod +x $TARBALL
32 [ -d $PACKAGE-$VERSION ] || sh $TARBALL --extract $PACKAGE-$VERSION
34 for i in autoconf.h utsrelease.h ; do
35 grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
36 done
37 cd $src
38 patch -Np1 -i ../stuff/$PACKAGE-${KERNEL_VERSION}.patch
39 cd $src/common/lib/modules/fglrx/build_mod
40 cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 .
41 cp 2.6.x/Makefile .
42 make -C $WOK/linux/linux-$KERNEL_VERSION SUBDIRS="`pwd`" modules
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
49 EXTRAVERSION=_$KERNEL_VERSION
51 mkdir -p $fs/usr/share/pixmaps \
52 $fs/usr/bin \
53 $fs/usr/lib/xorg/modules \
54 $fs/usr/share/licenses/$PACKAGE \
55 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video \
56 $fs/etc
58 # Compress and install module
59 lzma e $src/common/lib/modules/fglrx/build_mod/fglrx.ko \
60 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
61 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
62 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
64 cp -a $src/ATI_LICENSE.TXT $fs/usr/share/licenses/$PACKAGE
66 cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg
68 cp -a $src/arch/x86/usr/lib/*.so $fs/usr/lib/
69 cp -a $src/arch/x86/usr/sbin $fs/usr
70 cp -a $src/arch/x86/usr/X11R6/bin/* $fs/usr/bin/
72 cp -a $src/arch/x86/usr/X11R6/lib/*.so* $fs/usr/lib
73 cp -a $src/arch/x86/usr/X11R6/lib/modules $fs/usr/lib/xorg
75 cp -a $src/common/etc $fs
76 chmod 755 $fs/etc/ati/authatieventsd.sh
77 cp -a $src/common/usr/sbin $fs/usr
79 cp -a $src/common/usr/share/icons/* $fs/usr/share/pixmaps
80 cp -a $src/common/usr/share/applications $fs/usr/share
81 cp -a $src/common/usr/share/doc $fs/usr/share
82 cp -a $src/common/usr/share/ati $fs/usr/share
83 cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin
86 }
88 pre_install()
89 {
90 echo ""
91 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
92 echo "================================================================================"
93 echo "You are installing a package with proprietary license."
94 echo "You must accept the license."
95 echo "================================================================================"
96 echo ""
98 }
100 post_install()
101 {
102 echo "Processing post-install commands..."
103 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
105 ln -sf $1/usr/lib/xorg/modules/dri $1/usr/lib/dri
106 ln -sf $1/usr/lib/libfglrx_dm.so.1.0 $1/usr/lib/libfglrx_dm.so.1
107 ln -sf $1/usr/lib/libfglrx_pp.so.1.0 $1/usr/lib/libfglrx_pp.so.1
108 ln -sf $1/usr/lib/libfglrx_tvout.so.1.0 $1/usr/lib/libfglrx_tvout.so.1
109 ln -sf $1/usr/lib/libfglrx_gamma.so.1.0 $1/usr/lib/libfglrx_gamma.so.1
110 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so.1
111 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so
113 echo ""
114 echo -e "\033[1m ATI LICENSE INFORMATION:\033[0m $2"
115 echo "================================================================================"
116 echo "For installing this package, you have to accept the $PACKAGE license."
117 echo "The license is stored in /usr/share/licenses/$PACKAGE "
118 echo -n "Would you like to read the license (y/N) : "; read anser
119 if [ "$anser" = "y" ]; then
120 cat /usr/share/licenses/"$PACKAGE"/ATI_LICENSE.txt | more
121 echo ""
122 fi
123 echo "================================================================================"
124 echo -n "Do you accept the license (y/N) : "; read anser
125 if [ "$anser" = "N" ]; then
126 echo "You did not accept the license, Removing the pkg."
127 tazpkg remove "$PACKAGE"
128 fi
131 }
133 post_remove()
134 {
135 echo "Processing post-remove commands..."
136 depmod -a
137 }
139 TAZBB_NO_INSTALL="because this is not hardware neutral"