diff --git a/recipes/mesa/recipe.sh b/recipes/mesa/recipe.sh index 95a740ac1a557f48a098c5c09de4376088b800ef..7910e84d236cbfe9cf9baccd7d809a867a48de9f 100644 --- a/recipes/mesa/recipe.sh +++ b/recipes/mesa/recipe.sh @@ -42,5 +42,6 @@ function recipe_clean { function recipe_stage { dest="$(realpath $1)" make DESTDIR="$dest" install + sed -i -e "s%//lib/libglapi.la%$dest/lib/libglapi.la%" "$dest/lib/"*.la skip=1 } diff --git a/recipes/mesa_glu/recipe.sh b/recipes/mesa_glu/recipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..6589a17d1814dff3da0ea886bee94bb8412b1693 --- /dev/null +++ b/recipes/mesa_glu/recipe.sh @@ -0,0 +1,34 @@ +TAR=ftp://ftp.freedesktop.org/pub/mesa/glu/glu-9.0.0.tar.bz2 +BUILD_DEPENDS=(mesa) + +function recipe_update { + echo "skipping update" + skip=1 +} + +function recipe_build { + wget -O config.sub http://git.savannah.gnu.org/cgit/config.git/plain/config.sub + sysroot="${PWD}/../sysroot" + export CFLAGS="-I$sysroot/include" + export CPPFLAGS="-I$sysroot/include" + export LDFLAGS="-L$sysroot/lib" + ./configure --host="${HOST}" --prefix=/ --enable-osmesa + make -j"$(nproc)" + skip=1 +} + +function recipe_test { + echo "skipping test" + skip=1 +} + +function recipe_clean { + make clean + skip=1 +} + +function recipe_stage { + dest="$(realpath $1)" + make DESTDIR="$dest" install + skip=1 +}