wok-undigest diff catalyst/receipt @ rev 744
Add vorbisgain
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Jul 08 13:26:40 2012 +0100 (2012-07-08) |
parents | |
children | 57f4e7e045e8 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/catalyst/receipt Sun Jul 08 13:26:40 2012 +0100 1.3 @@ -0,0 +1,122 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="catalyst" 1.7 +VERSION="10.12" 1.8 +CATEGORY="x-window" 1.9 +MAINTAINER="jozee@slitaz.org" 1.10 +SHORT_DESC="AMD/ATI beta drivers (non-free) for Radeon brand cards " 1.11 +WEB_SITE="http://www.ati.amd.com" 1.12 +TARBALL="ati-driver-installer-${VERSION/./-}-x86.x86_64.run" 1.13 +WGET="http://www2.ati.com/drivers/linux/$TARBALL" 1.14 +TAGS="drivers graphic video" 1.15 +RUN_OPTS="--extract $PACKAGE-$VERSION" 1.16 + 1.17 +DEPENDS="xorg-server mesa mesa-dri libdrm linux-drm fontconfig linux-agp \ 1.18 +xorg-libSM xorg-libXi xorg-libXcursor" 1.19 +BUILD_DEPENDS="linux xorg-server-dev mesa-dev libdrm-dev linux-module-headers" 1.20 + 1.21 +# Rules to configure and make the package. 1.22 +compile_rules() 1.23 +{ 1.24 + cd $src 1.25 + #for i in autoconf.h utsrelease.h ; do 1.26 + #grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|" 1.27 + #done 1.28 + echo "Applying patches..." 1.29 + patch -Np1 -i $stuff/makefile_compat.patch 1.30 + patch -Np1 -i $stuff/$PACKAGE-${kvers}.patch 1.31 + patch -Np1 -i $stuff/sema_init.patch 1.32 + cd $src/common/lib/modules/fglrx/build_mod 1.33 + cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 . 1.34 + cp 2.6.x/Makefile . 1.35 + echo "Compiling the Kernel module..." 1.36 + make -C /usr/src/linux SUBDIRS=$(pwd) modules 1.37 +} 1.38 + 1.39 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 +genpkg_rules() 1.41 +{ 1.42 + EXTRAVERSION=_${kvers} 1.43 + 1.44 + mkdir -p \ 1.45 + $fs/usr/share/pixmaps \ 1.46 + $fs/usr/bin \ 1.47 + $fs/usr/lib/xorg/modules \ 1.48 + $fs/usr/share/licenses/$PACKAGE \ 1.49 + $fs/lib/modules/$kvers-slitaz/kernel/drivers/video \ 1.50 + $fs/etc 1.51 + 1.52 + # Compress and install module 1.53 + lzma e $src/common/lib/modules/fglrx/build_mod/fglrx.ko \ 1.54 + $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz 1.55 + chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz 1.56 + chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz 1.57 + 1.58 + cp -a $src/ATI_LICENSE.TXT $fs/usr/share/licenses/$PACKAGE 1.59 + 1.60 + cp -a $src/arch/x86/usr/lib/*.so $fs/usr/lib/ 1.61 + cp -a $src/arch/x86/usr/sbin $fs/usr 1.62 + cp -a $src/arch/x86/usr/X11R6/bin/* $fs/usr/bin/ 1.63 + 1.64 + cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg 1.65 + cp -a $src/arch/x86/usr/X11R6/lib/*.so* $fs/usr/lib 1.66 + cp -a $src/arch/x86/usr/X11R6/lib/modules $fs/usr/lib/xorg 1.67 + 1.68 + cp -a $src/common/etc $fs 1.69 + chmod 755 $fs/etc/ati/authatieventsd.sh 1.70 + cp -a $src/common/usr/sbin $fs/usr 1.71 + 1.72 + cp -a $src/common/usr/share/icons/* $fs/usr/share/pixmaps 1.73 + cp -a $src/common/usr/share/applications $fs/usr/share 1.74 + cp -a $src/common/usr/share/doc $fs/usr/share 1.75 + cp -a $src/common/usr/share/ati $fs/usr/share 1.76 + cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin 1.77 +} 1.78 + 1.79 +pre_install() 1.80 +{ 1.81 + echo "" 1.82 + echo -e "\033[1m PROPRIETARY LICENSE:\033[0m $2" 1.83 + echo "================================================================================" 1.84 + echo "You are installing a package with proprietary license." 1.85 + echo "You must accept the license." 1.86 + echo "================================================================================" 1.87 + echo "" 1.88 +} 1.89 + 1.90 +post_install() 1.91 +{ 1.92 + echo "Processing post-install commands..." 1.93 + chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz 1.94 + 1.95 + ln -sf $1/usr/lib/xorg/modules/dri $1/usr/lib/dri 1.96 + ln -sf $1/usr/lib/libfglrx_dm.so.1.0 $1/usr/lib/libfglrx_dm.so.1 1.97 + ln -sf $1/usr/lib/libfglrx_pp.so.1.0 $1/usr/lib/libfglrx_pp.so.1 1.98 + ln -sf $1/usr/lib/libfglrx_tvout.so.1.0 $1/usr/lib/libfglrx_tvout.so.1 1.99 + ln -sf $1/usr/lib/libfglrx_gamma.so.1.0 $1/usr/lib/libfglrx_gamma.so.1 1.100 + ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so.1 1.101 + ln -sf $1/usr/lib/libGL.so.1.2 $1/usr/lib/libGL.so 1.102 + 1.103 + echo "" 1.104 + echo -e "\033[1m ATI LICENSE INFORMATION:\033[0m $2" 1.105 + echo "================================================================================" 1.106 + echo "For installing this package, you have to accept the $PACKAGE license." 1.107 + echo "The license is stored in /usr/share/licenses/$PACKAGE " 1.108 + echo -n "Would you like to read the license (y/N) : "; read anser 1.109 + if [ "$anser" = "y" ]; then 1.110 + cat /usr/share/licenses/"$PACKAGE"/ATI_LICENSE.txt | more 1.111 + echo "" 1.112 + fi 1.113 + echo "================================================================================" 1.114 + echo -n "Do you accept the license (y/N) : "; read anser 1.115 + if [ "$anser" = "N" ]; then 1.116 + echo "You did not accept the license, Removing the pkg." 1.117 + tazpkg remove "$PACKAGE" 1.118 + fi 1.119 +} 1.120 + 1.121 +post_remove() 1.122 +{ 1.123 + echo "Processing post-remove commands..." 1.124 + depmod -a 1.125 +}