Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=x11testing.git;a=commitdiff;h=c713bdfe64a196841297061484d787052bc88397

commit c713bdfe64a196841297061484d787052bc88397
Author: Michel Hermier <[email protected]>
Date:   Sat Oct 13 18:36:24 2012 +0200

mesa-9.0-2-i686

* Use Flibtool_fixes.
* Add use flags for GLES1 and GLES2 support (enabled).
* Add use flag for OPENCL (disabled seems to trigger an llvm issue).

diff --git a/source/x11/mesa/FrugalBuild b/source/x11/mesa/FrugalBuild
index 3a61844..82fdb88 100644
--- a/source/x11/mesa/FrugalBuild
+++ b/source/x11/mesa/FrugalBuild
@@ -8,16 +8,23 @@ USE_DRI=${USE_DRI:-"y"}
USE_DRI_OLD=${USE_DRI_OLD:-"y"}
USE_EGL=${USE_EGL:-"y"}
USE_GALLIUM=${USE_GALLIUM:-"y"}
+USE_GLES1=${USE_GLES1:-"y"}
+USE_GLES2=${USE_GLES2:-"y"}
USE_GLX=${USE_GLX:-"y"}
+USE_OPENCL=${USE_OPENCL:-"n"}
USE_OSMESA=${USE_OSMESA:-"n"}
USE_VDPAU=${USE_VDPAU:-"y"}
USE_WAYLAND_EGL=${USE_WAYLAND_EGL:-"n"}

+if Fuse WAYLAND_EGL; then
+       USE_EGL=y
+fi
+
pkgname=mesa
origname=Mesa
_F_archive_name="MesaLib"
pkgver=9.0
-pkgrel=1
+pkgrel=2
pkgdesc="Mesa is a 3D graphics library"
url="http://mesa3d.sourceforge.net/";
up2date="Flasttar ftp://ftp.freedesktop.org/pub/$pkgname/current/";
@@ -35,7 +42,7 @@ if Fuse DEVEL; then
pkgver=9999.g23cd6c4
pkgrel=0
_F_scm_type="git"
-        _F_scm_url="git://anongit.freedesktop.org/mesa/mesa"
+       _F_scm_url="git://anongit.freedesktop.org/mesa/mesa"
Finclude scm
else
source=("ftp://ftp.freedesktop.org/pub/mesa/$pkgver/MesaLib-$pkgver.tar.bz2";)
@@ -131,19 +138,6 @@ if Fuse EGL; then
subgroups=("${subgroups[@]}" 'x11')
subarchs=("${subarchs[@]}" "${archs[*]}")
subbackup=("${subbackup[@]}" '')
-
-       if Fuse WAYLAND_EGL; then
-               subpkgs=("${subpkgs[@]}" 'libwayland-egl')
-               subdescs=("${subdescs[@]}" '')
-               subprovides=("${subprovides[@]}" '')
-               subreplaces=("${subreplaces[@]}" '')
-               subconflicts=("${subconflicts[@]}" '')
-               subdepends=("${subdepends[@]}" 'wayland')
-               subrodepends=("${subrodepends[@]}" 'libgl')
-               subgroups=("${subgroups[@]}" 'x11')
-               subarchs=("${subarchs[@]}" "${archs[*]}")
-               subbackup=("${subbackup[@]}" '')
-       fi
fi

if Fuse VDPAU; then
@@ -159,10 +153,18 @@ if Fuse VDPAU; then
subbackup=("${subbackup[@]}" '')
fi

-# NOTE: If you bump version (major or minor) you need to review the symlinking 
at the end of this
-#       file !!!! On minor bump last number will be changed.
-#      Be SURE you checked in the FPM ! before uploading or anything else!
-#      Check: src/mesa/main/version.h for mesa proper version need for symlink.
+if Fuse WAYLAND_EGL; then
+       subpkgs=("${subpkgs[@]}" 'libwayland-egl')
+       subdescs=("${subdescs[@]}" '')
+       subprovides=("${subprovides[@]}" '')
+       subreplaces=("${subreplaces[@]}" '')
+       subconflicts=("${subconflicts[@]}" '')
+       subdepends=("${subdepends[@]}" 'wayland')
+       subrodepends=("${subrodepends[@]}" 'libgl')
+       subgroups=("${subgroups[@]}" 'x11')
+       subarchs=("${subarchs[@]}" "${archs[*]}")
+       subbackup=("${subbackup[@]}" '')
+fi

build() {
#       unset MAKEFLAGS
@@ -183,16 +185,35 @@ build() {

if Fuse DRI; then
Fconfopts+=" --enable-dri"
+               Fconfopts+=" --with-dri-driverdir=/usr/lib/dri"
else
Fconfopts+=" --disable-dri"
fi

+       if Fuse GLES1; then
+               Fconfopts+=" --enable-gles1"
+       else
+               Fconfopts+=" --disable-gles1"
+       fi
+
+       if Fuse GLES2; then
+               Fconfopts+=" --enable-gles2"
+       else
+               Fconfopts+=" --disable-gles2"
+       fi
+
if Fuse GLX; then
Fconfopts+=" --enable-glx"
else
Fconfopts+=" --disable-glx"
fi

+       if Fuse OPENCL; then
+               Fconfopts+=" --enable-opencl"
+       else
+               Fconfopts+=" --disable-opencl"
+       fi
+
if Fuse OSMESA; then
Fconfopts+=" --enable-osmesa"
else
@@ -248,10 +269,8 @@ build() {
Fconfopts+=" --disable-gallium"
fi

-       Fconf   --with-dri-driverdir=/usr/lib/dri \
+       Fconf   \
--enable-gbm \
-               --enable-gles1 \
-               --enable-gles2 \
--enable-glx-tls \
--enable-shared-glapi

@@ -291,10 +310,6 @@ build() {
Fsplit mesa-dri-drivers usr/lib/libdricore*
Fsplit mesa-dri-drivers usr/lib/pkgconfig/dri.pc

-       Fsplit libgles usr/include/GLES*/
-       Fsplit libgles usr/lib/libGLES*
-       Fsplit libgles usr/lib/pkgconfig/gles*.pc
-
Fsplit khr-headers usr/include/KHR/

#       Fsplit xf86-video-gles usr/include/xorg/
@@ -309,11 +324,18 @@ build() {
Fsplit libvg usr/include/VG/
Fsplit libvg usr/lib/libOpenVG.*
Fsplit libvg usr/lib/pkgconfig/vg.pc
+       fi

-               if Fuse WAYLAND_EGL; then
-                       Fsplit libwayland-egl usr/lib/libwayland-egl.*
-                       Fsplit libwayland-egl usr/lib/pkgconfig/wayland-egl.pc
-               fi
+       if Fuse GLES1 || Fuse GLES2; then
+               Fsplit libgles usr/include/GLES*/
+               Fsplit libgles usr/lib/libGLES*
+               Fsplit libgles usr/lib/pkgconfig/gles*.pc
+       fi
+
+       if Fuse OPENCL; then
+               Fsplit libcl usr/include/CL*/
+               Fsplit libcl usr/lib/libCL*
+               Fsplit libcl usr/lib/pkgconfig/cl.pc
fi

if Fuse OSMESA; then
@@ -328,6 +350,12 @@ build() {
Fsplit mesa-vdpau-drivers usr/lib/vdpau/
fi

+       if Fuse WAYLAND_EGL; then
+               Fsplit libwayland-egl usr/lib/libwayland-egl.*
+               Fsplit libwayland-egl usr/lib/pkgconfig/wayland-egl.pc
+       fi
+
+       Flibtool_fixes
Frm var
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to