1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 21:47:45 +00:00

Ports: Add Mesa GLU

This is a dependency for Tux Racer, and is compiled against Serenity's
LibGL.
This commit is contained in:
Jelle Raaijmakers 2021-12-24 15:03:29 +01:00 committed by Andreas Kling
parent f856f49edb
commit 02647fd485
2 changed files with 31 additions and 0 deletions

30
Ports/glu/package.sh Executable file
View file

@ -0,0 +1,30 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=glu
useconfigure="true"
version="9.0.2"
workdir="glu-glu-${version}"
files="https://gitlab.freedesktop.org/mesa/glu/-/archive/glu-${version}/glu-glu-${version}.tar.gz glu-glu-${version}.tar.gz 332d93a16376bc007e8232a8e5534da84e548cf3db9de040442c47a21f4625ba"
auth_type=sha256
depends=("pkgconf")
pre_configure() {
export ACLOCAL="aclocal -I${SERENITY_INSTALL_ROOT}/usr/local/lib/pkgconfig"
export GL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
export GL_LIBS="-lgl"
run libtoolize
run aclocal
run autoconf
run automake --add-missing
# Manual config.sub patch
run cp config.sub config.sub.contents
run mv -f config.sub.contents config.sub
run sed -i 's/-haiku/-serenity/' config.sub
}
post_configure() {
unset ACLOCAL
unset GL_CFLAGS
unset GL_LIBS
}