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