diff options
Diffstat (limited to 'meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb')
-rw-r--r-- | meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb b/meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb new file mode 100644 index 0000000000..7f91cc02ac --- /dev/null +++ b/meta/recipes-graphics/jpeg/libjpeg-turbo_2.1.0.bb | |||
@@ -0,0 +1,58 @@ | |||
1 | SUMMARY = "Hardware accelerated JPEG compression/decompression library" | ||
2 | DESCRIPTION = "libjpeg-turbo is a derivative of libjpeg that uses SIMD instructions (MMX, SSE2, NEON) to accelerate baseline JPEG compression and decompression" | ||
3 | HOMEPAGE = "http://libjpeg-turbo.org/" | ||
4 | |||
5 | LICENSE = "BSD-3-Clause" | ||
6 | LIC_FILES_CHKSUM = "file://cdjpeg.h;endline=13;md5=8a61af33cc1c681cd5cc297150bbb5bd \ | ||
7 | file://jpeglib.h;endline=16;md5=52b5eaade8d5b6a452a7693dfe52c084 \ | ||
8 | file://djpeg.c;endline=11;md5=b61f01ad6aff437b34d1f9e8004280a4 \ | ||
9 | " | ||
10 | DEPENDS_append_x86-64_class-target = " nasm-native" | ||
11 | DEPENDS_append_x86_class-target = " nasm-native" | ||
12 | |||
13 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ | ||
14 | file://0001-libjpeg-turbo-fix-package_qa-error.patch \ | ||
15 | " | ||
16 | |||
17 | SRC_URI[sha256sum] = "bef89803e506f27715c5627b1e3219c95b80fc31465d4452de2a909d382e4444" | ||
18 | UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libjpeg-turbo/files/" | ||
19 | UPSTREAM_CHECK_REGEX = "/libjpeg-turbo/files/(?P<pver>(\d+[\.\-_]*)+)/" | ||
20 | |||
21 | PE = "1" | ||
22 | |||
23 | # Drop-in replacement for jpeg | ||
24 | PROVIDES = "jpeg" | ||
25 | RPROVIDES_${PN} += "jpeg" | ||
26 | RREPLACES_${PN} += "jpeg" | ||
27 | RCONFLICTS_${PN} += "jpeg" | ||
28 | |||
29 | inherit cmake pkgconfig | ||
30 | |||
31 | export NASMENV = "--reproducible --debug-prefix-map=${WORKDIR}=/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}" | ||
32 | |||
33 | # Add nasm-native dependency consistently for all build arches is hard | ||
34 | EXTRA_OECMAKE_append_class-native = " -DWITH_SIMD=False" | ||
35 | EXTRA_OECMAKE_append_class-nativesdk = " -DWITH_SIMD=False" | ||
36 | |||
37 | # Work around missing x32 ABI support | ||
38 | EXTRA_OECMAKE_append_class-target = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", "-DWITH_SIMD=False", "", d)}" | ||
39 | |||
40 | # Work around missing non-floating point ABI support in MIPS | ||
41 | EXTRA_OECMAKE_append_class-target = " ${@bb.utils.contains("MIPSPKGSFX_FPU", "-nf", "-DWITH_SIMD=False", "", d)}" | ||
42 | |||
43 | # Provide a workaround if Altivec unit is not present in PPC | ||
44 | EXTRA_OECMAKE_append_class-target_powerpc = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "", "-DWITH_SIMD=False", d)}" | ||
45 | EXTRA_OECMAKE_append_class-target_powerpc64 = " ${@bb.utils.contains("TUNE_FEATURES", "altivec", "", "-DWITH_SIMD=False", d)}" | ||
46 | |||
47 | DEBUG_OPTIMIZATION_append_armv4 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | ||
48 | DEBUG_OPTIMIZATION_append_armv5 = " ${@bb.utils.contains('TUNE_CCARGS', '-mthumb', '-fomit-frame-pointer', '', d)}" | ||
49 | |||
50 | PACKAGES =+ "jpeg-tools libturbojpeg" | ||
51 | |||
52 | DESCRIPTION_jpeg-tools = "The jpeg-tools package includes client programs to access libjpeg functionality. These tools allow for the compression, decompression, transformation and display of JPEG files and benchmarking of the libjpeg library." | ||
53 | FILES_jpeg-tools = "${bindir}/*" | ||
54 | |||
55 | DESCRIPTION_libturbojpeg = "A SIMD-accelerated JPEG codec which provides only TurboJPEG APIs" | ||
56 | FILES_libturbojpeg = "${libdir}/libturbojpeg.so.*" | ||
57 | |||
58 | BBCLASSEXTEND = "native nativesdk" | ||