aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/mesa/mesa-dri_git.bb
blob: 61fb199decd3702bca3ee6912a222adb7851f25b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require mesa-common.inc
require mesa-dri.inc

PV = "7.7.999"
PR = "${INC_PR}.0"
PR_append = "+gitr${SRCPV}"

DEFAULT_PREFERENCE = "-2"

SRCREV = "196214bf2b677a83653d49f79d03752f29df44ec"
SRCREV_shr = "1ac166895fef47806c9e9286d2a6356b4db8398d"

SRC_URI = "git://anongit.freedesktop.org/git/mesa/mesa;protocol=git"
SRC_URI_shr = "git://git.bitwiz.org.uk/mesa.git;protocol=git;branch=glamo"
SRC_URI_append = " file://fix-progs-makefile.patch"
SRC_URI_shr_append = " file://fix-progs-makefile.patch"

S = "${WORKDIR}/git"

DEPENDS += "mesa-dri-glsl-native"

# We need glsl-compile built for buildhost arch instead of target (is provided by mesa-dri-glsl-native)"
do_configure_prepend() {
  sed -i "s#glsl_compile\[0\].abspath + '#'${STAGING_BINDIR_NATIVE}/glsl-compile#g" ${S}/src/mesa/shader/slang/library/SConscript
  sed -i "s#^GLSL_CL = .*\$#GLSL_CL = ${STAGING_BINDIR_NATIVE}/glsl-compile#g" ${S}/src/mesa/shader/slang/library/Makefile
}