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