blob: dd520b245e4d3e465155e4fb4da12ec93cad0b9c [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001SUMMARY = "OpenGL Mathematics Library"
2DESCRIPTION = "OpenGL Mathematics (GLM) is a header only C++ \
3mathematics library for graphics software based on the OpenGL \
4Shading Language (GLSL) specifications."
5HOMEPAGE = "https://glm.g-truc.net"
6BUGTRACKER = "https://github.com/g-truc/glm/issues"
7SECTION = "libs"
8LICENSE = "MIT"
Andrew Geisslerac970dd2021-02-12 15:32:45 -06009LIC_FILES_CHKSUM = "file://copying.txt;md5=462e4b97f73ef12f8171c3c546ce4e8d"
Brad Bishope42b3e32020-01-15 22:08:42 -050010
11SRC_URI = " \
Andrew Geissler595f6302022-01-24 19:11:47 +000012 git://github.com/g-truc/glm;branch=master;protocol=https \
Andrew Geisslerac970dd2021-02-12 15:32:45 -060013 file://0001-Silence-clang-warnings.patch \
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050014 file://0001-Do-not-use-Werror-with-clang.patch \
Brad Bishope42b3e32020-01-15 22:08:42 -050015 file://glmConfig.cmake.in \
16 file://glmConfigVersion.cmake.in \
17 file://glm.pc.in \
18 file://glmTargets.cmake \
19"
Andrew Geisslerfc113ea2023-03-31 09:59:46 -050020SRCREV = "efec5db081e3aad807d0731e172ac597f6a39447"
Patrick Williams73bd93f2024-02-20 08:07:48 -060021PV .= "+0.9.9.9+git"
Brad Bishope42b3e32020-01-15 22:08:42 -050022
23S = "${WORKDIR}/git"
24
25inherit cmake
26
27do_install() {
28 install -d ${D}${includedir} ${D}${docdir}/glm ${D}${libdir}/pkgconfig ${D}${libdir}/cmake/glm
29 cp -R --no-dereference --preserve=mode,links ${S}/glm ${D}${includedir}
30 cp -R --no-dereference --preserve=mode,links ${S}/doc ${D}${docdir}/glm
31 rm ${D}${includedir}/glm/CMakeLists.txt
32 sed "s/@VERSION@/${PV}/" ${WORKDIR}/glmConfigVersion.cmake.in > ${D}${libdir}/cmake/glm/glmConfigVersion.cmake
33 sed "s/@VERSION@/${PV}/" ${WORKDIR}/glmConfig.cmake.in > ${D}${libdir}/cmake/glm/glmConfig.cmake
34 sed "s/@VERSION@/${PV}/" ${WORKDIR}/glm.pc.in > ${D}${libdir}/pkgconfig/glm.pc
35 install -Dm644 ${WORKDIR}/glmTargets.cmake ${D}${libdir}/cmake/glm/glmTargets.cmake
36
37}
38
Patrick Williams213cb262021-08-07 19:21:33 -050039RDEPENDS:${PN}-dev = ""
Brad Bishope42b3e32020-01-15 22:08:42 -050040
41BBCLASSEXTEND = "native"