wok-4.x view catalyst/receipt @ rev 5593
Add: gimp-dev (needed by ufraw)
author | Antoine Bodin <gokhlayeh@mailoo.org> |
---|---|
date | Tue May 18 13:40:52 2010 +0000 (2010-05-18) |
parents | c66ad3e8adfb |
children | cba7b9cb50f9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="catalyst"
4 VERSION="9-11"
5 CATEGORY="network"
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 TAGS="drivers graphic video"
14 # Rules to configure and make the package.
16 compile_rules() {
18 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
19 WGET_URL="http://www2.ati.com/drivers/linux/$TARBALL"
21 [ -d $WOK/linux/taz ] || tazwok cook linux
23 cd $WOK/$PACKAGE
24 [ -f $SOURCES_REPOSITORY/$TARBALL ] && cp $SOURCES_REPOSITORY/$TARBALL .
25 if [ ! -f $TARBALL ]; then
26 wget $WGET_URL
27 cp $TARBALL $SOURCES_REPOSITORY
28 fi
30 chmod +x $TARBALL
31 [ -d $PACKAGE-$VERSION ] || sh $TARBALL --extract $PACKAGE-$VERSION
33 for i in autoconf.h utsrelease.h ; do
34 grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
35 done
36 cd $src/common/lib/modules/fglrx/build_mod
37 cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 .
38 cp 2.6.x/Makefile .
39 make -C $WOK/linux/linux-$KERNEL_VERSION SUBDIRS="`pwd`" modules
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
46 EXTRAVERSION=_$KERNEL_VERSION
48 mkdir -p $fs/usr/share/pixmaps \
49 $fs/usr/bin \
50 $fs/usr/lib/xorg/modules \
51 $fs/usr/share/licenses/$PACKAGE \
52 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video \
53 $fs/etc
55 # Compress and install module
56 lzma e $src/common/lib/modules/fglrx/build_mod/fglrx.ko \
57 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
58 chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
59 chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz
61 cp -a $src/ATI_LICENSE.TXT $fs/usr/share/licenses/$PACKAGE
63 cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg
65 cp -a $src/arch/x86/usr/lib/*.so $fs/usr/lib/
66 cp -a $src/arch/x86/usr/sbin $fs/usr
67 cp -a $src/arch/x86/usr/X11R6/bin/* $fs/usr/bin/
69 cp -a $src/arch/x86/usr/X11R6/lib/*.so* $fs/usr/lib
70 cp -a $src/arch/x86/usr/X11R6/lib/modules $fs/usr/lib/xorg
72 cp -a $src/common/etc $fs
73 chmod 755 $fs/etc/ati/authatieventsd.sh
74 cp -a $src/common/usr/sbin $fs/usr
76 cp -a $src/common/usr/share/icons/* $fs/usr/share/pixmaps
77 cp -a $src/common/usr/share/applications $fs/usr/share
78 cp -a $src/common/usr/share/doc $fs/usr/share
79 cp -a $src/common/usr/share/ati $fs/usr/share
80 cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin
83 }
85 pre_install()
86 {
87 echo ""
88 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
89 echo "================================================================================"
90 echo "You are installing a package with proprietary license."
91 echo "You must accept the license."
92 echo "================================================================================"
93 echo ""
95 }
97 post_install()
98 {
99 echo "Processing post-install commands..."
100 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
102 ln -sf $1/usr/lib/xorg/modules/dri $1/usr/lib/dri
103 ln -sf $1/usr/lib/libfglrx_dm.so.1.0 $1/usr/lib/libfglrx_dm.so.1
104 ln -sf $1/usr/lib/libfglrx_pp.so.1.0 $1/usr/lib/libfglrx_pp.so.1
105 ln -sf $1/usr/lib/libfglrx_tvout.so.1.0 $1/usr/lib/libfglrx_tvout.so.1
106 ln -sf $1/usr/lib/libfglrx_gamma.so.1.0 $1/usr/lib/libfglrx_gamma.so.1
107 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so.1
108 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so
110 echo ""
111 echo -e "\033[1m ATI LICENSE INFORMATION:\033[0m $2"
112 echo "================================================================================"
113 echo "For installing this package, you have to accept the $PACKAGE license."
114 echo "The license is stored in /usr/share/licenses/$PACKAGE "
115 echo -n "Would you like to read the license (y/N) : "; read anser
116 if [ "$anser" = "y" ]; then
117 cat /usr/share/licenses/"$PACKAGE"/ATI_LICENSE.txt | more
118 echo ""
119 fi
120 echo "================================================================================"
121 echo -n "Do you accept the license (y/N) : "; read anser
122 if [ "$anser" = "N" ]; then
123 echo "You did not accept the license, Removing the pkg."
124 tazpkg remove "$PACKAGE"
125 fi
128 }
130 post_remove()
131 {
132 echo "Processing post-remove commands..."
133 depmod -a
134 }
136 TAZBB_NO_INSTALL="because this is not hardware neutral"