summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/jasper/jasper_4.2.8.bb
diff options
context:
space:
mode:
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.bb29
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 @@
1SUMMARY = "Jpeg 2000 implementation"
2HOMEPAGE = "https://jasper-software.github.io/jasper/"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a80440d1d8f17d041c71c7271d6e06eb"
5
6SRC_URI = "https://github.com/jasper-software/${BPN}/releases/download/version-${PV}/${BP}.tar.gz"
7SRC_URI[sha256sum] = "98058a94fbff57ec6e31dcaec37290589de0ba6f47c966f92654681a56c71fae"
8
9inherit cmake multilib_header
10
11do_configure:prepend() {
12 JAS_STDC_VERSION="$(echo __STDC_VERSION__ | ${CPP} -E -P -)"
13}
14
15EXTRA_OECMAKE:append = " -DJAS_STDC_VERSION=${JAS_STDC_VERSION}"
16
17PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl', '', d)} \
18 jpeg"
19
20PACKAGECONFIG[jpeg] = "-DJAS_ENABLE_LIBJPEG=ON,-DJAS_ENABLE_LIBJPEG=OFF,jpeg,"
21PACKAGECONFIG[opengl] = "-DJAS_ENABLE_OPENGL=ON,-DJAS_ENABLE_OPENGL=OFF,freeglut,"
22
23do_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}