wok annotate mesa/receipt @ rev 4236
tazbb: get KERNEL variable from linux receipt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 24 16:26:08 2009 +0200 (2009-09-24) |
parents | f7311b2e6694 |
children | 9560c3fa0ebd |
rev | line source |
---|---|
pascal@592 | 1 # SliTaz package receipt. |
pascal@592 | 2 |
pascal@592 | 3 PACKAGE="mesa" |
rcx@3695 | 4 VERSION="7.4.4" |
pascal@745 | 5 CATEGORY="misc" |
rcx@3695 | 6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL." |
pascal@592 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
rcx@3695 | 8 DEPENDS="glibc-base expat libdrm xorg-libX11 xorg-libXau xorg-libXdamage \ |
rcx@3695 | 9 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXxf86vm" |
pankso@4170 | 10 BUILD_DEPENDS="$DEPENDS slitaz-toolchain expat-dev lesstif lesstif-dev libdrm-dev \ |
rcx@3695 | 11 xorg-dri2proto xorg-glproto xorg-damageproto xorg-xproto xorg-fixesproto xorg-xextproto \ |
rcx@3695 | 12 xorg-libX11-dev xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXt-dev \ |
pankso@4170 | 13 xorg-libICE-dev xorg-libSM-dev xorg-xf86vidmodeproto xorg-libXxf86vm-dev" |
pascal@592 | 14 SOURCE="Mesa" |
pascal@592 | 15 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2" |
pascal@592 | 16 WEB_SITE="http://www.mesa3d.org/" |
pascal@592 | 17 WGET_URL="$SF_MIRROR/mesa3d/$TARBALL" |
rcx@3695 | 18 PROVIDE="libgl" |
pascal@592 | 19 |
pascal@592 | 20 # Rules to configure and make the package. |
pascal@592 | 21 compile_rules() |
rcx@3695 | 22 { |
pankso@3007 | 23 ln -s $src $PACKAGE-$VERSION 2>/dev/null |
pascal@592 | 24 cd $src |
pankso@3007 | 25 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure && |
rcx@3695 | 26 ./configure \ |
rcx@3695 | 27 --prefix=/usr \ |
rcx@3695 | 28 --with-x \ |
rcx@3695 | 29 --enable-gl-osmesa \ |
rcx@3695 | 30 --enable-motif \ |
rcx@3695 | 31 $CONFIGURE_ARGS && |
pankso@3007 | 32 make && |
pascal@592 | 33 make DESTDIR=$PWD/_pkg install |
pascal@592 | 34 } |
pascal@592 | 35 |
pascal@592 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@592 | 37 genpkg_rules() |
pascal@592 | 38 { |
pankso@3007 | 39 mkdir -p $fs/usr/lib |
pankso@3007 | 40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@3007 | 41 cp -a $_pkg/usr/lib/dri $fs/usr/lib |
pankso@4170 | 42 |
rcx@3695 | 43 # libGLU is included in the package libglu-mesa |
rcx@3695 | 44 rm -r -f $fs/usr/lib/libGLU* |
pankso@4170 | 45 |
rcx@3695 | 46 #libGLw is included in the package libglw-mesa |
rcx@3695 | 47 rm -r -f $fs/usr/lib/libGLw* |
pascal@592 | 48 } |