Add glu recipe

This commit is contained in:
Jeremy Soller 2018-12-09 15:29:20 -07:00
parent 1d86c9b760
commit 4b3a6d2d34
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1
2 changed files with 35 additions and 0 deletions

View File

@ -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
}

View File

@ -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
}