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" |
| 4 | DEPENDS = "eina poppler librsvg cairo" |
| 5 | |
| 6 | inherit efl |
| 7 | |
| 8 | SRCNAME = "evas_generic_loaders" |
| 9 | |
| 10 | EXTRA_OECONF = " \ |
| 11 | --enable-poppler \ |
| 12 | --enable-svg \ |
| 13 | --disable-gstreamer \ |
| 14 | --disable-libraw \ |
| 15 | --disable-spectre \ |
| 16 | " |
| 17 | |
| 18 | PACKAGESPLITFUNCS_prepend = "split_evas_loader_packages " |
| 19 | |
| 20 | python 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) |
| 36 | FILES_evas-generic-loader-xcf += " \ |
| 37 | ${libdir}/evas/utils/evas_image_loader.xcf.gz \ |
| 38 | " |
| 39 | FILES_evas-generic-loader-svg += " \ |
| 40 | ${libdir}/evas/utils/evas_image_loader.svg.gz \ |
| 41 | ${libdir}/evas/utils/evas_image_loader.svgz \ |
| 42 | " |
| 43 | FILES_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 | " |
| 55 | FILES_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 | |
| 68 | FILES_${PN}-dbg += "${libdir}/evas/utils/.debug" |
| 69 | |
| 70 | PACKAGES += "evas-generic-loader-svg" |
| 71 | PACKAGES_DYNAMIC += "^evas-generic-loader-.* ^evas-generic-pdf-loader-.*" |