1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 00:27:34 +00:00

Ports: Update glu to 9.0.3

This necessitates a switch to the Meson build system. A nice side effect
of this is that we now build & install the shared library for glu as
well.
This commit is contained in:
Jelle Raaijmakers 2024-02-11 23:53:24 +01:00 committed by Tim Schumacher
parent 32b07f7057
commit 401a37417b
5 changed files with 101 additions and 9 deletions

View file

@ -1,12 +1,26 @@
#!/usr/bin/env -S bash ../.port_include.sh
port=glu
useconfigure="true"
version="9.0.2"
port='glu'
version='9.0.3'
files=(
"https://archive.mesa3d.org/glu/glu-${version}.tar.gz#24effdfb952453cc00e275e1c82ca9787506aba0282145fff054498e60e19a65"
"https://archive.mesa3d.org/glu/glu-${version}.tar.xz#bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f"
)
useconfigure='true'
configopts=(
"--cross-file=${SERENITY_BUILD_DIR}/meson-cross-file.txt"
"--prefix=${SERENITY_INSTALL_ROOT}/usr/local"
'-Dbuildtype=release'
)
depends=("pkgconf")
use_fresh_config_sub=true
export GL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
export GL_LIBS="-lgl"
export CPPFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
configure() {
run meson setup "${configopts[@]}" build
}
build() {
run ninja -C build
}
install() {
run ninja -C build install
}