d9b1d4312c
mesa-dri first generates glsl compiler and then use it to compile GL shader sources. Target glsl compiler can't run on build system, and thus port from openembedded by introducing a native recipe dedicated to creating a native glsl-compiler. This has to be an explicit -native recipe since its un-native sibling is already part of mesa-dri Signed-off-by: Kevin Tian <kevin.tian@intel.com>
25 lines
577 B
BlitzBasic
25 lines
577 B
BlitzBasic
DESCRIPTION = "gl shader language specific build from mesa-dri"
|
|
HOMEPAGE = "http://mesa3d.org"
|
|
BUGTRACKER = "https://bugs.freedesktop.org"
|
|
SECTION = "x11"
|
|
LICENSE = "MIT"
|
|
PR = "r0"
|
|
|
|
DEPENDS = "makedepend-native"
|
|
|
|
SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2"
|
|
|
|
S = "${WORKDIR}/Mesa-7.8.2/src/glsl/"
|
|
|
|
inherit native
|
|
|
|
# use default config for native build
|
|
do_configure_prepend() {
|
|
ln -s ${S}/../../configs/default ${S}/../../configs/current
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}/${bindir}
|
|
install -m 755 ${S}/apps/compile ${D}/${bindir}/glsl-compile
|
|
}
|