Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame^] | 1 | SUMMARY = "OpenGL Mathematics Library" |
| 2 | DESCRIPTION = "OpenGL Mathematics (GLM) is a header only C++ \ |
| 3 | mathematics library for graphics software based on the OpenGL \ |
| 4 | Shading Language (GLSL) specifications." |
| 5 | HOMEPAGE = "https://glm.g-truc.net" |
| 6 | BUGTRACKER = "https://github.com/g-truc/glm/issues" |
| 7 | SECTION = "libs" |
| 8 | LICENSE = "MIT" |
| 9 | LIC_FILES_CHKSUM = "file://copying.txt;md5=4a735e33f271f57404fda17e80085411" |
| 10 | |
| 11 | SRC_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 | " |
| 19 | SRCREV = "4db8f89aace8f04c839b606e15b39fb8383ec732" |
| 20 | |
| 21 | S = "${WORKDIR}/git" |
| 22 | |
| 23 | inherit cmake |
| 24 | |
| 25 | do_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 | |
| 37 | RDEPENDS_${PN}-dev = "" |
| 38 | |
| 39 | BBCLASSEXTEND = "native" |