2021-10-28 14:27:18 +03:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
|
|
|
port=glm
|
|
|
|
version=0.9.9.8
|
2023-07-10 14:10:29 +03:00
|
|
|
files=(
|
2023-09-02 07:32:27 +03:00
|
|
|
"https://github.com/g-truc/glm/releases/download/${version}/glm-${version}.zip#37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c"
|
2023-07-10 14:10:29 +03:00
|
|
|
)
|
2021-10-28 14:27:18 +03:00
|
|
|
depends=()
|
|
|
|
workdir=glm
|
|
|
|
useconfigure=true
|
|
|
|
configopts=("-DCMAKE_TOOLCHAIN_FILE=${SERENITY_BUILD_DIR}/CMakeToolchain.txt")
|
|
|
|
|
|
|
|
configure() {
|
|
|
|
run cmake "${configopts[@]}"
|
|
|
|
}
|
|
|
|
|
|
|
|
install() {
|
2023-08-01 23:03:37 +03:00
|
|
|
target_dir="${SERENITY_INSTALL_ROOT}/usr/local/include/"
|
|
|
|
run_nocd mkdir -p "${target_dir}"
|
|
|
|
run cp -R glm "${target_dir}"
|
2021-10-28 14:27:18 +03:00
|
|
|
}
|