wok-undigest diff mesa/receipt @ rev 1223

copied libxext recipe from wok-next
author Hans-G?nter Theisgen
date Fri Nov 15 17:38:29 2019 +0100 (2019-11-15)
parents
children cce2687b06f1
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mesa/receipt	Fri Nov 15 17:38:29 2019 +0100
     1.3 @@ -0,0 +1,51 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="mesa"
     1.7 +VERSION="10.5.4"
     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 +LICENSE="MIT"
    1.12 +SUGGESTED="nvidia"
    1.13 +SOURCE="Mesa"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.15 +WEB_SITE="http://www.mesa3d.org/"
    1.16 +WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
    1.17 +PROVIDE="libgl"
    1.18 +
    1.19 +DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
    1.20 +libpthread-stubs"
    1.21 +BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
    1.22 +xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
    1.23 +talloc xorg-makedepend lesstif libxml2-python xorg-imake lesstif-dev \
    1.24 +xorg-server-dev udev-dev file libdrm-nouveau llvm libpthread-stubs-dev \
    1.25 +libtool automake autoconf xorg-dri3proto xorg-presentproto gcc49"
    1.26 +
    1.27 +# Rules to configure and make the package.
    1.28 +compile_rules()
    1.29 +{
    1.30 +	sed -i 's/HAVE_LLVM/0x0306/' #src/gallium/auxiliary/draw/draw_llvm.c
    1.31 +	export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
    1.32 +	./autogen.sh \
    1.33 +		CC=gcc-49 CXX=g++-49 \
    1.34 +		--disable-gallium-llvm \
    1.35 +		--prefix=/usr \
    1.36 +		$CONFIGURE_ARGS &&
    1.37 +	make $MAKEFLAGS && make install
    1.38 +}
    1.39 +
    1.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	mkdir -p $fs/usr/lib
    1.44 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.45 +
    1.46 +	# libGLU is included in the package libglu-mesa
    1.47 +	rm -r -f $fs/usr/lib/libGLU*
    1.48 +
    1.49 +	#libGLw is included in the package libglw-mesa
    1.50 +	rm -r -f $fs/usr/lib/libGLw*
    1.51 +
    1.52 +	#libEGL is included in the package libegl-mesa
    1.53 +	rm -r -f $fs/usr/lib/libEGL*
    1.54 +}