From 4b3a6d2d348171aabb0dba1afc438918b587015e Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Sun, 9 Dec 2018 15:29:20 -0700 Subject: [PATCH] Add glu recipe --- recipes/mesa/recipe.sh | 1 + recipes/mesa_glu/recipe.sh | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 recipes/mesa_glu/recipe.sh diff --git a/recipes/mesa/recipe.sh b/recipes/mesa/recipe.sh index 95a740ac1..7910e84d2 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 000000000..6589a17d1 --- /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 +} -- GitLab