wok-next view mesa/receipt @ rev 19687

unshield: _BSD_SOURCE is deprecated
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 10 09:48:32 2017 +0200 (2017-04-10)
parents bd19ab320b7d
children f463de72afe3
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa"
4 VERSION="12.0.6"
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="https://www.mesa3d.org/"
10 SUGGESTED="nvidia"
11 PROVIDE="libgl"
12 CONFIG_FILES="/etc/drirc"
14 TARBALL="$PACKAGE-$VERSION.tar.xz"
15 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
17 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt udev \
18 xorg-libxshmfence"
19 BUILD_DEPENDS="autoconf automake libtool python libdrm-dev libgcrypt-dev \
20 eudev-dev xorg-glproto xorg-dri2proto xorg-dri3proto xorg-presentproto \
21 libxcb-dev xorg-libxshmfence-dev xorg-libX11-dev xorg-libXext-dev \
22 xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXxf86vm-dev expat-dev \
23 elfutils-dev llvm-dev xorg-libpciaccess-dev"
24 SPLIT="mesa-dri mesa-libegl"
25 # libGLU is included in the package libglu-mesa
26 # libGLw is included in the package libglw-mesa
27 # libEGL is included in the package libegl-mesa
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # patch -p1 -i $stuff/mesa-12.0.patch
34 # "swr" driver is disabled due to compilation errors
35 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &&
37 sed -i "/pthread-stubs/d" configure.ac &&
38 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh &&
39 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
40 --sysconfdir=/etc \
41 --enable-texture-float \
42 --enable-gles1 \
43 --enable-gles2 \
44 --enable-osmesa \
45 --enable-xa \
46 --enable-gbm \
47 --enable-glx-tls \
48 --with-egl-platforms="drm,x11" \
49 --with-gallium-drivers=$GLL_DRV &&
51 unset GLL_DRV &&
53 make && make install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 cook_copy_folders etc
60 cook_copy_files libGL.so* libGLESv1_CM.so* libGLESv2.so* libOSMesa.so* \
61 libgbm.so* libglapi.so* libxatracker.so*
62 }