wok-6.x view catalyst/receipt @ rev 9482
Add TazWeb aka SliTaz Web Browser :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 04 23:33:21 2011 +0200 (2011-04-04) |
parents | 0e0263019e74 |
children | cbfb348cb173 |
line source
1 # SliTaz package receipt.
3 PACKAGE="catalyst"
4 VERSION="10.12"
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 linux-module-headers"
11 TARBALL="ati-driver-installer-${VERSION/./-}-x86.x86_64.run"
12 WGET="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'`
21 cd $WOK/$PACKAGE
22 [ -f $SOURCES_REPOSITORY/$TARBALL ] && cp $SOURCES_REPOSITORY/$TARBALL .
23 if [ ! -f $TARBALL ]; then
24 wget $WGET
25 cp $TARBALL $SOURCES_REPOSITORY
26 fi
28 chmod +x $TARBALL
29 [ -d $PACKAGE-$VERSION ] || sh $TARBALL --extract $PACKAGE-$VERSION
31 for i in autoconf.h utsrelease.h ; do
32 grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
33 done
34 cd $src
35 patch -Np1 -i ../stuff/makefile_compat.patch
36 patch -Np1 -i ../stuff/$PACKAGE-${KERNEL_VERSION}.patch
37 patch -Np1 -i ../stuff/sema_init.patch
38 cd $src/common/lib/modules/fglrx/build_mod
39 cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 .
40 cp 2.6.x/Makefile .
41 make -C /usr/src/linux SUBDIRS="`pwd`" modules
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
48 EXTRAVERSION=_$KERNEL_VERSION
50 mkdir -p $fs/usr/share/pixmaps \
51 $fs/usr/bin \
52 $fs/usr/lib/xorg/modules \
53 $fs/usr/share/licenses/$PACKAGE \
54 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video \
55 $fs/etc
57 # Compress and install module
58 lzma e $src/common/lib/modules/fglrx/build_mod/fglrx.ko \
59 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
60 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
61 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
63 cp -a $src/ATI_LICENSE.TXT $fs/usr/share/licenses/$PACKAGE
65 cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg
67 cp -a $src/arch/x86/usr/lib/*.so $fs/usr/lib/
68 cp -a $src/arch/x86/usr/sbin $fs/usr
69 cp -a $src/arch/x86/usr/X11R6/bin/* $fs/usr/bin/
71 cp -a $src/arch/x86/usr/X11R6/lib/*.so* $fs/usr/lib
72 cp -a $src/arch/x86/usr/X11R6/lib/modules $fs/usr/lib/xorg
74 cp -a $src/common/etc $fs
75 chmod 755 $fs/etc/ati/authatieventsd.sh
76 cp -a $src/common/usr/sbin $fs/usr
78 cp -a $src/common/usr/share/icons/* $fs/usr/share/pixmaps
79 cp -a $src/common/usr/share/applications $fs/usr/share
80 cp -a $src/common/usr/share/doc $fs/usr/share
81 cp -a $src/common/usr/share/ati $fs/usr/share
82 cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin
85 }
87 pre_install()
88 {
89 echo ""
90 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
91 echo "================================================================================"
92 echo "You are installing a package with proprietary license."
93 echo "You must accept the license."
94 echo "================================================================================"
95 echo ""
97 }
99 post_install()
100 {
101 echo "Processing post-install commands..."
102 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
104 ln -sf $1/usr/lib/xorg/modules/dri $1/usr/lib/dri
105 ln -sf $1/usr/lib/libfglrx_dm.so.1.0 $1/usr/lib/libfglrx_dm.so.1
106 ln -sf $1/usr/lib/libfglrx_pp.so.1.0 $1/usr/lib/libfglrx_pp.so.1
107 ln -sf $1/usr/lib/libfglrx_tvout.so.1.0 $1/usr/lib/libfglrx_tvout.so.1
108 ln -sf $1/usr/lib/libfglrx_gamma.so.1.0 $1/usr/lib/libfglrx_gamma.so.1
109 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so.1
110 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so
112 echo ""
113 echo -e "\033[1m ATI LICENSE INFORMATION:\033[0m $2"
114 echo "================================================================================"
115 echo "For installing this package, you have to accept the $PACKAGE license."
116 echo "The license is stored in /usr/share/licenses/$PACKAGE "
117 echo -n "Would you like to read the license (y/N) : "; read anser
118 if [ "$anser" = "y" ]; then
119 cat /usr/share/licenses/"$PACKAGE"/ATI_LICENSE.txt | more
120 echo ""
121 fi
122 echo "================================================================================"
123 echo -n "Do you accept the license (y/N) : "; read anser
124 if [ "$anser" = "N" ]; then
125 echo "You did not accept the license, Removing the pkg."
126 tazpkg remove "$PACKAGE"
127 fi
130 }
132 post_remove()
133 {
134 echo "Processing post-remove commands..."
135 depmod -a
136 }
138 TAZBB_NO_INSTALL="because this is not hardware neutral"