wok-next view 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 source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.mesa3d.org/"
11 TARBALL="MesaLib-$VERSION.tar.bz2"
12 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
14 BUILD_DEPENDS_arm="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
15 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
16 lesstif libxml2-python lesstif-dev xorg-server-dev udev-dev wayland-dev gettext"
17 BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
18 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto lesstif \
19 libxml2-python lesstif-dev xorg-server-dev udev-dev wayland-dev gettext talloc \
20 xorg-makedepend xorg-imake file libdrm-nouveau llvm libtool automake autoconf \
21 libpthread-stubs-dev"
22 SPLIT="mesa-wayland-dev"
24 compile_rules() {
25 find . -name 'nouveau*.h' \
26 | xargs sed -i 's|libdrm/nouveau.h|libdrm/nouveau/nouveau.h|'
27 ./autogen.sh \
28 --prefix=/usr \
29 --sysconfdir=/etc/X11/${PACKAGE} \
30 --enable-gles2 \
31 --disable-gallium-egl \
32 --with-egl-platforms=x11,wayland,drm \
33 --enable-gbm \
34 --enable-shared-glapi \
35 --with-gallium-drivers=r300,r600,swrast,nouveau \
36 $CONFIGURE_ARGS &&
37 make $MAKEFLAGS && make install
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 mesa-wayland)
43 mkdir -p $fs/usr/lib/dri
44 cp -a $install/etc $fs
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/dri/*.so* $fs/usr/lib/dri
48 # libGLU is included in the package libglu-mesa
49 #rm -r -f $fs/usr/lib/libGLU*
51 #libGLw is included in the package libglw-mesa
52 #rm -r -f $fs/usr/lib/libGLw*
54 #libEGL is included in the package libegl-mesa
55 #rm -r -f $fs/usr/lib/libEGL*
56 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt \
57 udev wayland"
58 SUGGESTED="nvidia"
59 # Have Wayland support by default ?
60 PROVIDE="libgl libegl-mesa libglw-mesa"
61 ;;
62 *-dev)
63 mkdir -p $fs/usr/lib/dri
64 cp -a $install/usr/include $fs/usr
65 cp -a $install/usr/lib/*.*a $fs/usr/lib
66 cp -a $install/usr/lib/dri/*.*a $fs/usr/lib/dri
67 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
68 DEPENDS="mesa-wayland udev-dev"
69 ;;
70 esac
71 }