blob: 71a005a564ec7bce2b5263697f47c1900b733cd4 [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 \
Brad Bishope42b3e32020-01-15 22:08:42 -050014 file://glmConfig.cmake.in \
15 file://glmConfigVersion.cmake.in \
16 file://glm.pc.in \
17 file://glmTargets.cmake \
18"
Andrew Geisslerac970dd2021-02-12 15:32:45 -060019SRCREV = "bf71a834948186f4097caa076cd2663c69a10e1e"
Brad Bishope42b3e32020-01-15 22:08:42 -050020
21S = "${WORKDIR}/git"
22
23inherit cmake
24
25do_install() {
26 install -d ${D}${includedir} ${D}${docdir}/glm ${D}${libdir}/pkgconfig ${D}${libdir}/cmake/glm
27 cp -R --no-dereference --preserve=mode,links ${S}/glm ${D}${includedir}
28 cp -R --no-dereference --preserve=mode,links ${S}/doc ${D}${docdir}/glm
29 rm ${D}${includedir}/glm/CMakeLists.txt
30 sed "s/@VERSION@/${PV}/" ${WORKDIR}/glmConfigVersion.cmake.in > ${D}${libdir}/cmake/glm/glmConfigVersion.cmake
31 sed "s/@VERSION@/${PV}/" ${WORKDIR}/glmConfig.cmake.in > ${D}${libdir}/cmake/glm/glmConfig.cmake
32 sed "s/@VERSION@/${PV}/" ${WORKDIR}/glm.pc.in > ${D}${libdir}/pkgconfig/glm.pc
33 install -Dm644 ${WORKDIR}/glmTargets.cmake ${D}${libdir}/cmake/glm/glmTargets.cmake
34
35}
36
Patrick Williams213cb262021-08-07 19:21:33 -050037RDEPENDS:${PN}-dev = ""
Brad Bishope42b3e32020-01-15 22:08:42 -050038
39BBCLASSEXTEND = "native"