From baf62bb7fb54dd8c1fcfb704da8e0d44386ab387 Mon Sep 17 00:00:00 2001 From: Rasmus Villemoes Date: Mon, 29 Aug 2016 11:37:11 +0200 Subject: [PATCH] libtiff: update recipe This makes use of auto-package-* and makes a few features optional. Since mingw build is disabled for now (see issue #220) we also remove the mingw specific bits - getting the mingw build to work again may require adding those back, or something entirely different, so it's better if there's no confusing legacy settings. Also update the homepage and download URLs. Quoting from Wikipedia: Website hijacking Around January 2004, the original libtiff website (libtiff.org) has been hijacked, after it had disappeared in September 2003 due to ISP problems. [...] In September 2016, the libtiff maintainers lost control of http://www.remotesensing.org/libtiff/, which had been the main site since 2003. The official website is currently at http://www.simplesystems.org/libtiff/. --- recipes/libtiff/tiff.inc | 74 +++++++++++++++++++++++++++++++++------- 1 file changed, 61 insertions(+), 13 deletions(-) diff --git a/recipes/libtiff/tiff.inc b/recipes/libtiff/tiff.inc index b5e160383..13b783cd1 100644 --- a/recipes/libtiff/tiff.inc +++ b/recipes/libtiff/tiff.inc @@ -1,24 +1,72 @@ DESCRIPTION = "This software provides support for the Tag Image File Format (TIFF)" +HOMEPAGE = "http://www.simplesystems.org/libtiff/" LICENSE = "BSD-2-Clause*" -HOMEPAGE = "http://www.remotesensing.org/libtiff/" RECIPE_TYPES = "machine native" +SRC_URI = "ftp://download.osgeo.org/libtiff/tiff-${PV}.tar.gz" COMPATIBLE_HOST_ARCHS = ".*linux" -SRC_URI = "ftp://ftp.remotesensing.org/pub/libtiff/tiff-${PV}.tar.gz" +inherit autotools c++ auto-package-utils auto-package-libs +AUTOCONFDIRS = "/config" -inherit autotools c++ +RECIPE_FLAGS += "tiff_jpeg tiff_lzma tiff_zlib" +DEFAULT_USE_tiff_jpeg = "1" +DEFAULT_USE_tiff_lzma = "1" +DEFAULT_USE_tiff_zlib = "1" -OECONF_ARCHTUPLE = "ax_cv_check_gl_libgl=no" +# The configure script autodetects presence of lib{jpeg,lzma,z} and +# enables/disables accordingly. So in principle one can control these +# features via what gets staged. However, that's somewhat fragile and +# non-obvious, so we pass explicit --disable flags to configure, +# appending corresponding --enable flags only if the USE flag is set. -PACKAGES =+ "${PN}-staticdev ${PN}-utils ${PN}-utils-dbg" -FILES_${PN} += "${libdir}/libtiffxx.so.*" -FILES_${PN}-dev += "${libdir}/libtiffxx.so ${libdir}/libtiffxx.la" -FILES_${PN}-staticdev = "${libdir}/libtiffxx.a" -FILES_${PN}-dbg += "${libdir}/.debug/libtiffxx.so*" -FILES_${PN}-utils = "${bindir}/*" -FILES_${PN}-utils-dbg += "${bindir}/.debug/" +EXTRA_OECONF += "--disable-jpeg --disable-lzma --disable-zlib" +TIFF_JPEG = "" +TIFF_JPEG:USE_tiff_jpeg = "libjpeg" +EXTRA_OECONF:>USE_tiff_jpeg = " --enable-jpeg" +TIFF_LZMA = "" +TIFF_LZMA:USE_tiff_lzma = "liblzma" +EXTRA_OECONF:>USE_tiff_lzma = " --enable-lzma" +TIFF_ZLIB = "" +TIFF_ZLIB:USE_tiff_zlib = "libz" +EXTRA_OECONF:>USE_tiff_zlib = " --enable-zlib" -LIBTOOL_HOST_SCRIPTS:HOST_LIBC_mingw = "libtool" -LIBTOOL_HOST_SCRIPT_FIXUP:HOST_LIBC_mingw = "1" +USE_FLAG_DEPENDS = "${TIFF_JPEG} ${TIFF_LZMA} ${TIFF_ZLIB}" + +DEPENDS += "libc libgcc-s libm libstdc++ ${USE_FLAG_DEPENDS}" + +AUTO_PACKAGE_UTILS = "\ + bmp2tiff \ + fax2ps \ + fax2tiff \ + gif2tiff \ + pal2rgb \ + ppm2tiff \ + ras2tiff \ + raw2tiff \ + rgb2ycbcr \ + thumbnail \ + tiff2bw \ + tiff2pdf \ + tiff2ps \ + tiff2rgba \ + tiffcmp \ + tiffcp \ + tiffcrop \ + tiffdither \ + tiffdump \ + tiffinfo \ + tiffmedian \ + tiffset \ + tiffsplit \ +" + +AUTO_PACKAGE_UTILS_DEPENDS = "libc libm libtiff ${USE_FLAG_DEPENDS}" +AUTO_PACKAGE_UTILS_RDEPENDS = "libc libm libtiff ${USE_FLAG_DEPENDS}" + +AUTO_PACKAGE_LIBS = "tiff tiffxx" +AUTO_PACKAGE_LIBS_DEPENDS = "libc libm tiff-dev ${USE_FLAG_DEPENDS}" +AUTO_PACKAGE_LIBS_RDEPENDS = "libc libm ${USE_FLAG_DEPENDS}" +DEPENDS_${PN}-libtiffxx += "libgcc-s libstdc++ libtiff" +RDEPENDS_${PN}-libtiffxx += "libgcc-s libstdc++ libtiff"