wok-undigest view catalyst/receipt @ rev 1172

Add cinelerra-cv & a52dec (thanks schmatzler)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 30 09:01:47 2015 +0200 (2015-09-30)
parents 57f4e7e045e8
children
line source
1 # SliTaz package receipt.
3 PACKAGE="catalyst"
4 VERSION="10.12"
5 CATEGORY="x-window"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="other"
8 SHORT_DESC="AMD/ATI beta drivers (non-free) for Radeon brand cards "
9 WEB_SITE="http://www.ati.amd.com"
10 TARBALL="ati-driver-installer-${VERSION/./-}-x86.x86_64.run"
11 WGET="http://www2.ati.com/drivers/linux/$TARBALL"
12 TAGS="drivers graphic video"
13 RUN_OPTS="--extract $PACKAGE-$VERSION"
15 DEPENDS="xorg-server mesa mesa-dri libdrm linux-drm fontconfig linux-agp \
16 xorg-libSM xorg-libXi xorg-libXcursor"
17 BUILD_DEPENDS="linux xz xorg-server-dev mesa-dev libdrm-dev linux-module-headers"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 #for i in autoconf.h utsrelease.h ; do
24 #grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|"
25 #done
26 echo "Applying patches..."
27 patch -Np1 -i $stuff/makefile_compat.patch
28 patch -Np1 -i $stuff/$PACKAGE-${kvers}.patch
29 patch -Np1 -i $stuff/sema_init.patch
30 cd $src/common/lib/modules/fglrx/build_mod
31 cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 .
32 cp 2.6.x/Makefile .
33 echo "Compiling the Kernel module..."
34 make -C /usr/src/linux SUBDIRS=$(pwd) modules
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 EXTRAVERSION=_${kvers}
42 mkdir -p \
43 $fs/usr/share/pixmaps \
44 $fs/usr/bin \
45 $fs/usr/lib/xorg/modules \
46 $fs/usr/share/licenses/$PACKAGE \
47 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video \
48 $fs/etc
50 # Compress and install module
51 cp $src/common/lib/modules/fglrx/build_mod/fglrx.ko \
52 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/
53 xz $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko
54 chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.xz
55 chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.xz
57 cp -a $src/ATI_LICENSE.TXT $fs/usr/share/licenses/$PACKAGE
59 cp -a $src/arch/x86/usr/lib/*.so $fs/usr/lib/
60 cp -a $src/arch/x86/usr/sbin $fs/usr
61 cp -a $src/arch/x86/usr/X11R6/bin/* $fs/usr/bin/
63 cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg
64 cp -a $src/arch/x86/usr/X11R6/lib/*.so* $fs/usr/lib
65 cp -a $src/arch/x86/usr/X11R6/lib/modules $fs/usr/lib/xorg
67 cp -a $src/common/etc $fs
68 chmod 755 $fs/etc/ati/authatieventsd.sh
69 cp -a $src/common/usr/sbin $fs/usr
71 cp -a $src/common/usr/share/icons/* $fs/usr/share/pixmaps
72 cp -a $src/common/usr/share/applications $fs/usr/share
73 cp -a $src/common/usr/share/doc $fs/usr/share
74 cp -a $src/common/usr/share/ati $fs/usr/share
75 cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin
76 }
78 pre_install()
79 {
80 echo ""
81 echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2"
82 echo "================================================================================"
83 echo "You are installing a package with proprietary license."
84 echo "You must accept the license."
85 echo "================================================================================"
86 echo ""
87 }
89 post_install()
90 {
91 echo "Processing post-install commands..."
92 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
94 ln -sf $1/usr/lib/xorg/modules/dri $1/usr/lib/dri
95 ln -sf $1/usr/lib/libfglrx_dm.so.1.0 $1/usr/lib/libfglrx_dm.so.1
96 ln -sf $1/usr/lib/libfglrx_pp.so.1.0 $1/usr/lib/libfglrx_pp.so.1
97 ln -sf $1/usr/lib/libfglrx_tvout.so.1.0 $1/usr/lib/libfglrx_tvout.so.1
98 ln -sf $1/usr/lib/libfglrx_gamma.so.1.0 $1/usr/lib/libfglrx_gamma.so.1
99 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so.1
100 ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so
102 echo ""
103 echo -e "\033[1m ATI LICENSE INFORMATION:\033[0m $2"
104 echo "================================================================================"
105 echo "For installing this package, you have to accept the $PACKAGE license."
106 echo "The license is stored in /usr/share/licenses/$PACKAGE "
107 echo -n "Would you like to read the license (y/N) : "; read anser
108 if [ "$anser" = "y" ]; then
109 cat /usr/share/licenses/"$PACKAGE"/ATI_LICENSE.txt | more
110 echo ""
111 fi
112 echo "================================================================================"
113 echo -n "Do you accept the license (y/N) : "; read anser
114 if [ "$anser" = "N" ]; then
115 echo "You did not accept the license, Removing the pkg."
116 tazpkg remove "$PACKAGE"
117 fi
118 }
120 post_remove()
121 {
122 echo "Processing post-remove commands..."
123 depmod -a
124 }