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" |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 9 | LIC_FILES_CHKSUM = "file://copying.txt;md5=462e4b97f73ef12f8171c3c546ce4e8d" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 10 | |
| 11 | SRC_URI = " \ |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 12 | git://github.com/g-truc/glm;branch=master;protocol=https \ |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 13 | file://0001-Silence-clang-warnings.patch \ |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 14 | file://glmConfig.cmake.in \ |
| 15 | file://glmConfigVersion.cmake.in \ |
| 16 | file://glm.pc.in \ |
| 17 | file://glmTargets.cmake \ |
| 18 | " |
Andrew Geissler | ac970dd | 2021-02-12 15:32:45 -0600 | [diff] [blame] | 19 | SRCREV = "bf71a834948186f4097caa076cd2663c69a10e1e" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 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 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 37 | RDEPENDS:${PN}-dev = "" |
Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame] | 38 | |
| 39 | BBCLASSEXTEND = "native" |