wok-next view catalyst/receipt @ rev 10729
Up: slitaz-menus (2.3) - Remove too obstructive SliTaz Network menu
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 29 03:54:39 2011 +0200 (2011-05-29) |
parents | cbfb348cb173 |
children |
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 TARBALL="ati-driver-installer-${VERSION/./-}-x86.x86_64.run"
10 WGET="http://www2.ati.com/drivers/linux/$TARBALL"
11 TAGS="drivers graphic video"
12 RUN_OPTS="--extract $PACKAGE-$VERSION"
14 DEPENDS="xorg-server mesa mesa-dri libdrm linux-drm fontconfig linux-agp \
15 xorg-libSM xorg-libXi xorg-libXcursor"
16 BUILD_DEPENDS="linux xorg-server-dev mesa-dev libdrm-dev linux-module-headers"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 #for i in autoconf.h utsrelease.h ; do
23 #grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
24 #done
25 echo "Applying patches..."
26 patch -Np1 -i $stuff/makefile_compat.patch
27 patch -Np1 -i $stuff/$PACKAGE-${kvers}.patch
28 patch -Np1 -i $stuff/sema_init.patch
29 cd $src/common/lib/modules/fglrx/build_mod
30 cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 .
31 cp 2.6.x/Makefile .
32 echo "Compiling the Kernel module..."
33 make -C /usr/src/linux SUBDIRS=$(pwd) modules
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 EXTRAVERSION=_${kvers}
41 mkdir -p \
42 $fs/usr/share/pixmaps \
43 $fs/usr/bin \
44 $fs/usr/lib/xorg/modules \
45 $fs/usr/share/licenses/$PACKAGE \
46 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video \
47 $fs/etc
49 # Compress and install module
50 lzma e $src/common/lib/modules/fglrx/build_mod/fglrx.ko \
51 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz
52 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz
53 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz
55 cp -a $src/ATI_LICENSE.TXT $fs/usr/share/licenses/$PACKAGE
57 cp -a $src/arch/x86/usr/lib/*.so $fs/usr/lib/
58 cp -a $src/arch/x86/usr/sbin $fs/usr
59 cp -a $src/arch/x86/usr/X11R6/bin/* $fs/usr/bin/
61 cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg
62 cp -a $src/arch/x86/usr/X11R6/lib/*.so* $fs/usr/lib
63 cp -a $src/arch/x86/usr/X11R6/lib/modules $fs/usr/lib/xorg
65 cp -a $src/common/etc $fs
66 chmod 755 $fs/etc/ati/authatieventsd.sh
67 cp -a $src/common/usr/sbin $fs/usr
69 cp -a $src/common/usr/share/icons/* $fs/usr/share/pixmaps
70 cp -a $src/common/usr/share/applications $fs/usr/share
71 cp -a $src/common/usr/share/doc $fs/usr/share
72 cp -a $src/common/usr/share/ati $fs/usr/share
73 cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin
74 }
76 pre_install()
77 {
78 echo ""
79 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
80 echo "================================================================================"
81 echo "You are installing a package with proprietary license."
82 echo "You must accept the license."
83 echo "================================================================================"
84 echo ""
85 }
87 post_install()
88 {
89 echo "Processing post-install commands..."
90 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
92 ln -sf $1/usr/lib/xorg/modules/dri $1/usr/lib/dri
93 ln -sf $1/usr/lib/libfglrx_dm.so.1.0 $1/usr/lib/libfglrx_dm.so.1
94 ln -sf $1/usr/lib/libfglrx_pp.so.1.0 $1/usr/lib/libfglrx_pp.so.1
95 ln -sf $1/usr/lib/libfglrx_tvout.so.1.0 $1/usr/lib/libfglrx_tvout.so.1
96 ln -sf $1/usr/lib/libfglrx_gamma.so.1.0 $1/usr/lib/libfglrx_gamma.so.1
97 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so.1
98 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so
100 echo ""
101 echo -e "\033[1m ATI LICENSE INFORMATION:\033[0m $2"
102 echo "================================================================================"
103 echo "For installing this package, you have to accept the $PACKAGE license."
104 echo "The license is stored in /usr/share/licenses/$PACKAGE "
105 echo -n "Would you like to read the license (y/N) : "; read anser
106 if [ "$anser" = "y" ]; then
107 cat /usr/share/licenses/"$PACKAGE"/ATI_LICENSE.txt | more
108 echo ""
109 fi
110 echo "================================================================================"
111 echo -n "Do you accept the license (y/N) : "; read anser
112 if [ "$anser" = "N" ]; then
113 echo "You did not accept the license, Removing the pkg."
114 tazpkg remove "$PACKAGE"
115 fi
116 }
118 post_remove()
119 {
120 echo "Processing post-remove commands..."
121 depmod -a
122 }