wok-next annotate libdrm-mach64/receipt @ rev 10395

libxfce4ui: we can't have a package that depend on itself!!!
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 24 00:28:27 2011 +0200 (2011-05-24)
parents 51f4e679d147
children 07430e4ff626
rev   line source
gokhlayeh@8808 1 # SliTaz package receipt.
gokhlayeh@8808 2
gokhlayeh@8808 3 PACKAGE="libdrm-mach64"
gokhlayeh@8808 4 VERSION="20110109"
gokhlayeh@8808 5 CATEGORY="x-window"
gokhlayeh@8808 6 SHORT_DESC="DRM Library for mach64 (deprecated but no alternative)."
gokhlayeh@8808 7 MAINTAINER="gokhlayeh@slitaz.org"
slaxemulator@9623 8 DEPENDS="linux"
slaxemulator@9623 9 BUILD_DEPENDS="linux-module-headers"
gokhlayeh@8808 10 WEB_SITE="http://dri.freedesktop.org/wiki/DRM"
slaxemulator@9623 11 SOURCE="mach64"
slaxemulator@9623 12 TARBALL="$SOURCE-$VERSION.tar.gz"
gokhlayeh@8808 13 WGET_URL="http://trya.alwaysdata.net/linux/$TARBALL"
gokhlayeh@8808 14
gokhlayeh@8808 15 # Rules to configure and make the package.
gokhlayeh@8808 16 compile_rules()
gokhlayeh@8808 17 {
gokhlayeh@8808 18 cd $src
gokhlayeh@8808 19 #DESTDIR="$DESTDIR/lib/modules/`uname -r`/kernel/"
pascal@8908 20 find -name Makefile | xargs sed -i \
pascal@8908 21 "s|/lib/modules/\`uname -r\`/build|/usr/src/linux|"
gokhlayeh@8808 22 KERN_DIR=/usr/src/linux make
gokhlayeh@8808 23 }
gokhlayeh@8808 24
gokhlayeh@8808 25 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@8808 26 genpkg_rules()
gokhlayeh@8808 27 {
gokhlayeh@8808 28 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'`
gokhlayeh@8808 29 install -D -m644 $src/mach64.ko \
gokhlayeh@8808 30 "$fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/gpu/drm/mach64/mach64.ko"
gokhlayeh@8808 31 }