ladybird/Ports/glm/package.sh
Tim Ledbetter 539a33dc28 Ports/glm: Create /usr/local/include if it doesn't exist
Previously, the glm port would not build from a clean state, as this
directory does not exist by default.
2023-08-04 13:40:52 +02:00

18 lines
556 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=glm
version=0.9.9.8
files="https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip glm-${version}.zip 37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c"
depends=()
workdir=glm
useconfigure=true
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
configure() {
run cmake "${configopts[@]}"
}
install() {
target_dir="${SERENITY_INSTALL_ROOT}/usr/local/include/"
run_nocd mkdir -p "${target_dir}"
run cp -R glm "${target_dir}"
}