blob: 5cd9ec18826bfdf9b31f6ec427678e6cb3fe2388 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "Evas generic loaders"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=a87563ed30add2b0e3460272d3138a00"
4DEPENDS = "eina poppler librsvg cairo"
5
6inherit efl
7
8SRCNAME = "evas_generic_loaders"
9
10EXTRA_OECONF = " \
11 --enable-poppler \
12 --enable-svg \
13 --disable-gstreamer \
14 --disable-libraw \
15 --disable-spectre \
16"
17
18PACKAGESPLITFUNCS_prepend = "split_evas_loader_packages "
19
20python split_evas_loader_packages () {
21 bb.note( "splitting packages for evas generic loaders" )
22 basedir = d.expand( '${libdir}/evas/utils')
23
24 do_split_packages(d, basedir, 'evas_image_loader\.(.*)$',
25 output_pattern = "evas-generic-loader-%s",
26 description = 'Evas generic loaders - module %s',
27 allow_dirs=True, recursive=False, extra_depends="" )
28
29 do_split_packages(d, basedir, 'evas_generic_pdf_loader\.(.*)$',
30 output_pattern = "evas-generic-pdf-loader-%s",
31 description = 'Evas generic pdf loaders - module %s',
32 allow_dirs=True, recursive=False, extra_depends="" )
33}
34
35# add symlinks for different format (it doesn't make much sense to package them in separate packages)
36FILES_evas-generic-loader-xcf += " \
37 ${libdir}/evas/utils/evas_image_loader.xcf.gz \
38"
39FILES_evas-generic-loader-svg += " \
40 ${libdir}/evas/utils/evas_image_loader.svg.gz \
41 ${libdir}/evas/utils/evas_image_loader.svgz \
42"
43FILES_evas-generic-loader-pdf += " \
44 ${libdir}/evas/utils/evas_image_loader.doc \
45 ${libdir}/evas/utils/evas_image_loader.docx \
46 ${libdir}/evas/utils/evas_image_loader.odp \
47 ${libdir}/evas/utils/evas_image_loader.ods \
48 ${libdir}/evas/utils/evas_image_loader.odt \
49 ${libdir}/evas/utils/evas_image_loader.ppt \
50 ${libdir}/evas/utils/evas_image_loader.pptx \
51 ${libdir}/evas/utils/evas_image_loader.rtf \
52 ${libdir}/evas/utils/evas_image_loader.xls \
53 ${libdir}/evas/utils/evas_image_loader.xlsx \
54"
55FILES_evas-generic-pdf-loader-libreoffice += " \
56 ${libdir}/evas/utils/evas_generic_pdf_loader.doc \
57 ${libdir}/evas/utils/evas_generic_pdf_loader.docx \
58 ${libdir}/evas/utils/evas_generic_pdf_loader.odp \
59 ${libdir}/evas/utils/evas_generic_pdf_loader.ods \
60 ${libdir}/evas/utils/evas_generic_pdf_loader.odt \
61 ${libdir}/evas/utils/evas_generic_pdf_loader.ppt \
62 ${libdir}/evas/utils/evas_generic_pdf_loader.pptx \
63 ${libdir}/evas/utils/evas_generic_pdf_loader.rtf \
64 ${libdir}/evas/utils/evas_generic_pdf_loader.xls \
65 ${libdir}/evas/utils/evas_generic_pdf_loader.xlsx \
66"
67
68FILES_${PN}-dbg += "${libdir}/evas/utils/.debug"
69
70PACKAGES += "evas-generic-loader-svg"
71PACKAGES_DYNAMIC += "^evas-generic-loader-.* ^evas-generic-pdf-loader-.*"