wok-next view mesa-wayland/receipt @ rev 20458

Unlock x86_64 architecture
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 02 12:12:14 2018 +0200 (2018-03-02)
parents 2985612f2b3f
children 4396aed7eb01
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa-wayland"
4 VERSION="9.1.3"
5 CATEGORY="x-window"
6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 SUGGESTED="nvidia"
10 SOURCE="Mesa"
11 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
12 WEB_SITE="http://www.mesa3d.org/"
13 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
15 # Have Wayland support by default ?
16 PROVIDE="libgl libegl-mesa libglw-mesa"
18 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
19 wayland"
20 BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
21 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
22 lesstif libxml2-python lesstif-dev xorg-server-dev udev-dev wayland-dev gettext"
24 # Use some build system tools
25 case "$ARCH" in
26 i?86)
27 BUILD_DEPENDS="$BUILD_DEPENDS talloc xorg-makedepend xorg-imake \
28 file libdrm-nouveau llvm libtool automake autoconf libpthread-stubs-dev" ;;
29 esac
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 find . -name 'nouveau*.h' | \
35 xargs sed -i 's|libdrm/nouveau.h|libdrm/nouveau/nouveau.h|'
36 ./autogen.sh \
37 --prefix=/usr \
38 --sysconfdir=/etc/X11/${PACKAGE} \
39 --enable-gles2 \
40 --disable-gallium-egl \
41 --with-egl-platforms=x11,wayland,drm \
42 --enable-gbm \
43 --enable-shared-glapi \
44 --with-gallium-drivers=r300,r600,swrast,nouveau \
45 $CONFIGURE_ARGS &&
46 make $MAKEFLAGS && make install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib/dri
53 cp -a $install/etc $fs
54 cp -a $install/usr/lib/*.so* $fs/usr/lib
55 cp -a $install/usr/lib/dri/*.so* $fs/usr/lib/dri
57 # libGLU is included in the package libglu-mesa
58 #rm -r -f $fs/usr/lib/libGLU*
60 #libGLw is included in the package libglw-mesa
61 #rm -r -f $fs/usr/lib/libGLw*
63 #libEGL is included in the package libegl-mesa
64 #rm -r -f $fs/usr/lib/libEGL*
65 }