diff options
Diffstat (limited to 'meta/recipes-devtools/python/python-imaging_1.1.7.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python-imaging_1.1.7.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python-imaging_1.1.7.bb b/meta/recipes-devtools/python/python-imaging_1.1.7.bb index de0e975127..e100358d08 100644 --- a/meta/recipes-devtools/python/python-imaging_1.1.7.bb +++ b/meta/recipes-devtools/python/python-imaging_1.1.7.bb | |||
| @@ -7,23 +7,31 @@ SRCNAME = "Imaging" | |||
| 7 | PR = "r5" | 7 | PR = "r5" |
| 8 | 8 | ||
| 9 | SRC_URI = "http://effbot.org/downloads/Imaging-${PV}.tar.gz \ | 9 | SRC_URI = "http://effbot.org/downloads/Imaging-${PV}.tar.gz \ |
| 10 | file://0001-python-imaging-setup.py-force-paths-for-zlib-freetyp.patch" | 10 | file://0001-python-imaging-setup.py-force-paths-for-zlib-freetyp.patch \ |
| 11 | file://allow.to.disable.some.features.patch" | ||
| 11 | 12 | ||
| 12 | SRC_URI[md5sum] = "fc14a54e1ce02a0225be8854bfba478e" | 13 | SRC_URI[md5sum] = "fc14a54e1ce02a0225be8854bfba478e" |
| 13 | SRC_URI[sha256sum] = "895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211" | 14 | SRC_URI[sha256sum] = "895bc7c2498c8e1f9b99938f1a40dc86b3f149741f105cf7c7bd2e0725405211" |
| 14 | S = "${WORKDIR}/${SRCNAME}-${PV}" | 15 | S = "${WORKDIR}/${SRCNAME}-${PV}" |
| 15 | 16 | ||
| 17 | # There isn't enable/disable option, and lcms is in meta-oe, at least make it explicit when enabled | ||
| 18 | # setup.py already has FIXME: add mechanism to explicitly *disable* the use of a library | ||
| 19 | PACKAGECONFIG ??= "" | ||
| 20 | PACKAGECONFIG[lcms] = ",,lcms" | ||
| 21 | |||
| 16 | inherit distutils | 22 | inherit distutils |
| 17 | 23 | ||
| 18 | do_compile() { | 24 | do_compile() { |
| 19 | export STAGING_LIBDIR=${STAGING_LIBDIR} | 25 | export STAGING_LIBDIR=${STAGING_LIBDIR} |
| 20 | export STAGING_INCDIR=${STAGING_INCDIR} | 26 | export STAGING_INCDIR=${STAGING_INCDIR} |
| 27 | export LCMS_ENABLED=${@base_contains('PACKAGECONFIG', 'lcms', 'True', 'False', d)} | ||
| 21 | distutils_do_compile | 28 | distutils_do_compile |
| 22 | } | 29 | } |
| 23 | 30 | ||
| 24 | do_install() { | 31 | do_install() { |
| 25 | export STAGING_LIBDIR=${STAGING_LIBDIR} | 32 | export STAGING_LIBDIR=${STAGING_LIBDIR} |
| 26 | export STAGING_INCDIR=${STAGING_INCDIR} | 33 | export STAGING_INCDIR=${STAGING_INCDIR} |
| 34 | export LCMS_ENABLED=${@base_contains('PACKAGECONFIG', 'lcms', 'True', 'False', d)} | ||
| 27 | distutils_do_install | 35 | distutils_do_install |
| 28 | install -d ${D}${datadir}/doc/${BPN}/html/ | 36 | install -d ${D}${datadir}/doc/${BPN}/html/ |
| 29 | install -m 0644 ${S}/README ${D}${datadir}/doc/${BPN}/ | 37 | install -m 0644 ${S}/README ${D}${datadir}/doc/${BPN}/ |
