diff options
Diffstat (limited to 'meta-oe/recipes-graphics/jasper/jasper_4.2.8.bb')
| -rw-r--r-- | meta-oe/recipes-graphics/jasper/jasper_4.2.8.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/jasper/jasper_4.2.8.bb b/meta-oe/recipes-graphics/jasper/jasper_4.2.8.bb new file mode 100644 index 0000000000..dd3cf3fdb6 --- /dev/null +++ b/meta-oe/recipes-graphics/jasper/jasper_4.2.8.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | SUMMARY = "Jpeg 2000 implementation" | ||
| 2 | HOMEPAGE = "https://jasper-software.github.io/jasper/" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a80440d1d8f17d041c71c7271d6e06eb" | ||
| 5 | |||
| 6 | SRC_URI = "https://github.com/jasper-software/${BPN}/releases/download/version-${PV}/${BP}.tar.gz" | ||
| 7 | SRC_URI[sha256sum] = "98058a94fbff57ec6e31dcaec37290589de0ba6f47c966f92654681a56c71fae" | ||
| 8 | |||
| 9 | inherit cmake multilib_header | ||
| 10 | |||
| 11 | do_configure:prepend() { | ||
| 12 | JAS_STDC_VERSION="$(echo __STDC_VERSION__ | ${CPP} -E -P -)" | ||
| 13 | } | ||
| 14 | |||
| 15 | EXTRA_OECMAKE:append = " -DJAS_STDC_VERSION=${JAS_STDC_VERSION}" | ||
| 16 | |||
| 17 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)} \ | ||
| 18 | jpeg" | ||
| 19 | |||
| 20 | PACKAGECONFIG[jpeg] = "-DJAS_ENABLE_LIBJPEG=ON,-DJAS_ENABLE_LIBJPEG=OFF,jpeg," | ||
| 21 | PACKAGECONFIG[opengl] = "-DJAS_ENABLE_OPENGL=ON,-DJAS_ENABLE_OPENGL=OFF,freeglut," | ||
| 22 | |||
| 23 | do_install:append() { | ||
| 24 | chrpath -d ${D}${bindir}/jasper | ||
| 25 | chrpath -d ${D}${bindir}/imginfo | ||
| 26 | chrpath -d ${D}${bindir}/imgcmp | ||
| 27 | chrpath -d ${D}${libdir}/libjasper.so.* | ||
| 28 | oe_multilib_header jasper/jas_config.h | ||
| 29 | } | ||
