2008-09-22 13:33:19 +00:00
|
|
|
include mesa-common.inc
|
|
|
|
|
2008-09-22 15:37:55 +00:00
|
|
|
PROTO_DEPS = "xf86driproto glproto dri2proto"
|
2010-11-24 04:51:42 +00:00
|
|
|
LIB_DEPS = "libdrm virtual/libx11 libxext libxxf86vm libxdamage libxfixes expat \
|
2011-02-09 10:54:47 +00:00
|
|
|
libxml2-native"
|
2008-09-22 13:33:19 +00:00
|
|
|
|
2011-04-16 05:34:33 +00:00
|
|
|
DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} makedepend-native python-native"
|
2011-10-12 21:51:33 +00:00
|
|
|
DEPENDS += "mesa-dri-glsl-native"
|
2008-09-22 13:33:19 +00:00
|
|
|
|
2011-10-13 07:49:47 +00:00
|
|
|
PR = "${INC_PR}.0"
|
2010-07-07 09:28:11 +00:00
|
|
|
|
2010-11-24 04:51:42 +00:00
|
|
|
SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \
|
2011-07-21 06:10:12 +00:00
|
|
|
file://crossfix.patch \
|
|
|
|
file://uclibc.patch \
|
|
|
|
"
|
2008-09-23 02:01:11 +00:00
|
|
|
|
2011-10-12 21:51:33 +00:00
|
|
|
SRC_URI[md5sum] = "ff03aca82d0560009a076a87c888cf13"
|
|
|
|
SRC_URI[sha256sum] = "f8bf37a00882840a3e3d327576bc26a79ae7f4e18fe1f7d5f17a5b1c80dd7acf"
|
2011-01-14 08:39:59 +00:00
|
|
|
|
2008-09-23 16:42:13 +00:00
|
|
|
# most of our targets do not have DRI so will use mesa-xlib
|
|
|
|
DEFAULT_PREFERENCE = "-1"
|
|
|
|
|
2010-07-07 09:28:11 +00:00
|
|
|
LEAD_SONAME = "libGL.so.1"
|
2008-09-22 13:33:19 +00:00
|
|
|
|
2011-10-12 21:51:33 +00:00
|
|
|
EXTRA_OECONF += "--with-driver=dri --disable-egl -with-dri-drivers=swrast,i915,i965 --without-gallium-drivers"
|
2008-09-22 13:33:19 +00:00
|
|
|
|
2008-10-29 17:35:45 +00:00
|
|
|
python populate_packages_prepend() {
|
|
|
|
import os.path
|
|
|
|
|
|
|
|
dri_drivers_root = os.path.join(bb.data.getVar('libdir', d, 1), "dri")
|
|
|
|
|
|
|
|
do_split_packages(d, dri_drivers_root, '^(.*)_dri\.so$', 'mesa-dri-driver-%s', 'Mesa %s DRI driver', extra_depends='')
|
|
|
|
}
|
|
|
|
|
2010-07-26 18:02:11 +00:00
|
|
|
COMPATIBLE_HOST = '(i.86.*-linux|x86_64.*-linux)'
|
2010-07-07 09:28:11 +00:00
|
|
|
|
|
|
|
PACKAGES_DYNAMIC = "mesa-dri-driver-*"
|
|
|
|
|
|
|
|
FILES_${PN}-dbg += "${libdir}/dri/.debug/*"
|
2011-10-12 21:51:33 +00:00
|
|
|
|
|
|
|
do_configure_prepend() {
|
|
|
|
#check for python not python2, because python-native does not stage python2 binary/link
|
|
|
|
sed -i 's/AC_CHECK_PROGS(\[PYTHON2\], \[python2 python\])/AC_CHECK_PROGS(\[PYTHON2\], \[python python\])/g' ${S}/configure.ac
|
|
|
|
# We need builtin_compiler built for buildhost arch instead of target (is provided by mesa-dri-glsl-native)"
|
|
|
|
sed -i "s#\./builtin_compiler#${STAGING_BINDIR_NATIVE}/glsl/builtin_compiler#g" ${S}/src/glsl/Makefile
|
|
|
|
}
|