wok-current annotate libdrm-mach64/receipt @ rev 17675
nmon: keep source
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 18 11:21:08 2015 +0100 (2015-02-18) |
parents | 07430e4ff626 |
children | 608d4b90020d |
rev | line source |
---|---|
gokhlayeh@8808 | 1 # SliTaz package receipt. |
gokhlayeh@8808 | 2 |
gokhlayeh@8808 | 3 PACKAGE="libdrm-mach64" |
pascal@14200 | 4 VERSION="20130130" |
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" |
pascal@15472 | 8 LICENSE="MIT" |
gokhlayeh@8808 | 9 WEB_SITE="http://dri.freedesktop.org/wiki/DRM" |
slaxemulator@9623 | 10 SOURCE="mach64" |
slaxemulator@9623 | 11 TARBALL="$SOURCE-$VERSION.tar.gz" |
gokhlayeh@8808 | 12 WGET_URL="http://trya.alwaysdata.net/linux/$TARBALL" |
gokhlayeh@8808 | 13 |
pascal@15472 | 14 DEPENDS="linux" |
pascal@15472 | 15 BUILD_DEPENDS="linux-module-headers" |
pascal@15472 | 16 |
gokhlayeh@8808 | 17 # Rules to configure and make the package. |
gokhlayeh@8808 | 18 compile_rules() |
gokhlayeh@8808 | 19 { |
gokhlayeh@8808 | 20 cd $src |
gokhlayeh@8808 | 21 #DESTDIR="$DESTDIR/lib/modules/`uname -r`/kernel/" |
pascal@8908 | 22 find -name Makefile | xargs sed -i \ |
pascal@8908 | 23 "s|/lib/modules/\`uname -r\`/build|/usr/src/linux|" |
gokhlayeh@8808 | 24 KERN_DIR=/usr/src/linux make |
gokhlayeh@8808 | 25 } |
gokhlayeh@8808 | 26 |
gokhlayeh@8808 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@8808 | 28 genpkg_rules() |
gokhlayeh@8808 | 29 { |
gokhlayeh@8808 | 30 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | cut -d "=" -f2 | sed -e 's/"//g'` |
gokhlayeh@8808 | 31 install -D -m644 $src/mach64.ko \ |
gokhlayeh@8808 | 32 "$fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/drivers/gpu/drm/mach64/mach64.ko" |
gokhlayeh@8808 | 33 } |