wok-next diff mesa-wayland/receipt @ rev 20464

Combine receipts (final)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 07 19:43:44 2018 +0200 (2018-03-07)
parents c4e53a39395a
children c0521c689857
line diff
     1.1 --- a/mesa-wayland/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/mesa-wayland/receipt	Wed Mar 07 19:43:44 2018 +0200
     1.3 @@ -1,38 +1,29 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="mesa-wayland"
     1.8  VERSION="9.1.3"
     1.9  CATEGORY="x-window"
    1.10 -SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
    1.11 +SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="MIT"
    1.14 -SUGGESTED="nvidia"
    1.15 -SOURCE="Mesa"
    1.16 -TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
    1.17  WEB_SITE="http://www.mesa3d.org/"
    1.18 +
    1.19 +TARBALL="MesaLib-$VERSION.tar.bz2"
    1.20  WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
    1.21  
    1.22 -# Have Wayland support by default ?
    1.23 -PROVIDE="libgl libegl-mesa libglw-mesa"
    1.24 -
    1.25 -DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
    1.26 -wayland"
    1.27 -BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
    1.28 +BUILD_DEPENDS_arm="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
    1.29  xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
    1.30  lesstif libxml2-python lesstif-dev xorg-server-dev udev-dev wayland-dev gettext"
    1.31 +BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
    1.32 +xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto lesstif \
    1.33 +libxml2-python lesstif-dev xorg-server-dev udev-dev wayland-dev gettext talloc \
    1.34 +xorg-makedepend xorg-imake file libdrm-nouveau llvm libtool automake autoconf \
    1.35 +libpthread-stubs-dev"
    1.36 +SPLIT="mesa-wayland-dev"
    1.37  
    1.38 -# Use some build system tools
    1.39 -case "$ARCH" in
    1.40 -	i?86) 
    1.41 -		BUILD_DEPENDS="$BUILD_DEPENDS talloc xorg-makedepend xorg-imake \
    1.42 -		file libdrm-nouveau llvm libtool automake autoconf libpthread-stubs-dev" ;;
    1.43 -esac
    1.44 -
    1.45 -# Rules to configure and make the package.
    1.46 -compile_rules()
    1.47 -{
    1.48 -	find . -name 'nouveau*.h' | \
    1.49 -		xargs sed -i 's|libdrm/nouveau.h|libdrm/nouveau/nouveau.h|'
    1.50 +compile_rules() {
    1.51 +	find . -name 'nouveau*.h' \
    1.52 +	| xargs sed -i 's|libdrm/nouveau.h|libdrm/nouveau/nouveau.h|'
    1.53  	./autogen.sh \
    1.54  		--prefix=/usr \
    1.55  		--sysconfdir=/etc/X11/${PACKAGE} \
    1.56 @@ -46,21 +37,36 @@
    1.57  	make $MAKEFLAGS && make install
    1.58  }
    1.59  
    1.60 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.61 -genpkg_rules()
    1.62 -{
    1.63 -	mkdir -p $fs/usr/lib/dri
    1.64 -	cp -a $install/etc $fs
    1.65 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.66 -	cp -a $install/usr/lib/dri/*.so* $fs/usr/lib/dri
    1.67 +genpkg_rules() {
    1.68 +	case $PACKAGE in
    1.69 +		mesa-wayland)
    1.70 +			mkdir -p $fs/usr/lib/dri
    1.71 +			cp -a $install/etc $fs
    1.72 +			cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.73 +			cp -a $install/usr/lib/dri/*.so* $fs/usr/lib/dri
    1.74  
    1.75 -	# libGLU is included in the package libglu-mesa
    1.76 -	#rm -r -f $fs/usr/lib/libGLU*
    1.77 +			# libGLU is included in the package libglu-mesa
    1.78 +			#rm -r -f $fs/usr/lib/libGLU*
    1.79  
    1.80 -	#libGLw is included in the package libglw-mesa
    1.81 -	#rm -r -f $fs/usr/lib/libGLw*
    1.82 +			#libGLw is included in the package libglw-mesa
    1.83 +			#rm -r -f $fs/usr/lib/libGLw*
    1.84  
    1.85 -	#libEGL is included in the package libegl-mesa
    1.86 -	#rm -r -f $fs/usr/lib/libEGL*
    1.87 +			#libEGL is included in the package libegl-mesa
    1.88 +			#rm -r -f $fs/usr/lib/libEGL*
    1.89 +			DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt \
    1.90 +			udev wayland"
    1.91 +			SUGGESTED="nvidia"
    1.92 +			# Have Wayland support by default ?
    1.93 +			PROVIDE="libgl libegl-mesa libglw-mesa"
    1.94 +			;;
    1.95 +		*-dev)
    1.96 +			mkdir -p $fs/usr/lib/dri
    1.97 +			cp -a $install/usr/include $fs/usr
    1.98 +			cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.99 +			cp -a $install/usr/lib/dri/*.*a $fs/usr/lib/dri
   1.100 +			cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   1.101 +			DEPENDS="mesa-wayland udev-dev"
   1.102 +			;;
   1.103 +	esac
   1.104  }
   1.105