mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 13:43:45 +03:00
401a37417b
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.
27 lines
585 B
Bash
Executable File
27 lines
585 B
Bash
Executable File
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port='glu'
|
|
version='9.0.3'
|
|
files=(
|
|
"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'
|
|
)
|
|
|
|
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
|
|
}
|