distribution/packages/graphics/glm/package.mk

29 lines
1.1 KiB
Makefile
Raw Normal View History

2022-02-05 14:23:32 +00:00
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="glm"
2022-07-01 18:56:04 +00:00
PKG_VERSION="0.9.9.8"
PKG_SHA256="37e2a3d62ea3322e43593c34bae29f57e3e251ea89f4067506c94043769ade4c"
2022-02-05 14:23:32 +00:00
PKG_LICENSE="MIT"
PKG_SITE="https://glm.g-truc.net/"
2022-07-01 18:56:04 +00:00
PKG_URL="https://github.com/g-truc/glm/releases/download/${PKG_VERSION}/glm-${PKG_VERSION}.zip"
2022-02-05 14:23:32 +00:00
PKG_SOURCE_DIR="glm"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="OpenGL Mathematics (GLM)"
2022-07-01 18:56:04 +00:00
# Hack install solution until cmake install restored in upstream package
makeinstall_target() {
target_has_feature 32bit && PKG_VOID_SIZE=4 || PKG_VOID_SIZE=8
for _dir in ${SYSROOT_PREFIX} ${INSTALL}; do
mkdir -p ${_dir}/usr/include ${_dir}/usr/lib/pkgconfig ${_dir}/usr/lib/cmake/glm
cp -r ${PKG_BUILD}/glm ${_dir}/usr/include
cp ${PKG_DIR}/config/glm.pc ${_dir}/usr/lib/pkgconfig
cp ${PKG_DIR}/config/*.cmake ${_dir}/usr/lib/cmake/glm
sed -e "s/@@VERSION@@/${PKG_VERSION}/g" \
-e "s/@@VOID_SIZE@@/${PKG_VOID_SIZE}/g" \
-i ${_dir}/usr/lib/pkgconfig/glm.pc ${_dir}/usr/lib/cmake/glm/*.cmake
done
}