Skip to content

Commit

Permalink
ci/build-openbsd: also build libglvnd
Browse files Browse the repository at this point in the history
Needed for newer versions of glad and the package isn't provided by
openbsd itself.
  • Loading branch information
Dudemanguy committed Mar 16, 2024
1 parent 3afcaeb commit 8a53438
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions ci/build-openbsd.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
#!/bin/sh
set -e

# libplacebo on openBSD is too old; use a subproject
gitclone="git clone --depth=1 --recursive --shallow-submodules"
rm -rf subprojects
mkdir -p subprojects
git clone https://code.videolan.org/videolan/libplacebo.git \
--recurse-submodules --shallow-submodules \
--depth=1 --recurse-submodules subprojects/libplacebo

# build libglvnd for libplacebo/glad
# not actually a subproject but just throw it in the directory
$gitclone https://gitlab.freedesktop.org/glvnd/libglvnd subprojects/libglvnd
meson setup subprojects/libglvnd/build -Dgles1=false
meson install -C subprojects/libglvnd/build

# libplacebo on openBSD is too old; use a subproject
$gitclone https://code.videolan.org/videolan/libplacebo.git subprojects/libplacebo

meson setup build \
-Dlibmpv=true \
Expand Down

0 comments on commit 8a53438

Please sign in to comment.