blob: e2f4dbebc5e6ab01271c034139b86d0904f23d7f [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"
9LIC_FILES_CHKSUM = "file://copying.txt;md5=4a735e33f271f57404fda17e80085411"
10
11SRC_URI = " \
12 git://github.com/g-truc/glm;branch=master \
13 file://0001-Fix-Wimplicit-int-float-conversion-warnings-with-cla.patch \
14 file://glmConfig.cmake.in \
15 file://glmConfigVersion.cmake.in \
16 file://glm.pc.in \
17 file://glmTargets.cmake \
18"
19SRCREV = "4db8f89aace8f04c839b606e15b39fb8383ec732"
20
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
37RDEPENDS_${PN}-dev = ""
38
39BBCLASSEXTEND = "native"