summaryrefslogtreecommitdiffstats
path: root/import-layers/meta-openembedded/meta-efl/recipes-efl/efl/evas-generic-loaders.inc
blob: d277c1167954a91cdbd6f8814b8c1d94296107bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
DESCRIPTION = "Evas generic loaders"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=a87563ed30add2b0e3460272d3138a00"
DEPENDS = "eina librsvg cairo"

inherit efl

SRCNAME = "evas_generic_loaders"

EXTRA_OECONF = " \
    --enable-svg \
    --disable-gstreamer \
    --disable-libraw \
    --disable-spectre \
"

PACKAGECONFIG ??= ""
PACKAGECONFIG[poppler] = "--enable-poppler,--disable-poppler,poppler"

PACKAGESPLITFUNCS_prepend = "split_evas_loader_packages "

python split_evas_loader_packages () {
    bb.note( "splitting packages for evas generic loaders" )
    basedir = d.expand( '${libdir}/evas/utils')

    do_split_packages(d, basedir, 'evas_image_loader\.(.*)$',
    output_pattern = "evas-generic-loader-%s",
    description = 'Evas generic loaders - module %s',
    allow_dirs=True, recursive=False, extra_depends="" )

    do_split_packages(d, basedir, 'evas_generic_pdf_loader\.(.*)$',
    output_pattern = "evas-generic-pdf-loader-%s",
    description = 'Evas generic pdf loaders - module %s',
    allow_dirs=True, recursive=False, extra_depends="" )
}

# add symlinks for different format (it doesn't make much sense to package them in separate packages)
FILES_evas-generic-loader-xcf += " \
    ${libdir}/evas/utils/evas_image_loader.xcf.gz \
"
FILES_evas-generic-loader-svg += " \
    ${libdir}/evas/utils/evas_image_loader.svg.gz \
    ${libdir}/evas/utils/evas_image_loader.svgz \
"
FILES_evas-generic-loader-pdf += " \
    ${libdir}/evas/utils/evas_image_loader.doc \
    ${libdir}/evas/utils/evas_image_loader.docx \
    ${libdir}/evas/utils/evas_image_loader.odp \
    ${libdir}/evas/utils/evas_image_loader.ods \
    ${libdir}/evas/utils/evas_image_loader.odt \
    ${libdir}/evas/utils/evas_image_loader.ppt \
    ${libdir}/evas/utils/evas_image_loader.pptx \
    ${libdir}/evas/utils/evas_image_loader.rtf \
    ${libdir}/evas/utils/evas_image_loader.xls \
    ${libdir}/evas/utils/evas_image_loader.xlsx \
"
FILES_evas-generic-pdf-loader-libreoffice += " \
    ${libdir}/evas/utils/evas_generic_pdf_loader.doc \
    ${libdir}/evas/utils/evas_generic_pdf_loader.docx \
    ${libdir}/evas/utils/evas_generic_pdf_loader.odp \
    ${libdir}/evas/utils/evas_generic_pdf_loader.ods \
    ${libdir}/evas/utils/evas_generic_pdf_loader.odt \
    ${libdir}/evas/utils/evas_generic_pdf_loader.ppt \
    ${libdir}/evas/utils/evas_generic_pdf_loader.pptx \
    ${libdir}/evas/utils/evas_generic_pdf_loader.rtf \
    ${libdir}/evas/utils/evas_generic_pdf_loader.xls \
    ${libdir}/evas/utils/evas_generic_pdf_loader.xlsx \
"

FILES_${PN}-dbg += "${libdir}/evas/utils/.debug"

PACKAGES += "evas-generic-loader-svg"
PACKAGES_DYNAMIC += "^evas-generic-loader-.* ^evas-generic-pdf-loader-.*"
OpenPOWER on IntegriCloud