wok-next view mesa/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | 157397cd0805 |
children | c0521c689857 |
line source
1 # SliTaz package receipt v2.
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 BUILD_DEPENDS="autoconf automake libtool python libdrm-dev libgcrypt-dev \
18 eudev-dev xorg-glproto xorg-dri2proto xorg-dri3proto xorg-presentproto \
19 xorg-libxcb-dev xorg-libxshmfence-dev xorg-libX11-dev xorg-libXext-dev \
20 xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXxf86vm-dev expat-dev \
21 elfutils-dev llvm-dev xorg-libpciaccess-dev"
22 SPLIT="mesa mesa-dev mesa-dri libegl-mesa"
23 # libGLU is included in the package libglu-mesa
24 # libGLw is included in the package libglw-mesa
25 # libEGL is included in the package libegl-mesa
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 # patch -p1 -i $stuff/mesa-12.0.patch
32 # "swr" driver is disabled due to compilation errors
33 GLL_DRV="nouveau,r300,r600,radeonsi,svga,swrast" &&
35 sed -i "/pthread-stubs/d" configure.ac &&
36 sed -i "/seems to be moved/s/^/: #/" bin/ltmain.sh &&
37 ./autogen.sh CFLAGS='-O2' CXXFLAGS='-O2' \
38 --sysconfdir=/etc \
39 --enable-texture-float \
40 --enable-gles1 \
41 --enable-gles2 \
42 --enable-osmesa \
43 --enable-xa \
44 --enable-gbm \
45 --enable-glx-tls \
46 --with-egl-platforms="drm,x11" \
47 --with-gallium-drivers=$GLL_DRV &&
49 unset GLL_DRV &&
51 make && make install
52 }
54 # Rules to gen a SliTaz package suitable for Tazpkg.
55 genpkg_rules()
56 {
57 case $PACKAGE in
58 mesa)
59 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm \
60 xorg-libXt udev xorg-libxshmfence"
61 copy etc/ libGL.so* libGLESv1_CM.so* libGLESv2.so* \
62 libOSMesa.so* libgbm.so* libglapi.so* libxatracker.so*
63 ;;
64 mesa-dev)
65 CAT="development|3D Graphics Library dev files."
66 DEPENDS="mesa mesa-dri mesa-libegl libdrm-dev \
67 xorg-libXdamage-dev xorg-libXxf86vm-dev \
68 xorg-libXt-dev xorg-glproto xorg-dri2proto pkg-config"
69 copy *.h *.la *.pc
70 ;;
71 mesa-dri)
72 CAT="x-window|Mesa DRI drivers."
73 DEPENDS="elfutils expat libdrm libdrm-intel libdrm-nouveau \
74 libdrm-radeon libgcrypt libgpg-error llvm-libs \
75 xorg-libpciaccess zlib"
76 copy *_dri.so
77 mkdir -p $fs/etc/X11/xorg.conf.d
78 cp $stuff/90-DRI.conf $fs/etc/X11/xorg.conf.d
79 ;;
80 libegl-mesa)
81 CAT="libs|OpenGL utility library"
82 DEPENDS="mesa"
83 PROVIDE="mesa-libegl"
84 copy libEGL*
85 ;;
86 esac
87 }