# HG changeset patch # User Christophe Lincoln # Date 1306529559 -7200 # Node ID b113883af30db0d968d7fd51e9ca14bbf2c43d32 # Parent 0a38684bde7f36f3ad96a97c17998d4454b7183e Add qemu-light (stripped down, but works) - qemu* may move to undigest since I can't make it work properly diff -r 0a38684bde7f -r b113883af30d catalyst/receipt --- a/catalyst/receipt Fri May 27 21:55:41 2011 +0200 +++ b/catalyst/receipt Fri May 27 22:52:39 2011 +0200 @@ -6,68 +6,59 @@ MAINTAINER="jozee@slitaz.org" SHORT_DESC="AMD/ATI beta drivers (non-free) for Radeon brand cards " WEB_SITE="http://www.ati.amd.com" -DEPENDS="xorg-server mesa mesa-dri libdrm linux-drm fontconfig linux-agp xorg-libSM xorg-libXi xorg-libXcursor" -BUILD_DEPENDS="linux xorg-server linux-module-headers" TARBALL="ati-driver-installer-${VERSION/./-}-x86.x86_64.run" WGET="http://www2.ati.com/drivers/linux/$TARBALL" TAGS="drivers graphic video" +RUN_OPTS="--extract $PACKAGE-$VERSION" + +DEPENDS="xorg-server mesa mesa-dri libdrm linux-drm fontconfig linux-agp \ +xorg-libSM xorg-libXi xorg-libXcursor" +BUILD_DEPENDS="linux xorg-server-dev mesa-dev libdrm-dev linux-module-headers" # Rules to configure and make the package. - -compile_rules() { - - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` - - cd $WOK/$PACKAGE - [ -f $SOURCES_REPOSITORY/$TARBALL ] && cp $SOURCES_REPOSITORY/$TARBALL . - if [ ! -f $TARBALL ]; then - wget $WGET - cp $TARBALL $SOURCES_REPOSITORY - fi - - chmod +x $TARBALL - [ -d $PACKAGE-$VERSION ] || sh $TARBALL --extract $PACKAGE-$VERSION - - for i in autoconf.h utsrelease.h ; do - grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|" - done +compile_rules() +{ cd $src + #for i in autoconf.h utsrelease.h ; do + #grep -rl linux/$i * | xargs sed -i "s|linux/$i|generated/$i|" + #done + echo "Applying patches..." patch -Np1 -i $stuff/makefile_compat.patch - patch -Np1 -i $stuff/$PACKAGE-${KERNEL_VERSION}.patch + patch -Np1 -i $stuff/$PACKAGE-${kvers}.patch patch -Np1 -i $stuff/sema_init.patch cd $src/common/lib/modules/fglrx/build_mod cp $src/arch/x86/lib/modules/fglrx/build_mod/libfglrx_ip.a.GCC4 . cp 2.6.x/Makefile . - make -C /usr/src/linux SUBDIRS="`pwd`" modules + echo "Compiling the Kernel module..." + make -C /usr/src/linux SUBDIRS=$(pwd) modules } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` - EXTRAVERSION=_$KERNEL_VERSION + EXTRAVERSION=_${kvers} - mkdir -p $fs/usr/share/pixmaps \ - $fs/usr/bin \ - $fs/usr/lib/xorg/modules \ - $fs/usr/share/licenses/$PACKAGE \ - $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video \ - $fs/etc + mkdir -p \ + $fs/usr/share/pixmaps \ + $fs/usr/bin \ + $fs/usr/lib/xorg/modules \ + $fs/usr/share/licenses/$PACKAGE \ + $fs/lib/modules/$kvers-slitaz/kernel/drivers/video \ + $fs/etc # Compress and install module lzma e $src/common/lib/modules/fglrx/build_mod/fglrx.ko \ - $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz - chown root $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz - chmod 0644 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/video/fglrx.ko.gz + $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz + chown root $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz + chmod 0644 $fs/lib/modules/$kvers-slitaz/kernel/drivers/video/fglrx.ko.gz cp -a $src/ATI_LICENSE.TXT $fs/usr/share/licenses/$PACKAGE - - cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg cp -a $src/arch/x86/usr/lib/*.so $fs/usr/lib/ cp -a $src/arch/x86/usr/sbin $fs/usr cp -a $src/arch/x86/usr/X11R6/bin/* $fs/usr/bin/ - + + cp -a $src/x740/usr/X11R6/lib/modules $fs/usr/lib/xorg cp -a $src/arch/x86/usr/X11R6/lib/*.so* $fs/usr/lib cp -a $src/arch/x86/usr/X11R6/lib/modules $fs/usr/lib/xorg @@ -79,9 +70,7 @@ cp -a $src/common/usr/share/applications $fs/usr/share cp -a $src/common/usr/share/doc $fs/usr/share cp -a $src/common/usr/share/ati $fs/usr/share - cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin - - + cp -a $src/common/usr/X11R6/bin/* $fs/usr/bin } pre_install() @@ -93,7 +82,6 @@ echo "You must accept the license." echo "================================================================================" echo "" - } post_install() @@ -125,8 +113,6 @@ echo "You did not accept the license, Removing the pkg." tazpkg remove "$PACKAGE" fi - - } post_remove() @@ -134,5 +120,3 @@ echo "Processing post-remove commands..." depmod -a } - -TAZBB_NO_INSTALL="because this is not hardware neutral" diff -r 0a38684bde7f -r b113883af30d qemu-light/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/qemu-light/receipt Fri May 27 22:52:39 2011 +0200 @@ -0,0 +1,47 @@ +# SliTaz package receipt. + +PACKAGE="qemu-light" +VERSION="0.12.5" +CATEGORY="misc" +SHORT_DESC="Light Qemu i386-softmmu target (without xen, vde, bluez, blobs, tls)." +MAINTAINER="pankso@slitaz.org" +SOURCE="qemu" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.qemu.org/" +WGET_URL="http://download.savannah.gnu.org/releases/qemu/$TARBALL" +TAGS="virtualization" + +DEPENDS="alsa-lib libsdl util-linux-ng-uuid" +BUILD_DEPENDS="perl alsa-lib-dev libsdl-dev util-linux-ng-uuid-dev" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + TARGET="i386-softmmu" + ./configure \ + --prefix=/usr \ + --disable-xen \ + --disable-vnc-sasl \ + --disable-vnc-tls \ + --disable-curl \ + --disable-bluez \ + --disable-curses \ + --disable-vde \ + --disable-blobs \ + --enable-io-thread \ + --audio-drv-list=alsa \ + --target-list="$TARGET" \ + --cc=$BUILD_SYSTEM-gcc && + make && make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/share/qemu $fs/usr/share + rm -f $fs/usr/share/qemu/*ppc* + rm -f $fs/usr/share/qemu/*sparc* +}