wok diff mesa7/receipt @ rev 20580

go: force arch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 13 22:11:22 2018 +0100 (2018-12-13)
parents
children a78610b2eb47
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mesa7/receipt	Thu Dec 13 22:11:22 2018 +0100
     1.3 @@ -0,0 +1,60 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mesa7"
     1.7 +VERSION="7.10.2"
     1.8 +CATEGORY="x-window"
     1.9 +SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +SOURCE="Mesa"
    1.12 +TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
    1.13 +WEB_SITE="http://www.mesa3d.org/"
    1.14 +WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/older-versions/7.x/${VERSION}/$TARBALL"
    1.15 +PROVIDE="mesa"
    1.16 +
    1.17 +DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev"	#libpthread-stubs
    1.18 +
    1.19 +BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
    1.20 +xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
    1.21 +talloc xorg-makedepend lesstif libxml2-python xorg-imake lesstif-dev \
    1.22 +xorg-server-dev udev-dev file libtool automake autoconf"
    1.23 +# libpthread-stubs-dev llvm  xorg-dri3proto xorg-presentproto
    1.24 +# --with-gallium-drivers= \
    1.25 +
    1.26 +# Rules to configure and make the package.
    1.27 +compile_rules()
    1.28 +{
    1.29 +	autoreconf -vfi
    1.30 +	./configure \
    1.31 +		--prefix=/usr \
    1.32 +		--with-x \
    1.33 +		--with-dri-driverdir=/usr/lib/dri \
    1.34 +		--with-dri-drivers=unichrome,i810,mach64,mga,r128,savage,sis,tdfx \
    1.35 +		--disable-gallium-llvm \
    1.36 +		--enable-glx-tls \
    1.37 +		--with-driver=dri \
    1.38 +		--enable-xcb \
    1.39 +		--disable-glut \
    1.40 +		--enable-gles1 \
    1.41 +		--enable-gles2 \
    1.42 +		--enable-egl \
    1.43 +		--enable-texture-float \
    1.44 +		--disable-shared-dricore \
    1.45 +        $CONFIGURE_ARGS &&
    1.46 +	(make $MAKEFLAGS && make install) 2>/dev/null | sed '/No such file or directory/d'
    1.47 +}
    1.48 +        
    1.49 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.50 +genpkg_rules()
    1.51 +{
    1.52 +	mkdir -p $fs/usr/lib
    1.53 +	cp -a $install/usr/lib//libGLE*.so* $fs/usr/lib
    1.54 +
    1.55 +	# libGLU is included in the package libglu-mesa
    1.56 +	rm -r -f $fs/usr/lib/libGLU*
    1.57 +
    1.58 +	#libGLw is included in the package libglw-mesa
    1.59 +	rm -r -f $fs/usr/lib/libGLw*
    1.60 +
    1.61 +	#libEGL is included in the package libegl-mesa
    1.62 +	rm -r -f $fs/usr/lib/libEGL*
    1.63 +}